-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathes6.js
48 lines (47 loc) · 1.54 KB
/
es6.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
47
48
const {error} = require('./consts');
module.exports = {
env: {
es6: true
},
plugins: [
'import'
],
rules: {
// ES6
'arrow-body-style': [error, 'as-needed'],
'arrow-parens': [error, 'as-needed'],
'arrow-spacing': [error, {before: true, after: true}],
'constructor-super': error,
'generator-star-spacing': [error, {before: false, after: true}],
'lines-between-class-members': [error, 'always', {exceptAfterSingleLine: true}],
'no-class-assign': error,
'no-confusing-arrow': [error, {allowParens: true}],
'no-const-assign': error,
'no-constant-condition': error,
'no-dupe-class-members': error,
'no-this-before-super': error,
'no-var': error,
'object-shorthand': error,
'prefer-arrow-callback': [error, {allowNamedFunctions: true}],
'prefer-const': error,
'prefer-spread': error,
'prefer-template': error,
'require-yield': error,
'import/no-unresolved': error,
'import/named': error,
'import/namespace': error,
'import/default': error,
'import/no-absolute-path': error,
'import/export': error,
'import/no-mutable-exports': error,
'import/no-amd': error,
'import/no-commonjs': error,
'import/first': error,
'import/no-duplicates': error,
'import/extensions': [error, 'always', {js: 'never'}],
'import/order': [error, {'newlines-between': 'always-and-inside-groups'}],
'import/newline-after-import': error,
'import/no-named-default': error,
'import/no-useless-path-segments': [error, {noUselessIndex: true}]
}
};