-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
37 lines (35 loc) · 1.09 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
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: ['airbnb-base', 'eslint:recommended'],
rules: {
// Project specific rules
'no-use-before-define': 0,
'no-new': 0,
indent: ['error', 4, { SwitchCase: 1 }],
// Turned this rule off because of conflict with prettier formatting operators at the end of a line.
'operator-linebreak': 0,
'comma-dangle': [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
functions: 'never',
},
],
'max-len': ['error', 120],
'no-param-reassign': [2, { props: false }],
'func-names': 0,
'no-plusplus': 0,
'no-restricted-syntax': 0,
'no-restricted-exports': 0,
'no-underscore-dangle': 0,
'wrap-iife': ['error', 'inside'],
// 'no-new': process.env.NODE_ENV === 'production' ? 1 : 0,
'no-console': 0,
'no-alert': process.env.NODE_ENV === 'production' ? 1 : 0,
},
};