-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
36 lines (36 loc) · 886 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
29
30
31
32
33
34
35
36
module.exports = {
env: { es2020: true, node: true },
extends: [
'eslint:recommended'
],
parser: '@babel/eslint-parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
requireConfigFile: false,
allowImportExportEverywhere: true
},
plugins: [],
rules: {
// Common
'no-console': 1,
'no-extra-boolean-cast': 0,
'no-lonely-if': 1,
'no-unused-vars': 1,
'no-trailing-spaces': 1,
'no-multi-spaces': 1,
'no-multiple-empty-lines': 1,
'space-before-blocks': ['error', 'always'],
'object-curly-spacing': [1, 'always'],
'indent': ['warn', 2],
'semi': [1, 'never'],
'quotes': ['error', 'single'],
'array-bracket-spacing': 1,
'linebreak-style': 0,
'no-unexpected-multiline': 'warn',
'keyword-spacing': 1,
'comma-dangle': 1,
'comma-spacing': 1,
'arrow-spacing': 1
}
}