-
Notifications
You must be signed in to change notification settings - Fork 55
/
.eslintrc.cjs
51 lines (51 loc) · 1.24 KB
/
.eslintrc.cjs
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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
extends: [
'sanity/react', // must come before sanity/typescript
'sanity/typescript',
'plugin:react-hooks/recommended',
'plugin:prettier/recommended',
],
overrides: [
{
files: ['*.{ts,tsx}'],
rules: {
'no-undef': 0,
},
},
],
plugins: ['simple-import-sort', 'prettier'],
rules: {
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
'@typescript-eslint/no-shadow': 'error',
'@typescript-eslint/no-unused-vars': 1,
'simple-import-sort/imports': 'warn',
'simple-import-sort/exports': 'warn',
'no-unused-vars': 0,
'no-shadow': 'off',
'react/display-name': 0,
'react/jsx-no-bind': 0,
'react/jsx-handler-names': 0,
'react/react-in-jsx-scope': 0,
camelcase: 0,
'symbol-description': 0,
'no-void': 0,
'@typescript-eslint/no-explicit-any': 'warn',
},
settings: {
'import/ignore': ['\\.css$', '.*node_modules.*'],
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
}