meta: move separate eslintrc files into the main one with extends rules
The reason is my IDE likes it better this way.
This commit is contained in:
parent
7278d902c1
commit
b9378219e9
|
@ -3,7 +3,8 @@
|
|||
"plugins": ["@typescript-eslint", "import"],
|
||||
"extends": ["eslint:recommended", "prettier"],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2019
|
||||
"ecmaVersion": 2019,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"settings": {
|
||||
"import/core-modules": ["electron"]
|
||||
|
@ -141,7 +142,15 @@
|
|||
}
|
||||
},
|
||||
{
|
||||
"files": ["**/*.{spec,mock}.*", "src/**/test/*.*"],
|
||||
"files": ["src/main/migrations/**/*"],
|
||||
"rules": {
|
||||
"@typescript-eslint/class-name-casing": "off",
|
||||
"@typescript-eslint/typedef": "off",
|
||||
"@typescript-eslint/explicit-member-accessibility": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["**/*.{spec,mock}.*", "src/**/test/**/*"],
|
||||
"rules": {
|
||||
"no-unused-expressions": "off",
|
||||
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
{
|
||||
"extends": ["../../../.eslintrc.json"],
|
||||
"rules": {
|
||||
"@typescript-eslint/class-name-casing": "off",
|
||||
"@typescript-eslint/typedef": "off",
|
||||
"@typescript-eslint/explicit-member-accessibility": "off"
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"extends": ["../../.eslintrc.json"],
|
||||
"parserOptions": {
|
||||
"sourceType": "module"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue