146 lines
4.3 KiB
JavaScript
146 lines
4.3 KiB
JavaScript
module.exports = {
|
|
"env": {
|
|
"browser": true,
|
|
"es6": true,
|
|
"node": true
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"project": "tsconfig.json",
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": [
|
|
"eslint-plugin-import",
|
|
"eslint-plugin-jsdoc",
|
|
"@angular-eslint/eslint-plugin",
|
|
"@typescript-eslint",
|
|
"@typescript-eslint/tslint"
|
|
],
|
|
"root": true,
|
|
"rules": {
|
|
"@angular-eslint/component-class-suffix": "error",
|
|
"@angular-eslint/directive-class-suffix": "error",
|
|
"@angular-eslint/no-host-metadata-property": "error",
|
|
"@angular-eslint/no-input-rename": "error",
|
|
"@angular-eslint/no-inputs-metadata-property": "error",
|
|
"@angular-eslint/no-output-on-prefix": "error",
|
|
"@angular-eslint/no-output-rename": "error",
|
|
"@angular-eslint/no-outputs-metadata-property": "error",
|
|
"@angular-eslint/use-lifecycle-interface": "error",
|
|
"@angular-eslint/use-pipe-transform-interface": "error",
|
|
"@typescript-eslint/consistent-type-definitions": "error",
|
|
"@typescript-eslint/dot-notation": "off",
|
|
"@typescript-eslint/explicit-member-accessibility": [
|
|
"off",
|
|
{
|
|
"accessibility": "explicit"
|
|
}
|
|
],
|
|
"@typescript-eslint/no-empty-function": "off",
|
|
"@typescript-eslint/no-empty-interface": "error",
|
|
"@typescript-eslint/no-inferrable-types": [
|
|
"error",
|
|
{
|
|
"ignoreParameters": true
|
|
}
|
|
],
|
|
"@typescript-eslint/no-misused-new": "error",
|
|
"@typescript-eslint/no-non-null-assertion": "error",
|
|
"@typescript-eslint/no-unused-expressions": "error",
|
|
"@typescript-eslint/prefer-function-type": "error",
|
|
"@typescript-eslint/unified-signatures": "error",
|
|
"arrow-body-style": "error",
|
|
"brace-style": [
|
|
"error",
|
|
"1tbs"
|
|
],
|
|
"constructor-super": "error",
|
|
"curly": "error",
|
|
"dot-notation": "off",
|
|
"eol-last": "error",
|
|
"eqeqeq": [
|
|
"error",
|
|
"smart"
|
|
],
|
|
"guard-for-in": "error",
|
|
"id-denylist": "off",
|
|
"id-match": "off",
|
|
"import/no-deprecated": "warn",
|
|
"indent": [
|
|
'error',
|
|
2,
|
|
{
|
|
SwitchCase: 1,
|
|
FunctionDeclaration: { parameters: 'first' },
|
|
FunctionExpression: { parameters: 'first' }
|
|
}
|
|
],
|
|
"jsdoc/no-types": "error",
|
|
"max-len": [
|
|
"error",
|
|
{
|
|
"code": 140
|
|
}
|
|
],
|
|
"no-bitwise": "error",
|
|
"no-caller": "error",
|
|
"no-console": [
|
|
"error",
|
|
{
|
|
"allow": [
|
|
"log",
|
|
"warn",
|
|
"dir",
|
|
"timeLog",
|
|
"assert",
|
|
"clear",
|
|
"count",
|
|
"countReset",
|
|
"group",
|
|
"groupEnd",
|
|
"table",
|
|
"dirxml",
|
|
"error",
|
|
"groupCollapsed",
|
|
"Console",
|
|
"profile",
|
|
"profileEnd",
|
|
"timeStamp",
|
|
"context"
|
|
]
|
|
}
|
|
],
|
|
"no-debugger": "error",
|
|
"no-empty": "off",
|
|
"no-empty-function": "off",
|
|
"no-eval": "error",
|
|
"no-fallthrough": "error",
|
|
"no-new-wrappers": "error",
|
|
"no-restricted-imports": [
|
|
"error",
|
|
"rxjs/Rx"
|
|
],
|
|
"no-shadow": "off",
|
|
"no-throw-literal": "error",
|
|
"no-trailing-spaces": "error",
|
|
"no-undef-init": "error",
|
|
"no-underscore-dangle": "off",
|
|
"no-unused-expressions": "off",
|
|
"no-unused-labels": "error",
|
|
"no-var": "error",
|
|
"prefer-const": "error",
|
|
"quotes": ['error', 'single', { 'allowTemplateLiterals': true }],
|
|
"radix": "error",
|
|
"semi": "off",
|
|
"spaced-comment": [
|
|
"error",
|
|
"always",
|
|
{
|
|
"markers": [
|
|
"/"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
};
|