mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Revert "fix SwitchCase indent rule in eslint (#1454)"
This reverts commit 082774fe6e.
This commit is contained in:
1 parent
082774fe6e
commit
b4d7c96890
22 files changed
+400
-406
No files matched your search
+9
-15
@@ -1,4 +1,4 @@
|
||||
module.exports = {
|
||||
module.exports = {
|
||||
ignorePatterns: ["src/extensions/npm/extensions/dist/**/*"],
|
||||
overrides: [
|
||||
{
|
||||
@@ -13,14 +13,12 @@ module.exports = {
|
||||
env: {
|
||||
node: true
|
||||
},
|
||||
parserOptions: {
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
},
|
||||
rules: {
|
||||
"indent": ["error", 2, {
|
||||
"SwitchCase": 1,
|
||||
}],
|
||||
"indent": ["error", 2],
|
||||
"no-unused-vars": "off",
|
||||
"semi": ["error", "always"],
|
||||
}
|
||||
@@ -35,10 +33,10 @@ module.exports = {
|
||||
"__mocks__/*.ts",
|
||||
],
|
||||
parser: "@typescript-eslint/parser",
|
||||
extends: [
|
||||
extends: [
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
],
|
||||
parserOptions: {
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
},
|
||||
@@ -50,9 +48,7 @@ module.exports = {
|
||||
"@typescript-eslint/ban-types": "off",
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"@typescript-eslint/no-empty-interface": "off",
|
||||
"indent": ["error", 2, {
|
||||
"SwitchCase": 1,
|
||||
}],
|
||||
"indent": ["error", 2],
|
||||
"semi": "off",
|
||||
"@typescript-eslint/semi": ["error"],
|
||||
},
|
||||
@@ -62,10 +58,10 @@ module.exports = {
|
||||
"src/renderer/**/*.tsx",
|
||||
],
|
||||
parser: "@typescript-eslint/parser",
|
||||
extends: [
|
||||
extends: [
|
||||
'plugin:@typescript-eslint/recommended',
|
||||
],
|
||||
parserOptions: {
|
||||
parserOptions: {
|
||||
ecmaVersion: 2018,
|
||||
sourceType: 'module',
|
||||
jsx: true,
|
||||
@@ -82,9 +78,7 @@ module.exports = {
|
||||
"@typescript-eslint/explicit-module-boundary-types": "off",
|
||||
"@typescript-eslint/ban-types": "off",
|
||||
"@typescript-eslint/no-empty-function": "off",
|
||||
"indent": ["error", 2, {
|
||||
"SwitchCase": 1,
|
||||
}],
|
||||
"indent": ["error", 2],
|
||||
"semi": "off",
|
||||
"@typescript-eslint/semi": ["error"],
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user