UNPKG

1.15 kBJavaScriptView Raw
1/*
2override airbnb
3repo: https://github.com/airbnb/javascript
4code: https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/es6.js
5rule: https://eslint.org/docs/rules/#ecmascript-6
6*/
7
8module.exports = {
9 rules: {
10 // verify super() callings in constructors
11 'constructor-super': 'warn',
12
13 // disallow modifying variables of class declarations
14 // https://eslint.org/docs/rules/no-class-assign
15 'no-class-assign': 'error',
16
17 // disallow modifying variables that are declared using const
18 'no-const-assign': 'error',
19
20 // disallow duplicate class members
21 // https://eslint.org/docs/rules/no-dupe-class-members
22 'no-dupe-class-members': 'error',
23
24 // disallow symbol constructor
25 // https://eslint.org/docs/rules/no-new-symbol
26 'no-new-symbol': 'error',
27
28 // disallow to use this/super before super() calling in constructors.
29 // https://eslint.org/docs/rules/no-this-before-super
30 'no-this-before-super': 'warn',
31
32 // disallow generator functions that do not have yield
33 // https://eslint.org/docs/rules/require-yield
34 'require-yield': 'error',
35 },
36};