-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
47 lines (47 loc) · 1.49 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
{
"env": {
"browser": true,
"es2021": true
},
"plugins": ["react", "@typescript-eslint", "import"],
"extends": [
"eslint:recommended",
"next/core-web-vitals",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:mdx/recommended",
"prettier"
],
"settings": {
"mdx/code-blocks": true,
"react": { "version": "detect" },
"import/parsers": { "@typescript-eslint/parser": [".ts", ".tsx"] },
"import/resolver": { "typescript": { "alwaysTryTypes": true } }
},
"rules": {
"id-length": ["error", { "exceptionPatterns": ["a|b"] }],
"import/no-named-as-default": "off",
"import/no-unresolved": 0,
"import/order": [
1,
{
"groups": ["external", "builtin", "internal", "sibling", "parent", "index"]
}
],
"func-style": [2, "declaration", { "allowArrowFunctions": true }],
"quotes": ["error", "double"],
"no-console": 1,
"no-unused-expressions": "off",
"react/no-danger": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"react/no-unescaped-entities": "off",
"react/require-default-props": "off",
"sort-imports": ["error", { "ignoreCase": true, "ignoreDeclarationSort": true }]
},
"overrides": [{ "files": ["*.mdx"], "rules": { "react/jsx-no-undef": "off" } }],
"ignorePatterns": ["node_modules", ".next", "build", "dist", "public"]
}