2016-03-28 14:25:22 -07:00
|
|
|
{
|
2016-10-27 20:48:47 +02:00
|
|
|
"rulesDirectory": [
|
|
|
|
"dist/tools/tslint",
|
2016-12-08 13:46:08 -08:00
|
|
|
"node_modules/vrsource-tslint-rules/rules",
|
2019-05-02 16:44:24 +01:00
|
|
|
"node_modules/tslint-eslint-rules/dist/rules",
|
|
|
|
"node_modules/tslint-no-toplevel-property-access/rules"
|
2016-10-27 20:48:47 +02:00
|
|
|
],
|
|
|
|
"rules": {
|
2018-08-16 15:55:45 -07:00
|
|
|
"file-header": [
|
|
|
|
true,
|
|
|
|
"Copyright Google Inc\\."
|
|
|
|
],
|
|
|
|
"no-console": [
|
|
|
|
true,
|
|
|
|
"log"
|
|
|
|
],
|
2019-10-17 01:52:48 +02:00
|
|
|
"no-construct": true,
|
2016-10-27 20:48:47 +02:00
|
|
|
"no-duplicate-imports": true,
|
|
|
|
"no-duplicate-variable": true,
|
2016-10-27 20:57:10 +02:00
|
|
|
"no-jasmine-focus": true,
|
2016-11-12 14:14:20 +01:00
|
|
|
"no-var-keyword": true,
|
2019-10-17 02:46:50 +02:00
|
|
|
"prefer-literal": [
|
|
|
|
true,
|
|
|
|
"object"
|
|
|
|
],
|
2016-10-27 20:48:47 +02:00
|
|
|
"require-internal-with-underscore": true,
|
2019-05-02 16:44:24 +01:00
|
|
|
"no-toplevel-property-access": [
|
|
|
|
true,
|
|
|
|
"packages/animations/src/",
|
|
|
|
"packages/animations/browser/",
|
|
|
|
"packages/common/src/",
|
|
|
|
"packages/core/src/",
|
|
|
|
"packages/elements/src/",
|
|
|
|
"packages/forms/src/",
|
|
|
|
"packages/platform-browser/src/",
|
|
|
|
"packages/router/src/"
|
|
|
|
],
|
2018-08-16 15:55:45 -07:00
|
|
|
"semicolon": [
|
|
|
|
true
|
|
|
|
],
|
|
|
|
"variable-name": [
|
|
|
|
true,
|
|
|
|
"ban-keywords"
|
|
|
|
],
|
|
|
|
"no-inner-declarations": [
|
|
|
|
true,
|
|
|
|
"function"
|
|
|
|
],
|
|
|
|
"no-debugger": true
|
2017-09-22 19:51:03 +02:00
|
|
|
},
|
|
|
|
"jsRules": {
|
2018-08-16 15:55:45 -07:00
|
|
|
"file-header": [
|
|
|
|
true,
|
|
|
|
"Copyright Google Inc\\."
|
|
|
|
],
|
|
|
|
"no-console": [
|
|
|
|
true,
|
|
|
|
"log"
|
|
|
|
],
|
2017-09-22 19:51:03 +02:00
|
|
|
"no-duplicate-imports": true,
|
|
|
|
"no-duplicate-variable": true,
|
|
|
|
"no-jasmine-focus": true,
|
|
|
|
"require-internal-with-underscore": true,
|
2018-08-16 15:55:45 -07:00
|
|
|
"semicolon": [
|
|
|
|
true
|
|
|
|
],
|
|
|
|
"variable-name": [
|
|
|
|
true,
|
|
|
|
"ban-keywords"
|
|
|
|
],
|
|
|
|
"no-inner-declarations": [
|
|
|
|
true,
|
|
|
|
"function"
|
|
|
|
]
|
2020-03-02 18:35:30 +01:00
|
|
|
},
|
|
|
|
"linterOptions": {
|
|
|
|
"exclude": [
|
|
|
|
"**/node_modules/**/*",
|
|
|
|
// Ignore AIO and integration tests.
|
|
|
|
"./aio/**/*",
|
|
|
|
"./integration/**/*",
|
|
|
|
// Ignore output directories
|
|
|
|
"./built/**/*",
|
|
|
|
"./dist/**/*",
|
|
|
|
"./bazel-out/**/*",
|
|
|
|
// Ignore special files
|
|
|
|
"**/*.externs.js",
|
|
|
|
// Ignore test files
|
|
|
|
"./packages/localize/**/test_files/**/*",
|
|
|
|
"./tools/ts-api-guardian/test/fixtures/**/*",
|
|
|
|
"./tools/public_api_guard/**/*.d.ts",
|
|
|
|
"./modules/benchmarks_external/**/*",
|
|
|
|
// Ignore zone.js directory
|
|
|
|
// TODO(JiaLiPassion): add zone.js back later
|
|
|
|
"./packages/zone.js/**/*"
|
|
|
|
]
|
2016-10-27 20:48:47 +02:00
|
|
|
}
|
2019-05-02 16:44:24 +01:00
|
|
|
}
|