-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathes6.js
26 lines (23 loc) · 965 Bytes
/
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
module.exports = {
extends: [`htmlacademy/es5`],
rules: {
// ECMAScript 6
// http://eslint.org/docs/rules/#ecmascript-6
// ------------------------------------------
'arrow-parens': [`error`, `always`],
// parens are optional but recommended.
// ESLint doesn't support a *consistent*
// setting so "always" is used.
'constructor-super': `error`, // eslint:recommended
'generator-star-spacing': [`error`, `after`],
'no-new-symbol': `error`, // eslint:recommended
'no-this-before-super': `error`, // eslint:recommended
'no-var': `error`,
'prefer-rest-params': `error`,
'prefer-spread': `error`,
'rest-spread-spacing': `error`,
'yield-star-spacing': [`error`, `after`],
'object-shorthand': [`error`, `always`, {'avoidQuotes': true}],
'quotes': [`error`, `backtick`] // https://github.com/htmlacademy/eslint-config-htmlacademy/issues/4
}
};