UNPKG

1.68 kBJavaScriptView Raw
1module.exports = {
2 env: {
3 es6: false
4 },
5 parser: "babel-eslint",
6 ecmaFeatures: {
7 arrowFunctions: true,
8 blockBindings: true,
9 classes: true,
10 defaultParams: true,
11 destructuring: true,
12 forOf: true,
13 generators: false,
14 modules: true,
15 objectLiteralComputedProperties: true,
16 objectLiteralDuplicateProperties: false,
17 objectLiteralShorthandMethods: true,
18 objectLiteralShorthandProperties: true,
19 spread: true,
20 superInFunctions: true,
21 templateStrings: true,
22 jsx: true
23 },
24 rules: {
25 // require parens in arrow function arguments
26 "arrow-parens": 0,
27 // require space before/after arrow function's arrow
28 "arrow-spacing": 0,
29 // verify super() callings in constructors
30 "constructor-super": 0,
31 // enforce the spacing around the * in generator functions
32 "generator-star-spacing": 0,
33 // disallow modifying variables of class declarations
34 "no-class-assign": 0,
35 // disallow modifying variables that are declared using const
36 "no-const-assign": 0,
37 // disallow to use this/super before super() calling in constructors.
38 "no-this-before-super": 0,
39 // require let or const instead of var
40 "no-var": 2,
41 // require method and property shorthand syntax for object literals
42 "object-shorthand": 0,
43 // suggest using of const declaration for variables that are never modified after declared
44 "prefer-const": 2,
45 // suggest using the spread operator instead of .apply()
46 "prefer-spread": 0,
47 // suggest using Reflect methods where applicable
48 "prefer-reflect": 0,
49 // disallow generator functions that do not have yield
50 "require-yield": 0,
51 }
52}