ref/ keep only 1 eslint config

This commit is contained in:
Maxime GRIS
2020-06-20 20:09:10 +02:00
parent a98a84a9e6
commit e942747202
5 changed files with 62 additions and 75 deletions

View File

@@ -17,7 +17,11 @@
"parser": "@typescript-eslint/parser", "parser": "@typescript-eslint/parser",
"parserOptions": { "parserOptions": {
"ecmaVersion": 10, "ecmaVersion": 10,
"project": "src/tsconfig.app.json", "project": [
"./src/tsconfig.app.json",
"./src/tsconfig.spec.json",
"./e2e/tsconfig.e2e.json"
],
"sourceType": "module", "sourceType": "module",
"ecmaFeatures": { "ecmaFeatures": {
"modules": true "modules": true

View File

@@ -127,7 +127,7 @@
"lint": { "lint": {
"builder": "@angular-eslint/builder:lint", "builder": "@angular-eslint/builder:lint",
"options": { "options": {
"eslintConfig": "src/eslintrc.app.json", "eslintConfig": ".eslintrc.json",
"tsConfig": [ "tsConfig": [
"src/tsconfig.app.json", "src/tsconfig.app.json",
"src/tsconfig.spec.json" "src/tsconfig.spec.json"
@@ -146,7 +146,7 @@
"lint": { "lint": {
"builder": "@angular-eslint/builder:lint", "builder": "@angular-eslint/builder:lint",
"options": { "options": {
"eslintConfig": "e2e/eslintrc.e2e.json", "eslintConfig": ".eslintrc.json",
"tsConfig": [ "tsConfig": [
"e2e/tsconfig.e2e.json" "e2e/tsconfig.e2e.json"
], ],

View File

@@ -1,8 +0,0 @@
{
"extends": "../.eslintrc.json",
"parserOptions": {
"project": [
"e2e/tsconfig.e2e.json"
]
}
}

View File

@@ -8,6 +8,6 @@
] ]
}, },
"include": [ "include": [
"**/*.ts" "e2e/**/*.ts"
] ]
} }

View File

@@ -1,9 +0,0 @@
{
"extends": "../.eslintrc.json",
"parserOptions": {
"project": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
]
}
}