
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
eslint-config-plus
Advanced tools
Eslint config plus = Eslint official recommended rules + most fixable and normal rules.
https://eslint.org/docs/rules/
npm install eslint-config-plus -D
// eslint.config.js
const plus = require('eslint-config-plus');
module.exports = [
{
rules: {
... plus.rules
}
}
];
Base on eslint@9.33.0 (2025/8/9)
Rules | Count | ||
---|---|---|---|
All Eslint rules | 291 | ||
βοΈ | Defined in plus | 204 | 70.1% |
β | Undefined | 87 | 29.9% |
β | Recommended | 61 | 21.0% |
π§ | Fixable | 106 | 36.4% |
β οΈ | Deprecated | 93 | 32.0% |
Rules | Type | Enabled | Value | |
---|---|---|---|---|
1 | accessor-pairs | β | ||
2 | array-bracket-newline | π§β οΈ | βοΈ | ["error","consistent"] |
3 | array-bracket-spacing | π§β οΈ | βοΈ | ["error","never"] |
4 | array-callback-return | β | ||
5 | array-element-newline | π§β οΈ | βοΈ | ["error","consistent"] |
6 | arrow-body-style | π§ | β | |
7 | arrow-parens | π§β οΈ | βοΈ | ["error","always"] |
8 | arrow-spacing | π§β οΈ | βοΈ | "error" |
9 | block-scoped-var | β | ||
10 | block-spacing | π§β οΈ | βοΈ | "error" |
11 | brace-style | π§β οΈ | βοΈ | "error" |
12 | callback-return | β οΈ | β | |
13 | camelcase | β | ||
14 | capitalized-comments | π§ | β | |
15 | class-methods-use-this | β | ||
16 | comma-dangle | π§β οΈ | βοΈ | ["error","never"] |
17 | comma-spacing | π§β οΈ | βοΈ | Details["error",{"after":true,"before":false}] |
18 | comma-style | π§β οΈ | βοΈ | ["error","last"] |
19 | complexity | βοΈ | ["error",8] | |
20 | computed-property-spacing | π§β οΈ | βοΈ | ["error","never"] |
21 | consistent-return | β | ||
22 | consistent-this | β | ||
23 | constructor-super | β | βοΈ | "error" |
24 | curly | π§ | βοΈ | "error" |
25 | default-case | βοΈ | "error" | |
26 | default-case-last | βοΈ | "error" | |
27 | default-param-last | βοΈ | "error" | |
28 | dot-location | π§β οΈ | βοΈ | ["error","property"] |
29 | dot-notation | π§ | βοΈ | "error" |
30 | eol-last | π§β οΈ | βοΈ | ["error","always"] |
31 | eqeqeq | π§ | βοΈ | ["error","always"] |
32 | for-direction | β | βοΈ | "error" |
33 | func-call-spacing | π§β οΈ | βοΈ | ["error","never"] |
34 | func-name-matching | βοΈ | "error" | |
35 | func-names | β | ||
36 | func-style | β | ||
37 | function-call-argument-newline | π§β οΈ | βοΈ | ["error","consistent"] |
38 | function-paren-newline | π§β οΈ | βοΈ | ["error","consistent"] |
39 | generator-star-spacing | π§β οΈ | βοΈ | Details["error",{"after":false,"before":true}] |
40 | getter-return | β | βοΈ | "error" |
41 | global-require | β οΈ | β | |
42 | grouped-accessor-pairs | β | ||
43 | guard-for-in | β | ||
44 | handle-callback-err | β οΈ | β | |
45 | id-blacklist | β οΈ | β | |
46 | id-denylist | β | ||
47 | id-length | β | ||
48 | id-match | β | ||
49 | implicit-arrow-linebreak | π§β οΈ | βοΈ | ["error","beside"] |
50 | indent | π§β οΈ | βοΈ | Details["error",4,{"ArrayExpression":"first","ObjectExpression":1,"SwitchCase":1}] |
51 | indent-legacy | π§β οΈ | β | |
52 | init-declarations | β | ||
53 | jsx-quotes | π§β οΈ | βοΈ | ["error","prefer-double"] |
54 | key-spacing | π§β οΈ | βοΈ | Details["error",{"afterColon":true,"mode":"strict"}] |
55 | keyword-spacing | π§β οΈ | βοΈ | Details["error",{"after":true,"before":true}] |
56 | line-comment-position | β οΈ | βοΈ | ["error",{"position":"above"}] |
57 | linebreak-style | π§β οΈ | β | |
58 | lines-around-comment | π§β οΈ | βοΈ | Details["error",{"beforeBlockComment":true}] |
59 | lines-around-directive | π§β οΈ | β | |
60 | lines-between-class-members | π§β οΈ | βοΈ | Details["error","always",{"exceptAfterSingleLine":true}] |
61 | logical-assignment-operators | π§ | β | |
62 | max-classes-per-file | βοΈ | "error" | |
63 | max-depth | βοΈ | ["error",5] | |
64 | max-len | β οΈ | βοΈ | Details["error",{"code":550,"ignoreStrings":true,"ignoreTrailingComments":true}] |
65 | max-lines | βοΈ | ["error",3000] | |
66 | max-lines-per-function | βοΈ | ["error",300] | |
67 | max-nested-callbacks | βοΈ | ["error",5] | |
68 | max-params | βοΈ | ["error",8] | |
69 | max-statements | βοΈ | ["error",50] | |
70 | max-statements-per-line | β οΈ | βοΈ | ["error",{"max":3}] |
71 | multiline-comment-style | π§β οΈ | β | |
72 | multiline-ternary | π§β οΈ | βοΈ | ["error","never"] |
73 | new-cap | βοΈ | Details["error",{"capIsNew":false,"newIsCap":true,"properties":true}] | |
74 | new-parens | π§β οΈ | βοΈ | "error" |
75 | newline-after-var | π§β οΈ | β | |
76 | newline-before-return | π§β οΈ | β | |
77 | newline-per-chained-call | π§β οΈ | β | |
78 | no-alert | βοΈ | "error" | |
79 | no-array-constructor | π§ | βοΈ | "error" |
80 | no-async-promise-executor | β | βοΈ | "error" |
81 | no-await-in-loop | β | ||
82 | no-bitwise | β | ||
83 | no-buffer-constructor | β οΈ | β | |
84 | no-caller | βοΈ | "error" | |
85 | no-case-declarations | β | βοΈ | "error" |
86 | no-catch-shadow | β οΈ | β | |
87 | no-class-assign | β | βοΈ | "error" |
88 | no-compare-neg-zero | β | βοΈ | "error" |
89 | no-cond-assign | β | βοΈ | "error" |
90 | no-confusing-arrow | π§β οΈ | βοΈ | "error" |
91 | no-console | βοΈ | "off" | |
92 | no-const-assign | β | βοΈ | "error" |
93 | no-constant-binary-expression | β | βοΈ | "error" |
94 | no-constant-condition | β | βοΈ | "error" |
95 | no-constructor-return | βοΈ | "error" | |
96 | no-continue | β | ||
97 | no-control-regex | β | βοΈ | "error" |
98 | no-debugger | β | βοΈ | "warn" |
99 | no-delete-var | β | βοΈ | "error" |
100 | no-div-regex | π§ | βοΈ | "error" |
101 | no-dupe-args | β | βοΈ | "error" |
102 | no-dupe-class-members | β | βοΈ | "error" |
103 | no-dupe-else-if | β | βοΈ | "error" |
104 | no-dupe-keys | β | βοΈ | "error" |
105 | no-duplicate-case | β | βοΈ | "error" |
106 | no-duplicate-imports | βοΈ | "error" | |
107 | no-else-return | π§ | βοΈ | "error" |
108 | no-empty | β | βοΈ | "error" |
109 | no-empty-character-class | β | βοΈ | "error" |
110 | no-empty-function | β | ||
111 | no-empty-pattern | β | βοΈ | "error" |
112 | no-empty-static-block | β | βοΈ | "error" |
113 | no-eq-null | βοΈ | "error" | |
114 | no-eval | βοΈ | "error" | |
115 | no-ex-assign | β | βοΈ | "error" |
116 | no-extend-native | βοΈ | "error" | |
117 | no-extra-bind | π§ | βοΈ | "error" |
118 | no-extra-boolean-cast | β π§ | βοΈ | "error" |
119 | no-extra-label | π§ | βοΈ | "error" |
120 | no-extra-parens | π§β οΈ | β | |
121 | no-extra-semi | π§β οΈ | βοΈ | "error" |
122 | no-fallthrough | β | βοΈ | "error" |
123 | no-floating-decimal | π§β οΈ | βοΈ | "error" |
124 | no-func-assign | β | βοΈ | "error" |
125 | no-global-assign | β | βοΈ | "error" |
126 | no-implicit-coercion | π§ | βοΈ | "error" |
127 | no-implicit-globals | β | ||
128 | no-implied-eval | βοΈ | "error" | |
129 | no-import-assign | β | βοΈ | "error" |
130 | no-inline-comments | βοΈ | "error" | |
131 | no-inner-declarations | βοΈ | "error" | |
132 | no-invalid-regexp | β | βοΈ | "error" |
133 | no-invalid-this | β | ||
134 | no-irregular-whitespace | β | βοΈ | "error" |
135 | no-iterator | βοΈ | "error" | |
136 | no-label-var | βοΈ | "error" | |
137 | no-labels | βοΈ | "error" | |
138 | no-lone-blocks | βοΈ | "error" | |
139 | no-lonely-if | π§ | β | |
140 | no-loop-func | βοΈ | "error" | |
141 | no-loss-of-precision | β | βοΈ | "error" |
142 | no-magic-numbers | β | ||
143 | no-misleading-character-class | β | βοΈ | "error" |
144 | no-mixed-operators | β οΈ | βοΈ | ["error",{"groups":[["&&","||"]]}] |
145 | no-mixed-requires | β οΈ | β | |
146 | no-mixed-spaces-and-tabs | β οΈ | βοΈ | "error" |
147 | no-multi-assign | βοΈ | "error" | |
148 | no-multi-spaces | π§β οΈ | βοΈ | "error" |
149 | no-multi-str | βοΈ | "error" | |
150 | no-multiple-empty-lines | π§β οΈ | βοΈ | Details["error",{"max":2,"maxBOF":1,"maxEOF":1}] |
151 | no-native-reassign | β οΈ | β | |
152 | no-negated-condition | βοΈ | "error" | |
153 | no-negated-in-lhs | β οΈ | β | |
154 | no-nested-ternary | βοΈ | "warn" | |
155 | no-new | β | ||
156 | no-new-func | β | ||
157 | no-new-native-nonconstructor | β | βοΈ | "error" |
158 | no-new-object | β οΈ | βοΈ | "error" |
159 | no-new-require | β οΈ | β | |
160 | no-new-symbol | β οΈ | βοΈ | "error" |
161 | no-new-wrappers | βοΈ | "error" | |
162 | no-nonoctal-decimal-escape | β | βοΈ | "error" |
163 | no-obj-calls | β | βοΈ | "error" |
164 | no-object-constructor | β | ||
165 | no-octal | β | βοΈ | "error" |
166 | no-octal-escape | βοΈ | "error" | |
167 | no-param-reassign | βοΈ | "off" | |
168 | no-path-concat | β οΈ | β | |
169 | no-plusplus | β | ||
170 | no-process-env | β οΈ | β | |
171 | no-process-exit | β οΈ | β | |
172 | no-promise-executor-return | βοΈ | "error" | |
173 | no-proto | βοΈ | "error" | |
174 | no-prototype-builtins | β | βοΈ | "error" |
175 | no-redeclare | β | βοΈ | "error" |
176 | no-regex-spaces | β π§ | βοΈ | "error" |
177 | no-restricted-exports | β | ||
178 | no-restricted-globals | βοΈ | Details["error","event","fdescribe","self"] | |
179 | no-restricted-imports | β | ||
180 | no-restricted-modules | β οΈ | β | |
181 | no-restricted-properties | β | ||
182 | no-restricted-syntax | β | ||
183 | no-return-assign | βοΈ | "error" | |
184 | no-return-await | β οΈ | βοΈ | "error" |
185 | no-script-url | β | ||
186 | no-self-assign | β | βοΈ | "error" |
187 | no-self-compare | βοΈ | "error" | |
188 | no-sequences | βοΈ | "error" | |
189 | no-setter-return | β | βοΈ | "error" |
190 | no-shadow | βοΈ | "error" | |
191 | no-shadow-restricted-names | β | βοΈ | "error" |
192 | no-spaced-func | π§β οΈ | β | |
193 | no-sparse-arrays | β | βοΈ | "error" |
194 | no-sync | β οΈ | β | |
195 | no-tabs | β οΈ | βοΈ | "error" |
196 | no-template-curly-in-string | βοΈ | "error" | |
197 | no-ternary | β | ||
198 | no-this-before-super | β | βοΈ | "error" |
199 | no-throw-literal | βοΈ | "error" | |
200 | no-trailing-spaces | π§β οΈ | βοΈ | ["error"] |
201 | no-unassigned-vars | β | ||
202 | no-undef | β | βοΈ | "error" |
203 | no-undef-init | π§ | βοΈ | "error" |
204 | no-undefined | βοΈ | "error" | |
205 | no-underscore-dangle | β | ||
206 | no-unexpected-multiline | β | βοΈ | "error" |
207 | no-unmodified-loop-condition | βοΈ | "error" | |
208 | no-unneeded-ternary | π§ | βοΈ | "error" |
209 | no-unreachable | β | βοΈ | "error" |
210 | no-unreachable-loop | βοΈ | "error" | |
211 | no-unsafe-finally | β | βοΈ | "error" |
212 | no-unsafe-negation | β | βοΈ | "error" |
213 | no-unsafe-optional-chaining | β | βοΈ | "error" |
214 | no-unused-expressions | βοΈ | "error" | |
215 | no-unused-labels | β π§ | βοΈ | "error" |
216 | no-unused-private-class-members | β | βοΈ | "error" |
217 | no-unused-vars | β | βοΈ | Details["error",{"args":"none","vars":"local","caughtErrors":"none"}] |
218 | no-use-before-define | β | ||
219 | no-useless-assignment | β | ||
220 | no-useless-backreference | β | βοΈ | "error" |
221 | no-useless-call | β | ||
222 | no-useless-catch | β | βοΈ | "error" |
223 | no-useless-computed-key | π§ | βοΈ | "error" |
224 | no-useless-concat | βοΈ | "error" | |
225 | no-useless-constructor | βοΈ | "error" | |
226 | no-useless-escape | β | βοΈ | "error" |
227 | no-useless-rename | π§ | βοΈ | "error" |
228 | no-useless-return | π§ | βοΈ | "error" |
229 | no-var | π§ | βοΈ | ["warn"] |
230 | no-void | β | ||
231 | no-warning-comments | β | ||
232 | no-whitespace-before-property | π§β οΈ | βοΈ | "error" |
233 | no-with | β | βοΈ | "error" |
234 | nonblock-statement-body-position | π§β οΈ | β | |
235 | object-curly-newline | π§β οΈ | βοΈ | Details["error",{"ExportDeclaration":{"minProperties":3,"multiline":true},"ImportDeclaration":{"minProperties":3,"multiline":true},"ObjectExpression":{"consistent":true,"minProperties":1,"multiline":true},"ObjectPattern":{"minProperties":3,"multiline":true}}] |
236 | object-curly-spacing | π§β οΈ | βοΈ | ["error","always"] |
237 | object-property-newline | π§β οΈ | βοΈ | Details["error",{"allowAllPropertiesOnSameLine":true}] |
238 | object-shorthand | π§ | β | |
239 | one-var | π§ | βοΈ | ["error","never"] |
240 | one-var-declaration-per-line | π§β οΈ | βοΈ | ["error","always"] |
241 | operator-assignment | π§ | βοΈ | ["error","always"] |
242 | operator-linebreak | π§β οΈ | βοΈ | ["error","before"] |
243 | padded-blocks | π§β οΈ | β | |
244 | padding-line-between-statements | π§β οΈ | βοΈ | Details["error",{"blankLine":"always","next":"*","prev":"directive"},{"blankLine":"any","next":"directive","prev":"directive"},{"blankLine":"always","next":"function","prev":"*"},{"blankLine":"always","next":"block","prev":"*"}] |
245 | prefer-arrow-callback | π§ | β | |
246 | prefer-const | π§ | βοΈ | "error" |
247 | prefer-destructuring | π§ | β | |
248 | prefer-exponentiation-operator | π§ | β | |
249 | prefer-named-capture-group | β | ||
250 | prefer-numeric-literals | π§ | βοΈ | "error" |
251 | prefer-object-has-own | π§ | β | |
252 | prefer-object-spread | π§ | βοΈ | "error" |
253 | prefer-promise-reject-errors | β | ||
254 | prefer-reflect | β οΈ | β | |
255 | prefer-regex-literals | βοΈ | "error" | |
256 | prefer-rest-params | β | ||
257 | prefer-spread | β | ||
258 | prefer-template | π§ | βοΈ | "error" |
259 | quote-props | π§β οΈ | β | |
260 | quotes | π§β οΈ | βοΈ | Details["error","single",{"avoidEscape":true}] |
261 | radix | β | ||
262 | require-atomic-updates | βοΈ | "off" | |
263 | require-await | βοΈ | "error" | |
264 | require-unicode-regexp | β | ||
265 | require-yield | β | βοΈ | "error" |
266 | rest-spread-spacing | π§β οΈ | βοΈ | ["error","always"] |
267 | semi | π§β οΈ | βοΈ | ["error","always"] |
268 | semi-spacing | π§β οΈ | βοΈ | Details["error",{"after":true,"before":false}] |
269 | semi-style | π§β οΈ | βοΈ | ["error","last"] |
270 | sort-imports | π§ | β | |
271 | sort-keys | β | ||
272 | sort-vars | π§ | β | |
273 | space-before-blocks | π§β οΈ | βοΈ | ["error","always"] |
274 | space-before-function-paren | π§β οΈ | βοΈ | Details["error",{"anonymous":"never","asyncArrow":"always","named":"never"}] |
275 | space-in-parens | π§β οΈ | βοΈ | "error" |
276 | space-infix-ops | π§β οΈ | βοΈ | ["error",{"int32Hint":false}] |
277 | space-unary-ops | π§β οΈ | βοΈ | "error" |
278 | spaced-comment | π§β οΈ | βοΈ | "error" |
279 | strict | π§ | β | |
280 | switch-colon-spacing | π§β οΈ | βοΈ | "error" |
281 | symbol-description | βοΈ | "error" | |
282 | template-curly-spacing | π§β οΈ | βοΈ | "error" |
283 | template-tag-spacing | π§β οΈ | βοΈ | "error" |
284 | unicode-bom | π§ | βοΈ | "error" |
285 | use-isnan | β | βοΈ | "error" |
286 | valid-typeof | β | βοΈ | "error" |
287 | vars-on-top | β | ||
288 | wrap-iife | π§β οΈ | βοΈ | ["error","inside"] |
289 | wrap-regex | π§β οΈ | βοΈ | "error" |
290 | yield-star-spacing | π§β οΈ | βοΈ | "error" |
291 | yoda | π§ | βοΈ | "error" |
FAQs
eslint-config-plus
The npm package eslint-config-plus receives a total of 80 weekly downloads. As such, eslint-config-plus popularity was classified as not popular.
We found that eslint-config-plus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.