-
Notifications
You must be signed in to change notification settings - Fork 2
/
eslint.config.js
46 lines (44 loc) · 968 Bytes
/
eslint.config.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
const react = require('eslint-plugin-react');
module.exports = [
{
languageOptions: {
globals: {
cy: true
},
parserOptions: {
ecmaFeatures: {
jsx: true
},
ecmaVersion: 13,
sourceType: 'module'
}
},
plugins: {
react
},
rules: {
'react/jsx-filename-extension': 'warn',
'no-use-before-define': 'warn',
// TODO: Need to wait for Eslint 9 support
// 'import/no-unresolved': 'warn',
'no-param-reassign': 'warn',
'no-multiple-empty-lines': 'warn',
'padded-blocks': 'warn',
'no-trailing-spaces': 'warn',
'no-undef': 'warn',
'comma-dangle': 'warn'
/*
// TODO: Need to wait for Eslint 9 support
'import/extensions': [
'warn',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never'
}
]*/
}
}
];