forked from Part3-Team15/taskify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
107 lines (107 loc) · 2.69 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
{
"env": {
"browser": true,
"node": true,
"es2021": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
},
"babelOptions": {
"presets": ["@babel/preset-react"]
},
"project": "./tsconfig.json",
"sourceType": "module"
},
"extends": [
"prettier",
"plugin:import/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:@typescript-eslint/recommended",
"plugin:@next/next/recommended",
"plugin:tailwindcss/recommended"
],
"globals": {
"_": true
},
"plugins": ["import", "html", "react", "@typescript-eslint", "tailwindcss", "prettier"],
"rules": {
"import/no-unresolved": 0,
"no-console": "warn",
"no-undefined": "warn",
"no-unused-expressions": [
"error",
{
"allowTernary": true,
"allowShortCircuit": true,
"allowTaggedTemplates": true
}
],
"no-shadow": "warn",
"max-nested-callbacks": ["error", 5],
"import/order": [
"error",
{
"groups": ["external", "internal", "builtin", "parent", "sibling", "index"],
"pathGroupsExcludedImportTypes": ["react"],
"newlines-between": "always",
"pathGroups": [
{
"pattern": "react/**",
"group": "external",
"position": "before"
},
{
"pattern": "@shopby/**",
"group": "external",
"position": "after"
}
],
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/no-shadow": ["warn"],
"@typescript-eslint/explicit-module-boundary-types": "off",
"tailwindcss/classnames-order": "warn",
"tailwindcss/enforces-shorthand": "warn",
"tailwindcss/no-custom-classname": "warn"
},
"settings": {
"react": {
"version": "detect"
},
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
},
"tailwindcss": {
"callees": ["classnames", "clsx", "ctl"]
}
},
"overrides": [
{
"files": ["**/*.test.ts", "**/*.test.tsx"],
"plugins": ["jest"],
"extends": ["plugin:jest/recommended"],
"rules": {
"jest/prefer-expect-assertions": "off"
}
}
]
}