You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"no-func-assign": 2, // disallow overwriting functions written as function declarations
56
+
"no-inner-declarations": 2, // disallow function or variable declarations in nested blocks
57
+
"no-invalid-regexp": 2, // disallow invalid regular expression strings in the RegExp constructor
58
+
"no-irregular-whitespace": 2, // disallow irregular whitespace outside of strings and comments
59
+
"no-negated-in-lhs": 2, // disallow negation of the left operand of an in expression
60
+
"no-obj-calls": 2, // disallow the use of object properties of the global object (Math and JSON) as functions
61
+
"no-regex-spaces": 2, // disallow multiple spaces in a regular expression literal
62
+
"quote-props": 2, // disallow reserved words being used as object literal keys (off by default)
63
+
"no-sparse-arrays": 2, // disallow sparse arrays
64
+
"no-unreachable": 2, // disallow unreachable statements after a return, throw, continue, or break statement
65
+
"use-isnan": 2, // disallow comparisons with the value NaN
66
+
"valid-jsdoc": 2, // Ensure JSDoc comments are valid (off by default)
67
+
"valid-typeof": 2, // Ensure that the results of typeof are compared against a valid string
68
+
69
+
//
70
+
// Best Practices
71
+
//
72
+
// These are rules designed to prevent you from making mistakes.
73
+
// They either prescribe a better way of doing something or help you avoid footguns.
74
+
//
75
+
"block-scoped-var": 0, // treat var statements as if they were block scoped (off by default). 0: deep destructuring is not compatible https://github.com/eslint/eslint/issues/1863
76
+
"complexity": 0, // specify the maximum cyclomatic complexity allowed in a program (off by default)
77
+
"consistent-return": 2, // require return statements to either always or never specify values
78
+
"curly": 2, // specify curly brace conventions for all control statements
79
+
"default-case": 2, // require default case in switch statements (off by default)
80
+
"dot-notation": 2, // encourages use of dot notation whenever possible
81
+
"eqeqeq": 2, // require the use of === and !==
82
+
"guard-for-in": 2, // make sure for-in loops have an if statement (off by default)
83
+
"no-alert": 2, // disallow the use of alert, confirm, and prompt
84
+
"no-caller": 2, // disallow use of arguments.caller or arguments.callee
85
+
"no-div-regex": 2, // disallow division operators explicitly at beginning of regular expression (off by default)
86
+
"no-else-return": 2, // disallow else after a return in an if (off by default)
87
+
"no-empty-label": 2, // disallow use of labels for anything other then loops and switches
88
+
"no-eq-null": 2, // disallow comparisons to null without a type-checking operator (off by default)
89
+
"no-eval": 2, // disallow use of eval()
90
+
"no-extend-native": 2, // disallow adding to native types
91
+
"no-extra-bind": 2, // disallow unnecessary function binding
92
+
"no-fallthrough": 2, // disallow fallthrough of case statements
93
+
"no-floating-decimal": 2, // disallow the use of leading or trailing decimal points in numeric literals (off by default)
94
+
"no-implied-eval": 2, // disallow use of eval()-like methods
95
+
"no-iterator": 2, // disallow usage of __iterator__ property
96
+
"no-labels": 2, // disallow use of labeled statements
"no-loop-func": 2, // disallow creation of functions within loops
99
+
"no-multi-spaces": 2, // disallow use of multiple spaces
100
+
"no-multi-str": 2, // disallow use of multiline strings
101
+
"no-native-reassign": 2, // disallow reassignments of native objects
102
+
"no-new": 2, // disallow use of new operator when not part of the assignment or comparison
103
+
"no-new-func": 2, // disallow use of new operator for Function object
104
+
"no-new-wrappers": 2, // disallows creating new instances of String,Number, and Boolean
105
+
"no-octal": 2, // disallow use of octal literals
106
+
"no-octal-escape": 2, // disallow use of octal escape sequences in string literals, such as var foo = "Copyright \251";
107
+
"no-process-env": 2, // disallow use of process.env (off by default)
108
+
"no-proto": 2, // disallow usage of __proto__ property
109
+
"no-redeclare": 2, // disallow declaring the same variable more then once
110
+
"no-return-assign": 2, // disallow use of assignment in return statement
111
+
"no-script-url": 2, // disallow use of javascript: urls.
112
+
"no-self-compare": 2, // disallow comparisons where both sides are exactly the same (off by default)
113
+
"no-sequences": 2, // disallow use of comma operator
114
+
"no-throw-literal": 2, // restrict what can be thrown as an exception (off by default)
115
+
"no-unused-expressions": 2, // disallow usage of expressions in statement position
116
+
"no-void": 2, // disallow use of void operator (off by default)
117
+
"no-warning-comments": [0, {"terms": ["todo", "fixme"], "location": "start"}], // disallow usage of configurable warning terms in comments": 2, // e.g. TODO or FIXME (off by default)
118
+
"no-with": 2, // disallow use of the with statement
119
+
"radix": 2, // require use of the second argument for parseInt() (off by default)
120
+
"vars-on-top": 2, // requires to declare all vars on top of their containing scope (off by default)
121
+
"wrap-iife": 2, // require immediate function invocation to be wrapped in parentheses (off by default)
122
+
"yoda": 2, // require or disallow Yoda conditions
123
+
124
+
//
125
+
// Strict Mode
126
+
//
127
+
// These rules relate to using strict mode.
128
+
//
129
+
"strict": 0, // controls location of Use Strict Directives. 0: required by `babel-eslint`
130
+
131
+
//
132
+
// Variables
133
+
//
134
+
// These rules have to do with variable declarations.
135
+
//
136
+
"no-catch-shadow": 2, // disallow the catch clause parameter name being the same as a variable in the outer scope (off by default in the node environment)
137
+
"no-delete-var": 2, // disallow deletion of variables
138
+
"no-label-var": 2, // disallow labels that share a name with a variable
139
+
"no-shadow": 2, // disallow declaration of variables already declared in the outer scope
140
+
"no-shadow-restricted-names": 2, // disallow shadowing of names such as arguments
141
+
"no-undef": 2, // disallow use of undeclared variables unless mentioned in a /*global */ block
142
+
"no-undef-init": 2, // disallow use of undefined when initializing variables
143
+
"no-undefined": 2, // disallow use of undefined variable (off by default)
144
+
"no-unused-vars": 2, // disallow declaration of variables that are not used in the code
145
+
"no-use-before-define": [2, "nofunc"], // disallow use of variables before they are defined
146
+
147
+
//
148
+
//Stylistic Issues
149
+
//
150
+
// These rules are purely matters of style and are quite subjective.
151
+
//
152
+
"indent": [1, 2], // this option sets a specific tab width for your code (off by default)
153
+
"brace-style": 1, // enforce one true brace style (off by default)
154
+
"camelcase": 1, // require camel case names
155
+
"comma-spacing": [1, {"before": false, "after": true}], // enforce spacing before and after comma
156
+
"comma-style": [1, "last"], // enforce one true comma style (off by default)
157
+
"consistent-this": [1, "_this"], // enforces consistent naming when capturing the current execution context (off by default)
158
+
"eol-last": 1, // enforce newline at the end of file, with no multiple empty lines
159
+
"func-names": 0, // require function expressions to have a name (off by default)
160
+
"func-style": 0, // enforces use of function declarations or expressions (off by default)
161
+
"key-spacing": [1, {"beforeColon": false, "afterColon": true}], // enforces spacing between keys and values in object literal properties
162
+
"max-nested-callbacks": [1, 3], // specify the maximum depth callbacks can be nested (off by default)
163
+
"new-cap": [1, {newIsCap: true, capIsNew: false}], // require a capital letter for constructors
164
+
"new-parens": 1, // disallow the omission of parentheses when invoking a constructor with no arguments
165
+
"newline-after-var": 0, // allow/disallow an empty newline after var statement (off by default)
166
+
"no-array-constructor": 1, // disallow use of the Array constructor
167
+
"no-lonely-if": 1, // disallow if as the only statement in an else block (off by default)
168
+
"no-mixed-spaces-and-tabs": 1, // disallow mixed spaces and tabs for indentation
"no-nested-ternary": 1, // disallow nested ternary expressions (off by default)
171
+
"no-new-object": 1, // disallow use of the Object constructor
172
+
"no-spaced-func": 1, // disallow space between function identifier and application
173
+
"no-ternary": 0, // disallow the use of ternary operators (off by default)
174
+
"no-trailing-spaces": 1, // disallow trailing whitespace at the end of lines
175
+
"no-underscore-dangle": 1, // disallow dangling underscores in identifiers
176
+
"no-extra-parens": 1, // disallow wrapping of non-IIFE statements in parens
177
+
"one-var": [1, "never"], // allow just one var statement per function (off by default)
178
+
"operator-assignment": [1, "never"], // require assignment operator shorthand where possible or prohibit it entirely (off by default)
179
+
"quote-props": [1, "as-needed"], // require quotes around object literal property names (off by default)
180
+
"quotes": [1, "single"], // specify whether double or single quotes should be used
181
+
"semi": [1, "always"], // require or disallow use of semicolons instead of ASI
182
+
"semi-spacing": [1, {"before": false, "after": true}], // enforce spacing before and after semicolons
183
+
"sort-vars": 0, // sort variables within the same declaration block (off by default)
184
+
"space-after-keywords": [1, "always"], // require a space after certain keywords (off by default)
185
+
"space-before-blocks": [1, "always"], // require or disallow space before blocks (off by default)
186
+
"space-before-function-paren": [1, {"anonymous": "always", "named": "never"}], // require or disallow space before function opening parenthesis (off by default)
187
+
// "space-in-brackets": [1, "never"], // require or disallow spaces inside brackets (off by default)
188
+
"space-in-parens": [1, "never"], // require or disallow spaces inside parentheses (off by default)
189
+
"space-infix-ops": [1, {"int32Hint": false}], // require spaces around operators
190
+
"space-return-throw-case": [2], // require a space after return, throw, and case
191
+
"space-unary-ops": [1, {"words": true, "nonwords": false}], // Require or disallow spaces before/after unary operators (words on by default, nonwords off by default)
192
+
"spaced-comment": [1, "always"], // require or disallow a space immediately following the // in a line comment (off by default)
193
+
"wrap-regex": 0, // require regex literals to be wrapped in parentheses (off by default)
194
+
195
+
//
196
+
// ECMAScript 6
197
+
//
198
+
// These rules are only relevant to ES6 environments and are off by default.
199
+
//
200
+
"no-var": 2, // require let or const instead of var (off by default)
201
+
"generator-star-spacing": [2, "before"], // enforce the spacing around the * in generator functions (off by default)
202
+
203
+
//
204
+
// Legacy
205
+
//
206
+
// The following rules are included for compatibility with JSHint and JSLint.
207
+
// While the names of the rules may not match up with the JSHint/JSLint counterpart,
208
+
// the functionality is the same.
209
+
//
210
+
"max-depth": [2, 3], // specify the maximum depth that blocks can be nested (off by default)
211
+
"max-len": [2, 100, 2], // specify the maximum length of a line in your program (off by default)
212
+
"max-params": [2, 5], // limits the number of parameters that can be used in the function declaration. (off by default)
213
+
"max-statements": 0, // specify the maximum number of statement allowed in a function (off by default)
214
+
"no-bitwise": 0 // disallow use of bitwise operators (off by default)
0 commit comments