Skip to content

Commit e6d131f

Browse files
committed
eslint setup
1 parent 2d48ce3 commit e6d131f

File tree

10 files changed

+1595
-73
lines changed

10 files changed

+1595
-73
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**/*.js
2+
node_modules
3+
dist

.eslintrc.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": ["plugin:prettier/recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended", "airbnb"],
7+
"parser": "@typescript-eslint/parser",
8+
"parserOptions": {
9+
"ecmaFeatures": {
10+
"jsx": true
11+
},
12+
"ecmaVersion": 12,
13+
"sourceType": "module"
14+
},
15+
"plugins": ["react", "@typescript-eslint", "react-hooks", "prettier"],
16+
"rules": {
17+
"prettier/prettier": "error",
18+
"@typescript-eslint/explicit-module-boundary-types": "off",
19+
"@typescript-eslint/no-explicit-any": "off",
20+
"react/jsx-one-expression-per-line": "off",
21+
"no-use-before-define":"off",
22+
"react-hooks/rules-of-hooks": "error",
23+
"react-hooks/exhaustive-deps": "warn",
24+
"react/jsx-filename-extension": [
25+
1,
26+
{
27+
"extensions": [".tsx"]
28+
}
29+
],
30+
"import/prefer-default-export": "off",
31+
"import/extensions": [
32+
"error",
33+
"ignorePackages",
34+
{
35+
"ts": "never",
36+
"tsx": "never"
37+
}
38+
]
39+
},
40+
"settings": {
41+
"import/resolver": {
42+
"webpack": {
43+
"config": "config/webpack.dev.config.js"
44+
},
45+
"typescript": {
46+
}
47+
}
48+
}
49+
}

Readme.md renamed to README.md

File renamed without changes.

0 commit comments

Comments
 (0)