UNPKG

5.92 kBPlain TextView Raw
1{
2 "env": {
3 "browser": false,
4 "node": true,
5 "es6": true
6 },
7
8 "ecmaFeatures": {
9 "arrowFunctions": true,
10 "classes": true,
11 "generators": false,
12 "modules": false
13 },
14
15 "rules": {
16 "quotes": [2, "double", {"avoidEscape": true, "allowTemplateLiterals": true}],
17 // require parens in arrow function arguments
18 "arrow-parens": 0,
19 // require space before/after arrow function's arrow
20 "arrow-spacing": 0,
21 // verify super() callings in constructors
22 "constructor-super": 0,
23 // enforce the spacing around the * in generator functions
24 "generator-star-spacing": 0,
25 // disallow modifying variables of class declarations
26 "no-class-assign": 0,
27 // disallow modifying variables that are declared using const
28 "no-const-assign": 0,
29 // disallow duplicate name in class members
30 "no-dupe-class-members": 0,
31 // disallow to use this/super before super() calling in constructors.
32 "no-this-before-super": 0,
33 // require let or const instead of var
34 "no-var": 0,
35 // require method and property shorthand syntax for object literals
36 "object-shorthand": 0,
37 // suggest using arrow functions as callbacks
38 "prefer-arrow-callback": 0,
39 // suggest using of const declaration for variables that are never modified after declared
40 "prefer-const": 0,
41 // suggest using the spread operator instead of .apply()
42 "prefer-spread": 0,
43 // suggest using Reflect methods where applicable
44 "prefer-reflect": 0,
45 // suggest using template literals instead of strings concatenation
46 "prefer-template": 0,
47 // disallow generator functions that do not have yield
48 "require-yield": 0,
49 // Enforces getter/setter pairs in objects
50 "accessor-pairs": 0,
51 // treat var statements as if they were block scoped
52 "block-scoped-var": 0,
53 // specify the maximum cyclomatic complexity allowed in a program
54 "complexity": 0,
55 // require return statements to either always or never specify values
56 "consistent-return": 0,
57 // specify curly brace conventions for all control statements
58 "curly": [2, "all"],
59 // require default case in switch statements
60 "default-case": 2,
61 // encourages use of dot notation whenever possible
62 "dot-notation": 0,
63 // enforces consistent newlines before or after dots
64 "dot-location": [2, "object"],
65 // require the use of === and !==
66 "eqeqeq": 0,
67 // make sure for-in loops have an if statement
68 "guard-for-in": 0,
69 // disallow the use of alert, confirm, and prompt
70 "no-alert": 0,
71 // disallow use of arguments.caller or arguments.callee
72 "no-caller": 0,
73 // disallow division operators explicitly at beginning of regular expression
74 "no-div-regex": 0,
75 // disallow else after a return in an if
76 "no-else-return": 0,
77 // disallow use of labels for anything other then loops and switches
78 "no-empty-label": 0,
79 // disallow comparisons to null without a type-checking operator
80 "no-eq-null": 0,
81 // disallow use of eval()
82 "no-eval": 2,
83 // disallow adding to native types
84 "no-extend-native": 2,
85 // disallow unnecessary function binding
86 "no-extra-bind": 0,
87 // disallow fallthrough of case statements
88 "no-fallthrough": 0,
89 // disallow the use of leading or trailing decimal points in numeric literals
90 "no-floating-decimal": 0,
91 // disallow the type conversions with shorter notations
92 "no-implicit-coercion": 0,
93 // disallow use of eval()-like methods
94 "no-implied-eval": 0,
95 // disallow this keywords outside of classes or class-like objects
96 "no-invalid-this": 0,
97 // disallow usage of __iterator__ property
98 "no-iterator": 0,
99 // disallow use of labeled statements
100 "no-labels": 0,
101 // disallow unnecessary nested blocks
102 "no-lone-blocks": 0,
103 // disallow creation of functions within loops
104 "no-loop-func": 2,
105 // disallow use of multiple spaces
106 "no-multi-spaces": 0,
107 // disallow use of multiline strings
108 "no-multi-str": 2,
109 // disallow reassignments of native objects
110 "no-native-reassign": 0,
111 // disallow use of new operator when not part of the assignment or comparison
112 "no-new": 0,
113 // disallow use of new operator for Function object
114 "no-new-func": 0,
115 // disallows creating new instances of String,Number, and Boolean
116 "no-new-wrappers": 0,
117 // disallow use of (old style) octal literals
118 "no-octal": 0,
119 // disallow use of octal escape sequences in string literals, such as
120 // var foo = "Copyright \251";
121 "no-octal-escape": 0,
122 // disallow reassignment of function parameters
123 "no-param-reassign": 0,
124 // disallow use of process.env
125 "no-process-env": 0,
126 // disallow usage of __proto__ property
127 "no-proto": 0,
128 // disallow declaring the same variable more then once
129 "no-redeclare": 0,
130 // disallow use of assignment in return statement
131 "no-return-assign": 0,
132 // disallow use of `javascript:` urls.
133 "no-script-url": 0,
134 // disallow comparisons where both sides are exactly the same
135 "no-self-compare": 0,
136 // disallow use of comma operator
137 "no-sequences": 0,
138 // restrict what can be thrown as an exception
139 "no-throw-literal": 0,
140 // disallow usage of expressions in statement position
141 "no-unused-expressions": 0,
142 // disallow unnecessary .call() and .apply()
143 "no-useless-call": 0,
144 // disallow unnecessary concatenation of literals or template literals
145 "no-useless-concat": 0,
146 // disallow use of void operator
147 "no-void": 0,
148 // disallow usage of configurable warning terms in comments: e.g. todo
149 "no-warning-comments": 0,
150 // disallow use of the with statement
151 "no-with": 2,
152 // require use of the second argument for parseInt()
153 "radix": 0,
154 // requires to declare all vars on top of their containing scope
155 "vars-on-top": 0,
156 // require immediate function invocation to be wrapped in parentheses
157 "wrap-iife": 0,
158 // require or disallow Yoda conditions
159 "yoda": 0
160 }
161}