forked from sanity-io/demo-custom-workflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
50 lines (50 loc) · 1.01 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
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
env: {
node: true,
browser: true
},
settings: {
react: {version: '16.9.0'}
},
extends: [
'sanity',
'sanity/react',
'sanity/import',
'plugin:react-hooks/recommended',
'prettier'
],
rules: {
'no-use-before-define': 'off',
'@typescript-eslint/no-var-requires': 'off',
'import/no-extraneous-dependencies': 'off', // because of parts
'import/no-unresolved': ['error', {ignore: ['.*:.*']}], // because of parts
'prettier/prettier': [
'error',
{
semi: false,
printWidth: 100,
bracketSpacing: false,
singleQuote: true
}
],
'sort-imports': 'off', // prefer import/order
'react/jsx-no-bind': [
1,
{
ignoreDOMComponents: true
}
],
'react/forbid-prop-types': [0]
},
plugins: ['prettier', 'react'],
overrides: [
{
files: ['*.ts', '*.tsx'],
rules: {
'no-undef': 'off'
}
}
]
}