-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.cjs
28 lines (26 loc) · 938 Bytes
/
.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
module.exports = {
extends: ['prettier-airbnb'],
// globals for jest
globals: {
afterEach: false,
beforeEach: false,
describe: false,
expect: false,
it: false,
jest: false,
},
parser: '@babel/eslint-parser',
rules: {
'arrow-parens': 'off', // conflicts with prettier
'comma-dangle': ['error', 'only-multiline'], // conflicts with prettier
'function-paren-newline': 'off', // conflicts with prettier
'max-len': ['error', 120], // to match prettier settings
'no-extra-semi': 'off', // conflicts with prettier
'object-curly-spacing': ['error', 'never'], // to match prettier settings
'object-curly-newline': 'off', // conflicts with prettier
'operator-linebreak': 'off', // conflicts with prettier
'semi-style': 'off', // conflicts with prettier
semi: ['error', 'never'], // to match prettier settings
'import/extensions': ['error', 'ignorePackages'],
},
}