Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,32 @@
"argsIgnorePattern": "^_"
}
]
}
},
// Disable type-aware linting only for JS config/build files that are not in
// any TS project.
"overrides": [
{
"files": [
"commitlint.config.js",
"server_manager/base.webpack.js",
"server_manager/browser.webpack.js",
"server_manager/css-in-js-rtl-loader.js",
"server_manager/electron_renderer.webpack.js",
"server_manager/electron/release/notarize.js",
"server_manager/install_scripts/build_do_install_script_ts.node.js",
"server_manager/install_scripts/build_gcp_install_script_ts.node.js",
"server_manager/www/karma.conf.js",
"server_manager/electron_main.webpack.mjs",
"server_manager/electron_preload.webpack.mjs",
".prettierrc.js",
"client/web/karma.conf.js"
],
"extends": [
"plugin:@typescript-eslint/disable-type-checked"
],
"parserOptions": {
"project": null
}
}
]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"action:list": "npm run action list",
"action": "node ./infrastructure/build/run_action.mjs",
"clean": "npm run clean --workspaces && rm -rf output node_modules third_party/jsign/*.jar && go tool task clean",
"format:all": "echo 'WARNING! Currently works on Linux only. Pass filepaths to fix specific files on MacOS.' && gts fix",
"lint:gts": "echo 'WARNING! Currently works on Linux only. Pass filepaths to lint specific files on MacOS.' && gts lint",
"format:all": "gts fix",
"lint:gts": "gts lint",
"lint:lit": "npm run lint:lit --workspaces --if-present",
"lint:all": "npm run lint:lit && npm run lint:gts",
"reset": "npm run clean && npm ci",
Expand Down
7 changes: 1 addition & 6 deletions server_manager/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,5 @@
},
"rootDir": ".",
"include": ["**/*.ts"],
"exclude": [
"node_modules",
// FIXME: these tests fail with a runtime error because app.ts depends on
// polymer, which targets the browser and uses ES6 imports.
"www/app.spec.ts"
]
"exclude": ["node_modules"]
}
Loading