-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
73 lines (73 loc) · 2.39 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"env": {
"browser": true,
"es2020": true,
"jest": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:tailwindcss/recommended",
"plugin:storybook/recommended"
],
"settings": {
"tailwindcss": {
"config": "./tailwind.config.js"
},
"import/resolver": {
"typescript": {}
},
"react": {
"createClass": "createReactClass", // Regex for Component Factory to use, default to "createReactClass"
"pragma": "React", // Pragma to use, default to "React"
"fragment": "Fragment", // Fragment to use (may be a property of <pragma>), default to "Fragment"
"version": "detect", // React version. "detect" automatically picks the version you have installed.
"flowVersion": "0.53" // Flow version
}
},
"globals": {
"window": true,
"module": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "react-hooks", "@typescript-eslint", "prettier", "react-refresh", "tailwindcss"],
"ignorePatterns": ["src/lib/openapi/generated/**/*"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-function": "off",
"prettier/prettier": ["error", { "semi": false, "endOfLine": "auto" }],
"no-empty-function": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"camelcase": "error",
"quotes": ["error", "single"],
"no-duplicate-imports": "error",
"no-unused-vars": "off",
"react-refresh/only-export-components": ["warn", { "allowConstantExport": true }],
"tailwindcss/classnames-order": "warn",
"tailwindcss/no-custom-classname": ["warn", {"callees": ["classnames", "clsx", "ctl", "cva", "tv", "cn", "twMerge", "tw"]}],
"tailwindcss/no-contradicting-classname": "error"
}
}