-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
.eslintrc.cjs
56 lines (56 loc) · 1.64 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// This config file is used by eslint
// See package.json scripts: lint*
// Rules documentation: https://eslint.org/docs/rules/
// Inspect the generated config:
// eslint --print-config .eslintrc.cjs
module.exports = {
root: true,
extends: [
// See https://github.com/standard/eslint-config-standard/blob/master/.eslintrc.json
'standard',
],
env: {
es2022: true,
},
parserOptions: {
ecmaVersion: 2022,
ecmaFeatures: {
jsx: false,
},
},
rules: {
'array-bracket-spacing': [ 'error', 'always' ],
'arrow-parens': [ 'error', 'as-needed' ],
'comma-dangle': [ 'error', {
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
} ],
eqeqeq: [ 'error', 'smart' ],
'implicit-arrow-linebreak': [ 'error', 'beside' ],
'import/newline-after-import': 'error',
'import/order': [
'error',
{
pathGroups: [
{ pattern: '#*/**', group: 'internal', position: 'before' },
],
groups: [ 'builtin', 'external', 'internal', 'parent', 'sibling' ],
'newlines-between': 'never',
alphabetize: { order: 'asc' },
},
],
indent: [ 'error', 2, { MemberExpression: 'off' } ],
'linebreak-style': [ 'error', 'unix' ],
'no-ex-assign': [ 'off' ],
'no-var': [ 'error' ],
'nonblock-statement-body-position': [ 'error', 'beside' ],
'object-curly-spacing': [ 'error', 'always' ],
'object-shorthand': [ 'error', 'properties' ],
'one-var': [ 'off' ],
'prefer-arrow-callback': [ 'error' ],
'prefer-const': [ 'error' ],
},
}