2020-06-04 15:07:14 +00:00
|
|
|
{
|
2021-05-11 13:45:36 +00:00
|
|
|
"root": true,
|
|
|
|
"ignorePatterns": [
|
|
|
|
"projects/**/*"
|
|
|
|
],
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"*.ts"
|
|
|
|
],
|
|
|
|
"parserOptions": {
|
|
|
|
"project": [
|
|
|
|
"tsconfig.json"
|
|
|
|
],
|
|
|
|
"createDefaultProgram": true
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"plugin:@angular-eslint/ng-cli-compat",
|
|
|
|
"plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
|
|
|
|
"plugin:@angular-eslint/template/process-inline-templates"
|
|
|
|
],
|
|
|
|
"rules": {
|
2023-05-23 13:02:13 +00:00
|
|
|
"no-console": "error",
|
|
|
|
"no-debugger": "error",
|
2021-05-11 13:45:36 +00:00
|
|
|
"@angular-eslint/component-selector": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"type": "element",
|
|
|
|
"prefix": "sm",
|
|
|
|
"style": "kebab-case"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"@angular-eslint/directive-selector": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"type": "attribute",
|
|
|
|
"prefix": "sm",
|
|
|
|
"style": "camelCase"
|
|
|
|
}
|
|
|
|
],
|
2020-06-04 15:07:14 +00:00
|
|
|
"@typescript-eslint/consistent-type-definitions": "error",
|
2021-05-11 13:45:36 +00:00
|
|
|
"@typescript-eslint/dot-notation": "off",
|
|
|
|
"@typescript-eslint/member-ordering": "off",
|
2020-06-04 15:07:14 +00:00
|
|
|
"@typescript-eslint/explicit-member-accessibility": [
|
2021-05-11 13:45:36 +00:00
|
|
|
"off",
|
|
|
|
{
|
|
|
|
"accessibility": "explicit"
|
|
|
|
}
|
2020-06-04 15:07:14 +00:00
|
|
|
],
|
2021-05-11 13:45:36 +00:00
|
|
|
"@typescript-eslint/no-inferrable-types": [
|
|
|
|
"off",
|
|
|
|
{
|
|
|
|
"ignoreParameters": true
|
|
|
|
}
|
2020-06-04 15:07:14 +00:00
|
|
|
],
|
2021-05-11 13:45:36 +00:00
|
|
|
"@typescript-eslint/no-unused-expressions": "off",
|
|
|
|
"@typescript-eslint/no-unused-vars": "error",
|
2020-06-04 15:07:14 +00:00
|
|
|
"@typescript-eslint/no-use-before-define": "error",
|
2021-05-11 13:45:36 +00:00
|
|
|
"brace-style": [
|
|
|
|
"error",
|
|
|
|
"1tbs"
|
2020-06-04 15:07:14 +00:00
|
|
|
],
|
|
|
|
"eqeqeq": [
|
2021-05-11 13:45:36 +00:00
|
|
|
"off",
|
|
|
|
"smart"
|
2020-06-04 15:07:14 +00:00
|
|
|
],
|
|
|
|
"id-blacklist": "off",
|
|
|
|
"id-match": "off",
|
|
|
|
"max-len": [
|
2021-05-11 13:45:36 +00:00
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"code": 2000
|
|
|
|
}
|
2020-06-04 15:07:14 +00:00
|
|
|
],
|
|
|
|
"no-bitwise": "off",
|
|
|
|
"no-shadow": [
|
2021-05-11 13:45:36 +00:00
|
|
|
"off",
|
|
|
|
{
|
|
|
|
"hoist": "all"
|
|
|
|
}
|
2020-06-04 15:07:14 +00:00
|
|
|
],
|
|
|
|
"no-underscore-dangle": "off",
|
|
|
|
"valid-typeof": "error"
|
2021-05-11 13:45:36 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"*.html"
|
|
|
|
],
|
|
|
|
"extends": [
|
|
|
|
"plugin:@angular-eslint/template/recommended"
|
|
|
|
],
|
2023-05-23 13:02:13 +00:00
|
|
|
"rules": {
|
|
|
|
"@angular-eslint/template/use-track-by-function": "warn"
|
|
|
|
}
|
2020-06-04 15:07:14 +00:00
|
|
|
}
|
2021-05-11 13:45:36 +00:00
|
|
|
]
|
2020-06-04 15:07:14 +00:00
|
|
|
}
|