-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.js
46 lines (46 loc) · 1.04 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
module.exports = {
root: true,
parser: 'babel-eslint',
extends: [
'eslint:recommended',
],
ignorePatterns: [
'.next',
'.now',
'node_modules',
'out',
'public',
'/**/*.d.ts',
],
env: {
jest: true,
},
rules: {
// 'no-multi-spaces': 'error',
semi: 'error',
'comma-dangle': ['error', 'always-multiline'],
indent: ['error', 2],
quotes: ['error', 'single', { avoidEscape: true }],
'arrow-parens': ['error', 'as-needed'],
'array-bracket-spacing': ['error', 'never'],
'object-curly-spacing': ['error', 'always', { objectsInObjects: false, arraysInObjects: false }],
'quote-props': ['error', 'as-needed'],
'keyword-spacing': 'error',
'comma-spacing': ['error', { before: false, after: true }],
'no-unused-vars': 'off',
},
globals: {
window: true,
console: true,
Promise: true,
require: true,
process: true,
module: true,
CustomEvent: true,
state: true,
document: true,
alert: true,
localStorage: true,
jest: true,
},
};