Skip to content

Commit ead4789

Browse files
committed
[FE] Simplify Eslint config
1 parent 3c4ccf9 commit ead4789

File tree

10 files changed

+581
-87
lines changed

10 files changed

+581
-87
lines changed

kafka-ui-react-app/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/src/generated-sources/**

kafka-ui-react-app/.eslintrc.json

Lines changed: 10 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,21 @@
1313
"jsx": true
1414
},
1515
"ecmaVersion": 2018,
16-
"sourceType": "module"
16+
"sourceType": "module",
17+
"project": "./tsconfig.json"
1718
},
18-
"plugins": ["react", "@typescript-eslint", "prettier"],
19+
"plugins": ["@typescript-eslint", "prettier"],
1920
"extends": [
20-
"plugin:react/recommended",
21-
"airbnb",
22-
"plugin:prettier/recommended",
23-
"plugin:@typescript-eslint/eslint-recommended",
24-
"plugin:@typescript-eslint/recommended"
21+
"airbnb-typescript",
22+
"plugin:@typescript-eslint/recommended",
23+
"prettier",
24+
"prettier/react",
25+
"prettier/@typescript-eslint"
2526
],
2627
"rules": {
27-
"@typescript-eslint/ban-ts-ignore": "off",
28-
"import/extensions": [
29-
"error",
30-
"ignorePackages",
31-
{
32-
"js": "never",
33-
"jsx": "never",
34-
"ts": "never",
35-
"tsx": "never"
36-
}
37-
],
3828
"prettier/prettier": "error",
39-
"@typescript-eslint/explicit-function-return-type": "off",
40-
"react/jsx-filename-extension": [
41-
1,
42-
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
43-
],
29+
"@typescript-eslint/explicit-module-boundary-types": "off",
4430
"jsx-a11y/label-has-associated-control": "off",
45-
"no-param-reassign": [2, { "props": false }],
4631
"import/prefer-default-export": "off"
4732
},
4833
"overrides": [
@@ -52,14 +37,5 @@
5237
"react/prop-types": "off"
5338
}
5439
}
55-
],
56-
"settings": {
57-
"import/resolver": {
58-
"node": {
59-
"extensions": [".js", ".jsx", ".ts", ".tsx"],
60-
"paths": ["src"]
61-
},
62-
"typescript": {}
63-
}
64-
}
40+
]
6541
}

0 commit comments

Comments
 (0)