-
Notifications
You must be signed in to change notification settings - Fork 464
/
Copy path.eslintrc.js
64 lines (64 loc) · 1.77 KB
/
.eslintrc.js
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
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: [
'airbnb',
'airbnb/hooks',
'airbnb-typescript',
'plugin:prettier/recommended',
'plugin:tailwindcss/recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
},
plugins: ['@typescript-eslint', 'react', 'import', 'jsx-a11y', 'unused-imports', 'prettier', 'tailwindcss'],
rules: {
'unused-imports/no-unused-imports': 'error',
'prettier/prettier': 'error',
'react/function-component-definition': [
'error',
{
namedComponents: 'arrow-function',
unnamedComponents: 'arrow-function',
},
],
'import/extensions': ['off', 'ignorePackages'],
'jsx-a11y/no-static-element-interactions': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'react/require-default-props': 'off',
'no-underscore-dangle': 'off',
'react/destructoring-assignment': 'off',
'react/jsx-props-no-spreading': 'off',
'object-shorthand': 'off',
"import/no-extraneous-dependencies": [
"error", {
"devDependencies": true,
"optionalDependencies": false,
"peerDependencies": false,
"packageDir": "./"
}
],
"react/destructuring-assignment": "off",
"no-plusplus": "off",
"no-restricted-syntax": "off",
"no-param-reassign": 'off',
"prefer-destructuring": 'off',
"no-return-assign": 'off',
"no-cond-assign": 'off',
// TEMPORARILY DISABLE CIRCULAR DEPENDENCY CHECK -- UPDATE LATER
"import/no-cycle": 'off',
"no-alert": 'off',
},
ignorePatterns: ['vite.config.ts', '.eslintrc.js'],
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
}