ref/ eslint conf
This commit is contained in:
@@ -1,76 +1,44 @@
|
|||||||
{
|
{
|
||||||
"env": {
|
"root": true,
|
||||||
"browser": true,
|
"ignorePatterns": [
|
||||||
"node": true,
|
"projects/**/*"
|
||||||
"es6": true,
|
],
|
||||||
"es2017": true
|
|
||||||
},
|
|
||||||
"overrides": [
|
"overrides": [
|
||||||
{
|
{
|
||||||
"files": [
|
"files": [
|
||||||
"*.ts"
|
"*.ts"
|
||||||
],
|
],
|
||||||
"extends": [
|
|
||||||
"eslint:recommended",
|
|
||||||
"plugin:@typescript-eslint/eslint-recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended-requiring-type-checking"
|
|
||||||
],
|
|
||||||
"parser": "@typescript-eslint/parser",
|
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
"ecmaVersion": 10,
|
|
||||||
"project": [
|
"project": [
|
||||||
"./tsconfig.serve.json",
|
"./tsconfig.serve.json",
|
||||||
"./src/tsconfig.app.json",
|
"./src/tsconfig.app.json",
|
||||||
"./src/tsconfig.spec.json",
|
"./src/tsconfig.spec.json",
|
||||||
"./e2e/tsconfig.e2e.json"
|
"./e2e/tsconfig.e2e.json"
|
||||||
],
|
],
|
||||||
"sourceType": "module",
|
"createDefaultProgram": true
|
||||||
"ecmaFeatures": {
|
|
||||||
"modules": true
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"plugins": [
|
"extends": [
|
||||||
"@typescript-eslint",
|
"plugin:@angular-eslint/recommended",
|
||||||
"@angular-eslint/eslint-plugin"
|
"plugin:@angular-eslint/template/process-inline-templates"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"@typescript-eslint/indent": [
|
"@angular-eslint/directive-selector": 0,
|
||||||
|
"@angular-eslint/component-selector": [
|
||||||
"error",
|
"error",
|
||||||
2,
|
|
||||||
{
|
{
|
||||||
"SwitchCase": 1,
|
"type": "element",
|
||||||
"CallExpression": {
|
"prefix": "app",
|
||||||
"arguments": "first"
|
"style": "kebab-case"
|
||||||
},
|
|
||||||
"FunctionExpression": {
|
|
||||||
"parameters": "first"
|
|
||||||
},
|
|
||||||
"FunctionDeclaration": {
|
|
||||||
"parameters": "first"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
"@typescript-eslint/no-empty-function": 0,
|
|
||||||
"@typescript-eslint/no-explicit-any": 0,
|
|
||||||
"@typescript-eslint/no-var-requires": 0,
|
|
||||||
"@typescript-eslint/no-unsafe-call": 0,
|
|
||||||
"@typescript-eslint/no-unsafe-member-access": 0,
|
|
||||||
"@typescript-eslint/no-unsafe-assignment": 0,
|
|
||||||
"@typescript-eslint/no-unsafe-return": 0,
|
|
||||||
"@typescript-eslint/no-floating-promises": 0,
|
|
||||||
"@typescript-eslint/semi": "error",
|
|
||||||
"@angular-eslint/use-injectable-provided-in": "error",
|
|
||||||
"@angular-eslint/no-attribute-decorator": "error"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"files": [
|
"files": [
|
||||||
"*.component.html"
|
"*.component.html"
|
||||||
],
|
],
|
||||||
"parser": "@angular-eslint/template-parser",
|
"extends": [
|
||||||
"plugins": [
|
"plugin:@angular-eslint/template/recommended"
|
||||||
"@angular-eslint/template"
|
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"@angular-eslint/template/banana-in-box": "error",
|
"@angular-eslint/template/banana-in-box": "error",
|
||||||
@@ -78,4 +46,4 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -6,18 +6,24 @@
|
|||||||
"baseUrl": "",
|
"baseUrl": "",
|
||||||
"types": []
|
"types": []
|
||||||
},
|
},
|
||||||
"include": [
|
"files": [
|
||||||
"main.ts",
|
"main.ts",
|
||||||
"polyfills.ts",
|
"polyfills.ts"
|
||||||
"app/**/*.ts",
|
],
|
||||||
"environments/**/*.ts"
|
"include": [
|
||||||
|
"**/*.d.ts"
|
||||||
],
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"**/*.spec.ts"
|
"**/*.spec.ts"
|
||||||
],
|
],
|
||||||
"angularCompilerOptions": {
|
"angularCompilerOptions": {
|
||||||
|
"strictTemplates": true,
|
||||||
"fullTemplateTypeCheck": true,
|
"fullTemplateTypeCheck": true,
|
||||||
|
"annotateForClosureCompiler": true,
|
||||||
"strictInjectionParameters": true,
|
"strictInjectionParameters": true,
|
||||||
"preserveWhitespaces": true
|
"skipTemplateCodegen": false,
|
||||||
|
"preserveWhitespaces": true,
|
||||||
|
"skipMetadataEmit": false,
|
||||||
|
"disableTypeScriptVersionCheck": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user