2018-06-13 18:34:10 +02:00
|
|
|
{
|
2018-06-19 16:55:50 +02:00
|
|
|
"rulesDirectory": ["node_modules/codelyzer"],
|
2019-07-26 11:46:59 +02:00
|
|
|
"linterOptions": {
|
2020-04-22 12:55:16 +02:00
|
|
|
"exclude": ["src/polyfills.ts", "src/test.ts", "src/app/shared/shared.module.ts"]
|
2019-07-26 11:46:59 +02:00
|
|
|
},
|
2018-06-19 16:55:50 +02:00
|
|
|
"rules": {
|
2019-07-26 11:46:59 +02:00
|
|
|
"array-type": [true, "array"],
|
2018-06-19 16:55:50 +02:00
|
|
|
"arrow-return-shorthand": true,
|
2019-07-26 11:46:59 +02:00
|
|
|
"arrow-parens": false,
|
2018-06-19 16:55:50 +02:00
|
|
|
"callable-types": true,
|
|
|
|
"class-name": true,
|
|
|
|
"deprecation": {
|
|
|
|
"severity": "warn"
|
|
|
|
},
|
|
|
|
"forin": true,
|
|
|
|
"import-blacklist": [true, "rxjs/Rx"],
|
2019-07-26 11:46:59 +02:00
|
|
|
"interface-name": false,
|
2018-06-19 16:55:50 +02:00
|
|
|
"interface-over-type-literal": true,
|
|
|
|
"label-position": true,
|
2020-04-22 12:55:16 +02:00
|
|
|
"max-line-length": [true, { "limit": 120, "ignore-pattern": "^import [^,]+ from" }],
|
2018-06-19 16:55:50 +02:00
|
|
|
"member-access": false,
|
|
|
|
"member-ordering": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"order": ["static-field", "instance-field", "static-method", "instance-method"]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"no-arg": true,
|
|
|
|
"no-bitwise": true,
|
2020-04-22 12:55:16 +02:00
|
|
|
"no-console": [
|
|
|
|
true,
|
|
|
|
"table",
|
|
|
|
"clear",
|
|
|
|
"count",
|
|
|
|
"countReset",
|
|
|
|
"info",
|
|
|
|
"time",
|
|
|
|
"timeEnd",
|
|
|
|
"timeline",
|
|
|
|
"timelineEnd",
|
|
|
|
"trace"
|
|
|
|
],
|
2019-07-26 11:46:59 +02:00
|
|
|
"no-consecutive-blank-lines": false,
|
2018-06-19 16:55:50 +02:00
|
|
|
"no-construct": true,
|
|
|
|
"no-debugger": true,
|
|
|
|
"no-duplicate-super": true,
|
|
|
|
"no-empty": false,
|
2019-09-26 14:07:33 +02:00
|
|
|
"no-empty-interface": false,
|
2018-06-19 16:55:50 +02:00
|
|
|
"no-eval": true,
|
|
|
|
"no-inferrable-types": [true, "ignore-params"],
|
|
|
|
"no-misused-new": true,
|
|
|
|
"no-non-null-assertion": true,
|
|
|
|
"no-shadowed-variable": true,
|
|
|
|
"no-string-literal": false,
|
|
|
|
"no-string-throw": true,
|
|
|
|
"no-switch-case-fall-through": true,
|
|
|
|
"no-unnecessary-initializer": true,
|
|
|
|
"no-unused-expression": true,
|
|
|
|
"no-use-before-declare": true,
|
|
|
|
"no-var-keyword": true,
|
2019-07-26 11:46:59 +02:00
|
|
|
"object-literal-key-quotes": [true, "as-needed"],
|
2018-06-19 16:55:50 +02:00
|
|
|
"object-literal-sort-keys": false,
|
2020-04-22 12:55:16 +02:00
|
|
|
"ordered-imports": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"import-source-order": "case-sensitive",
|
|
|
|
"grouped-imports": true,
|
|
|
|
"groups": [
|
|
|
|
{
|
|
|
|
"name": "angular",
|
|
|
|
"match": "^@angular",
|
|
|
|
"order": 10
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "internal dependencies",
|
|
|
|
"match": "^(app/|\\.?\\./).*",
|
|
|
|
"order": 30
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "external dependencies",
|
|
|
|
"_match": "^(?!(app/|\\.?\\./)).*",
|
|
|
|
"match": ".*",
|
|
|
|
"order": 20
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"named-imports-order": "case-insensitive",
|
|
|
|
"module-source-path": "basename"
|
|
|
|
}
|
|
|
|
],
|
2018-06-19 16:55:50 +02:00
|
|
|
"prefer-const": true,
|
|
|
|
"radix": true,
|
|
|
|
"triple-equals": [true, "allow-null-check"],
|
|
|
|
"unified-signatures": true,
|
|
|
|
"variable-name": false,
|
|
|
|
"whitespace": [true, "check-branch", "check-decl", "check-operator", "check-separator", "check-type"],
|
|
|
|
"no-output-on-prefix": true,
|
2019-04-25 13:15:24 +02:00
|
|
|
"no-inputs-metadata-property": true,
|
|
|
|
"no-outputs-metadata-property": true,
|
|
|
|
"no-host-metadata-property": true,
|
2018-06-19 16:55:50 +02:00
|
|
|
"no-input-rename": true,
|
|
|
|
"no-output-rename": true,
|
2019-04-25 13:15:24 +02:00
|
|
|
"use-lifecycle-interface": true,
|
2018-06-19 16:55:50 +02:00
|
|
|
"use-pipe-transform-interface": true,
|
|
|
|
"component-class-suffix": true,
|
|
|
|
"directive-class-suffix": true
|
|
|
|
}
|
2018-06-13 18:34:10 +02:00
|
|
|
}
|