-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
112 lines (112 loc) · 2.79 KB
/
.eslintrc.json
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"extends": [
"airbnb",
"airbnb/hooks",
"eslint:recommended",
"plugin:@next/next/core-web-vitals",
"plugin:@next/next/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:typescript-sort-keys/recommended",
"plugin:react/all",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"babelOptions": {
"presets": ["next/babel"]
},
"requireConfigFile": false,
"sourceType": "module"
},
"plugins": ["tailwindcss"],
"rules": {
"@next/next/no-html-link-for-pages": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_"
}
],
"curly": ["error", "all"],
"func-names": "off",
"import/exports-last": "error",
"import/extensions": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off",
"import/order": [
"error",
{
"alphabetize": {
"order": "asc"
},
"groups": [],
"newlines-between": "never"
}
],
"import/prefer-default-export": "off",
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/mouse-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"no-await-in-loop": "off",
"no-console": "error",
"padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "*",
"next": "block"
},
{
"blankLine": "always",
"prev": "block",
"next": "*"
},
{
"blankLine": "always",
"prev": "*",
"next": "block-like"
},
{
"blankLine": "always",
"prev": "block-like",
"next": "*"
}
],
"react/boolean-prop-naming": "off",
"react/display-name": "off",
"react/function-component-definition": "off",
"react/jsx-filename-extension": [
"error",
{
"extensions": [".tsx"]
}
],
"react/jsx-max-depth": "off",
"react/jsx-no-literals": "off",
"react/jsx-props-no-spreading": "off",
"react/no-multi-comp": "off",
"react/no-unstable-nested-components": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off",
"sort-keys": "error",
"sort-imports": [
"error",
{
"ignoreDeclarationSort": true
}
],
"spaced-comment": "off",
"tailwindcss/classnames-order": "error",
"tailwindcss/migration-from-tailwind-2": "error",
"tailwindcss/no-custom-classname": "error",
"tailwindcss/no-contradicting-classname": "error"
},
"settings": {
"import/resolver": {
"typescript": true
}
}
}