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:
Xymorot 2020-11-12 21:19:07 +01:00
parent 7278d902c1
commit b9378219e9
3 changed files with 11 additions and 16 deletions

View File

@ -3,7 +3,8 @@
"plugins": ["@typescript-eslint", "import"], "plugins": ["@typescript-eslint", "import"],
"extends": ["eslint:recommended", "prettier"], "extends": ["eslint:recommended", "prettier"],
"parserOptions": { "parserOptions": {
"ecmaVersion": 2019 "ecmaVersion": 2019,
"sourceType": "module"
}, },
"settings": { "settings": {
"import/core-modules": ["electron"] "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": { "rules": {
"no-unused-expressions": "off", "no-unused-expressions": "off",

View File

@ -1,8 +0,0 @@
{
"extends": ["../../../.eslintrc.json"],
"rules": {
"@typescript-eslint/class-name-casing": "off",
"@typescript-eslint/typedef": "off",
"@typescript-eslint/explicit-member-accessibility": "off"
}
}

View File

@ -1,6 +0,0 @@
{
"extends": ["../../.eslintrc.json"],
"parserOptions": {
"sourceType": "module"
}
}