-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
53 lines (53 loc) · 1.28 KB
/
.eslintrc
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
52
53
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": [
"@next/eslint-plugin-next",
"@typescript-eslint",
"react-hooks",
"import",
"simple-import-sort",
"import-newlines"
],
"extends": [
"airbnb-typescript",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": "error",
"no-unused-vars": "error",
"react/jsx-filename-extension": [0],
"implicit-arrow-linebreak": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"no-param-reassign": [
"error",
{
"props": true
}
],
"no-console": ["error", { "allow": ["warn", "error"] }],
"@typescript-eslint/comma-dangle": "off",
"function-paren-newline": "off",
"quotes": ["error", "single", {
"avoidEscape": true,
"allowTemplateLiterals": true
}],
"jsx-quotes": ["error", "prefer-single"]
},
"settings": {
"import/extensions": [".js", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"react": {
"pragma": "React",
"version": "detect"
}
}
}