Skip to content

Commit 1fb1902

Browse files
committed
Extended eslint config to support ts files validation
Contains changes related to .ts files linting in order not to make this pr big and messy
1 parent 06d8cba commit 1fb1902

15 files changed

+1217
-818
lines changed

.eslintrc.json

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,35 @@
11
{
2-
"extends": ["standard", "standard-jsx"],
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"ecmaVersion": 2020,
5+
"sourceType": "module",
6+
"allowImportExportEverywhere": true,
7+
"ecmaFeatures": {
8+
"jsx": true
9+
}
10+
},
311
"env": {
412
"browser": true,
513
"jest": true
614
},
15+
"settings": {
16+
"react": {
17+
"version": "detect"
18+
}
19+
},
20+
"extends": [
21+
"plugin:react/recommended",
22+
"plugin:@typescript-eslint/recommended"
23+
],
724
"rules": {
8-
"comma-dangle": ["error", "always-multiline"],
9-
"space-before-function-paren": ["error", {
10-
"anonymous": "always",
11-
"asyncArrow": "always",
12-
"named": "never"
25+
"@typescript-eslint/no-empty-function": "off",
26+
"@typescript-eslint/comma-dangle": ["error", "always-multiline"],
27+
"@typescript-eslint/space-before-function-paren": ["error", {
28+
"anonymous": "always",
29+
"asyncArrow": "always",
30+
"named": "never"
1331
}],
14-
"jsx-quotes": ["error", "prefer-double"],
15-
"react/jsx-fragments": "off"
16-
},
17-
"parser": "@babel/eslint-parser",
18-
"parserOptions": {
19-
"allowImportExportEverywhere": true
32+
"@typescript-eslint/no-explicit-any": "off",
33+
"@typescript-eslint/explicit-module-boundary-types": "off"
2034
}
2135
}

0 commit comments

Comments
 (0)