generated from renchris/panda-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
51 lines (51 loc) · 1.24 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: [
"react",
"@typescript-eslint",
],
extends: [
"airbnb",
"airbnb-typescript",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/jsx-runtime",
"plugin:@next/next/recommended"
],
parserOptions: {
project: "./tsconfig.json"
},
"rules": {
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"react/function-component-definition": [1, {
"namedComponents": "arrow-function"
}],
"react/jsx-props-no-spreading": [1, {
"html": "ignore",
}],
"arrow-body-style": ["error", "as-needed"],
"@typescript-eslint/semi": ["error", "never"],
"react/jsx-filename-extension": [
1,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
};