25
25
alert: true,
26
26
prompt: true,
27
27
XMLHttpRequest: true,
28
+ localStorage: true,
28
29
},
29
30
"rules": {
30
31
curly: 0,
31
32
eqeqeq: 0,
32
- no-underscore-dangle: 0,
33
33
comma-dangle: 2,
34
34
no-dupe-args: 2,
35
35
no-dupe-keys: 2,
101
101
// no-else-return: 2,
102
102
// no-unused-expressions: 2,
103
103
// no-use-before-define : [2, "nofunc"],
104
+
105
+
106
+ // array-bracket-spacing: 2, // enforce spacing inside array brackets (fixable)
107
+ // block-spacing: 2, // disallow or enforce spaces inside of single line blocks (fixable)
108
+ // brace-style: 2, // enforce one true brace style
109
+ // camelcase: 2, // require camel case names
110
+ // comma-spacing: 2, // enforce spacing before and after comma (fixable)
111
+ // comma-style: 2, // enforce one true comma style
112
+ computed-property-spacing: 2, // require or disallow padding inside computed properties (fixable)
113
+ // consistent-this: 2, // enforce consistent naming when capturing the current execution context
114
+ linebreak-style: 2, // disallow mixed 'LF' and 'CRLF' as linebreaks
115
+ // indent: 2, // specify tab or space width for your code (fixable)
116
+ // key-spacing: 2, // enforce spacing between keys and values in object literal properties
117
+ // new-cap: 2, // require a capital letter for constructors
118
+ // new-parens: 2, // disallow the omission of parentheses when invoking a constructor with no arguments
119
+ // newline-after-var: 2, // require or disallow an empty newline after variable declarations
120
+ no-array-constructor: 2, // disallow use of the Array constructor
121
+ // no-lonely-if: 2, // disallow if as the only statement in an else block
122
+ no-mixed-spaces-and-tabs: 2, // disallow mixed spaces and tabs for indentation (recommended)
123
+ // no-multiple-empty-lines: 2, // disallow multiple empty lines
124
+ // no-negated-condition: 2, // disallow negated conditions
125
+ // no-nested-ternary: 2, // disallow nested ternary expressions
126
+ no-new-object: 2, // disallow the use of the Object constructor
127
+ no-restricted-syntax: 2, // disallow use of certain syntax in code
128
+ no-spaced-func: 2, // disallow space between function identifier and application (fixable)
129
+ // no-trailing-spaces: 2, // disallow trailing whitespace at the end of lines (fixable)
130
+ // no-underscore-dangle: 2, // disallow dangling underscores in identifiers
131
+ // no-unneeded-ternary: 2, // disallow the use of ternary operators when a simpler alternative exists
132
+ // object-curly-spacing: 2, // require or disallow padding inside curly braces (fixable)
133
+ // one-var: 2, // require or disallow one variable declaration per function
134
+ // operator-assignment: 2, // require assignment operator shorthand where possible or prohibit it entirely
135
+ // operator-linebreak: 2, // enforce operators to be placed before or after line breaks
136
+ // quotes: [2, "double", "avoid-escape"], // specify whether backticks, double or single quotes should be used (fixable)
137
+ // require-jsdoc: 2, // Require JSDoc comment
138
+ // semi-spacing: 2, // enforce spacing before and after semicolons
139
+ // semi: 2, // require or disallow use of semicolons instead of ASI (fixable)
140
+ // space-after-keywords: 2, // require a space after certain keywords (fixable)
141
+ // space-before-blocks: 2, // require or disallow a space before blocks (fixable)
142
+ // space-before-function-paren: 2, // require or disallow a space before function opening parenthesis (fixable)
143
+ // space-before-keywords: 2, // require a space before certain keywords (fixable)
144
+ // space-in-parens: [2, "never"], // require or disallow spaces inside parentheses
145
+ // space-infix-ops: 2, // require spaces around operators (fixable)
146
+ space-return-throw-case: 2, // require a space after return, throw, and case (fixable)
147
+ // space-unary-ops: 2, // require or disallow spaces before/after unary operators (fixable)
148
+ // spaced-comment: [2, "always", { markers: ["-", "*", "/", "{", "}", "#"], exceptions: ["}"] }]
149
+
104
150
}
105
151
}
0 commit comments