Socket
Book a DemoInstallSign in
Socket

eslint-config-plus

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-plus

eslint-config-plus

latest
Source
npmnpm
Version
2.0.3
Version published
Weekly downloads
108
-6.09%
Maintainers
1
Weekly downloads
Β 
Created
Source

eslint-config-plus

Eslint config plus = Eslint official recommended rules + most fixable and normal rules.
https://eslint.org/docs/rules/

Installation

npm install eslint-config-plus -D

Usage

// eslint.config.js
const plus = require('eslint-config-plus');
module.exports = [
    {
        rules: {
            ... plus.rules
        }
    }
];

Rules

Base on eslint@9.33.0 (2025/8/9)

RulesCount
All Eslint rules291
βœ”οΈDefined in plus20470.1%
❌Undefined8729.9%
βœ…Recommended6121.0%
πŸ”§Fixable10636.4%
⚠️Deprecated9332.0%

Details

RulesTypeEnabledValue
1accessor-pairs❌
2array-bracket-newlineπŸ”§βš οΈβœ”οΈ["error","consistent"]
3array-bracket-spacingπŸ”§βš οΈβœ”οΈ["error","never"]
4array-callback-return❌
5array-element-newlineπŸ”§βš οΈβœ”οΈ["error","consistent"]
6arrow-body-styleπŸ”§βŒ
7arrow-parensπŸ”§βš οΈβœ”οΈ["error","always"]
8arrow-spacingπŸ”§βš οΈβœ”οΈ"error"
9block-scoped-var❌
10block-spacingπŸ”§βš οΈβœ”οΈ"error"
11brace-styleπŸ”§βš οΈβœ”οΈ"error"
12callback-return⚠️❌
13camelcase❌
14capitalized-commentsπŸ”§βŒ
15class-methods-use-this❌
16comma-dangleπŸ”§βš οΈβœ”οΈ["error","never"]
17comma-spacingπŸ”§βš οΈβœ”οΈ
Details["error",{"after":true,"before":false}]
18comma-styleπŸ”§βš οΈβœ”οΈ["error","last"]
19complexityβœ”οΈ["error",8]
20computed-property-spacingπŸ”§βš οΈβœ”οΈ["error","never"]
21consistent-return❌
22consistent-this❌
23constructor-superβœ…βœ”οΈ"error"
24curlyπŸ”§βœ”οΈ"error"
25default-caseβœ”οΈ"error"
26default-case-lastβœ”οΈ"error"
27default-param-lastβœ”οΈ"error"
28dot-locationπŸ”§βš οΈβœ”οΈ["error","property"]
29dot-notationπŸ”§βœ”οΈ"error"
30eol-lastπŸ”§βš οΈβœ”οΈ["error","always"]
31eqeqeqπŸ”§βœ”οΈ["error","always"]
32for-directionβœ…βœ”οΈ"error"
33func-call-spacingπŸ”§βš οΈβœ”οΈ["error","never"]
34func-name-matchingβœ”οΈ"error"
35func-names❌
36func-style❌
37function-call-argument-newlineπŸ”§βš οΈβœ”οΈ["error","consistent"]
38function-paren-newlineπŸ”§βš οΈβœ”οΈ["error","consistent"]
39generator-star-spacingπŸ”§βš οΈβœ”οΈ
Details["error",{"after":false,"before":true}]
40getter-returnβœ…βœ”οΈ"error"
41global-require⚠️❌
42grouped-accessor-pairs❌
43guard-for-in❌
44handle-callback-err⚠️❌
45id-blacklist⚠️❌
46id-denylist❌
47id-length❌
48id-match❌
49implicit-arrow-linebreakπŸ”§βš οΈβœ”οΈ["error","beside"]
50indentπŸ”§βš οΈβœ”οΈ
Details["error",4,{"ArrayExpression":"first","ObjectExpression":1,"SwitchCase":1}]
51indent-legacyπŸ”§βš οΈβŒ
52init-declarations❌
53jsx-quotesπŸ”§βš οΈβœ”οΈ["error","prefer-double"]
54key-spacingπŸ”§βš οΈβœ”οΈ
Details["error",{"afterColon":true,"mode":"strict"}]
55keyword-spacingπŸ”§βš οΈβœ”οΈ
Details["error",{"after":true,"before":true}]
56line-comment-positionβš οΈβœ”οΈ["error",{"position":"above"}]
57linebreak-styleπŸ”§βš οΈβŒ
58lines-around-commentπŸ”§βš οΈβœ”οΈ
Details["error",{"beforeBlockComment":true}]
59lines-around-directiveπŸ”§βš οΈβŒ
60lines-between-class-membersπŸ”§βš οΈβœ”οΈ
Details["error","always",{"exceptAfterSingleLine":true}]
61logical-assignment-operatorsπŸ”§βŒ
62max-classes-per-fileβœ”οΈ"error"
63max-depthβœ”οΈ["error",5]
64max-lenβš οΈβœ”οΈ
Details["error",{"code":550,"ignoreStrings":true,"ignoreTrailingComments":true}]
65max-linesβœ”οΈ["error",3000]
66max-lines-per-functionβœ”οΈ["error",300]
67max-nested-callbacksβœ”οΈ["error",5]
68max-paramsβœ”οΈ["error",8]
69max-statementsβœ”οΈ["error",50]
70max-statements-per-lineβš οΈβœ”οΈ["error",{"max":3}]
71multiline-comment-styleπŸ”§βš οΈβŒ
72multiline-ternaryπŸ”§βš οΈβœ”οΈ["error","never"]
73new-capβœ”οΈ
Details["error",{"capIsNew":false,"newIsCap":true,"properties":true}]
74new-parensπŸ”§βš οΈβœ”οΈ"error"
75newline-after-varπŸ”§βš οΈβŒ
76newline-before-returnπŸ”§βš οΈβŒ
77newline-per-chained-callπŸ”§βš οΈβŒ
78no-alertβœ”οΈ"error"
79no-array-constructorπŸ”§βœ”οΈ"error"
80no-async-promise-executorβœ…βœ”οΈ"error"
81no-await-in-loop❌
82no-bitwise❌
83no-buffer-constructor⚠️❌
84no-callerβœ”οΈ"error"
85no-case-declarationsβœ…βœ”οΈ"error"
86no-catch-shadow⚠️❌
87no-class-assignβœ…βœ”οΈ"error"
88no-compare-neg-zeroβœ…βœ”οΈ"error"
89no-cond-assignβœ…βœ”οΈ"error"
90no-confusing-arrowπŸ”§βš οΈβœ”οΈ"error"
91no-consoleβœ”οΈ"off"
92no-const-assignβœ…βœ”οΈ"error"
93no-constant-binary-expressionβœ…βœ”οΈ"error"
94no-constant-conditionβœ…βœ”οΈ"error"
95no-constructor-returnβœ”οΈ"error"
96no-continue❌
97no-control-regexβœ…βœ”οΈ"error"
98no-debuggerβœ…βœ”οΈ"warn"
99no-delete-varβœ…βœ”οΈ"error"
100no-div-regexπŸ”§βœ”οΈ"error"
101no-dupe-argsβœ…βœ”οΈ"error"
102no-dupe-class-membersβœ…βœ”οΈ"error"
103no-dupe-else-ifβœ…βœ”οΈ"error"
104no-dupe-keysβœ…βœ”οΈ"error"
105no-duplicate-caseβœ…βœ”οΈ"error"
106no-duplicate-importsβœ”οΈ"error"
107no-else-returnπŸ”§βœ”οΈ"error"
108no-emptyβœ…βœ”οΈ"error"
109no-empty-character-classβœ…βœ”οΈ"error"
110no-empty-function❌
111no-empty-patternβœ…βœ”οΈ"error"
112no-empty-static-blockβœ…βœ”οΈ"error"
113no-eq-nullβœ”οΈ"error"
114no-evalβœ”οΈ"error"
115no-ex-assignβœ…βœ”οΈ"error"
116no-extend-nativeβœ”οΈ"error"
117no-extra-bindπŸ”§βœ”οΈ"error"
118no-extra-boolean-castβœ…πŸ”§βœ”οΈ"error"
119no-extra-labelπŸ”§βœ”οΈ"error"
120no-extra-parensπŸ”§βš οΈβŒ
121no-extra-semiπŸ”§βš οΈβœ”οΈ"error"
122no-fallthroughβœ…βœ”οΈ"error"
123no-floating-decimalπŸ”§βš οΈβœ”οΈ"error"
124no-func-assignβœ…βœ”οΈ"error"
125no-global-assignβœ…βœ”οΈ"error"
126no-implicit-coercionπŸ”§βœ”οΈ"error"
127no-implicit-globals❌
128no-implied-evalβœ”οΈ"error"
129no-import-assignβœ…βœ”οΈ"error"
130no-inline-commentsβœ”οΈ"error"
131no-inner-declarationsβœ”οΈ"error"
132no-invalid-regexpβœ…βœ”οΈ"error"
133no-invalid-this❌
134no-irregular-whitespaceβœ…βœ”οΈ"error"
135no-iteratorβœ”οΈ"error"
136no-label-varβœ”οΈ"error"
137no-labelsβœ”οΈ"error"
138no-lone-blocksβœ”οΈ"error"
139no-lonely-ifπŸ”§βŒ
140no-loop-funcβœ”οΈ"error"
141no-loss-of-precisionβœ…βœ”οΈ"error"
142no-magic-numbers❌
143no-misleading-character-classβœ…βœ”οΈ"error"
144no-mixed-operatorsβš οΈβœ”οΈ["error",{"groups":[["&&","||"]]}]
145no-mixed-requires⚠️❌
146no-mixed-spaces-and-tabsβš οΈβœ”οΈ"error"
147no-multi-assignβœ”οΈ"error"
148no-multi-spacesπŸ”§βš οΈβœ”οΈ"error"
149no-multi-strβœ”οΈ"error"
150no-multiple-empty-linesπŸ”§βš οΈβœ”οΈ
Details["error",{"max":2,"maxBOF":1,"maxEOF":1}]
151no-native-reassign⚠️❌
152no-negated-conditionβœ”οΈ"error"
153no-negated-in-lhs⚠️❌
154no-nested-ternaryβœ”οΈ"warn"
155no-new❌
156no-new-func❌
157no-new-native-nonconstructorβœ…βœ”οΈ"error"
158no-new-objectβš οΈβœ”οΈ"error"
159no-new-require⚠️❌
160no-new-symbolβš οΈβœ”οΈ"error"
161no-new-wrappersβœ”οΈ"error"
162no-nonoctal-decimal-escapeβœ…βœ”οΈ"error"
163no-obj-callsβœ…βœ”οΈ"error"
164no-object-constructor❌
165no-octalβœ…βœ”οΈ"error"
166no-octal-escapeβœ”οΈ"error"
167no-param-reassignβœ”οΈ"off"
168no-path-concat⚠️❌
169no-plusplus❌
170no-process-env⚠️❌
171no-process-exit⚠️❌
172no-promise-executor-returnβœ”οΈ"error"
173no-protoβœ”οΈ"error"
174no-prototype-builtinsβœ…βœ”οΈ"error"
175no-redeclareβœ…βœ”οΈ"error"
176no-regex-spacesβœ…πŸ”§βœ”οΈ"error"
177no-restricted-exports❌
178no-restricted-globalsβœ”οΈ
Details["error","event","fdescribe","self"]
179no-restricted-imports❌
180no-restricted-modules⚠️❌
181no-restricted-properties❌
182no-restricted-syntax❌
183no-return-assignβœ”οΈ"error"
184no-return-awaitβš οΈβœ”οΈ"error"
185no-script-url❌
186no-self-assignβœ…βœ”οΈ"error"
187no-self-compareβœ”οΈ"error"
188no-sequencesβœ”οΈ"error"
189no-setter-returnβœ…βœ”οΈ"error"
190no-shadowβœ”οΈ"error"
191no-shadow-restricted-namesβœ…βœ”οΈ"error"
192no-spaced-funcπŸ”§βš οΈβŒ
193no-sparse-arraysβœ…βœ”οΈ"error"
194no-sync⚠️❌
195no-tabsβš οΈβœ”οΈ"error"
196no-template-curly-in-stringβœ”οΈ"error"
197no-ternary❌
198no-this-before-superβœ…βœ”οΈ"error"
199no-throw-literalβœ”οΈ"error"
200no-trailing-spacesπŸ”§βš οΈβœ”οΈ["error"]
201no-unassigned-vars❌
202no-undefβœ…βœ”οΈ"error"
203no-undef-initπŸ”§βœ”οΈ"error"
204no-undefinedβœ”οΈ"error"
205no-underscore-dangle❌
206no-unexpected-multilineβœ…βœ”οΈ"error"
207no-unmodified-loop-conditionβœ”οΈ"error"
208no-unneeded-ternaryπŸ”§βœ”οΈ"error"
209no-unreachableβœ…βœ”οΈ"error"
210no-unreachable-loopβœ”οΈ"error"
211no-unsafe-finallyβœ…βœ”οΈ"error"
212no-unsafe-negationβœ…βœ”οΈ"error"
213no-unsafe-optional-chainingβœ…βœ”οΈ"error"
214no-unused-expressionsβœ”οΈ"error"
215no-unused-labelsβœ…πŸ”§βœ”οΈ"error"
216no-unused-private-class-membersβœ…βœ”οΈ"error"
217no-unused-varsβœ…βœ”οΈ
Details["error",{"args":"none","vars":"local","caughtErrors":"none"}]
218no-use-before-define❌
219no-useless-assignment❌
220no-useless-backreferenceβœ…βœ”οΈ"error"
221no-useless-call❌
222no-useless-catchβœ…βœ”οΈ"error"
223no-useless-computed-keyπŸ”§βœ”οΈ"error"
224no-useless-concatβœ”οΈ"error"
225no-useless-constructorβœ”οΈ"error"
226no-useless-escapeβœ…βœ”οΈ"error"
227no-useless-renameπŸ”§βœ”οΈ"error"
228no-useless-returnπŸ”§βœ”οΈ"error"
229no-varπŸ”§βœ”οΈ["warn"]
230no-void❌
231no-warning-comments❌
232no-whitespace-before-propertyπŸ”§βš οΈβœ”οΈ"error"
233no-withβœ…βœ”οΈ"error"
234nonblock-statement-body-positionπŸ”§βš οΈβŒ
235object-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}}]
236object-curly-spacingπŸ”§βš οΈβœ”οΈ["error","always"]
237object-property-newlineπŸ”§βš οΈβœ”οΈ
Details["error",{"allowAllPropertiesOnSameLine":true}]
238object-shorthandπŸ”§βŒ
239one-varπŸ”§βœ”οΈ["error","never"]
240one-var-declaration-per-lineπŸ”§βš οΈβœ”οΈ["error","always"]
241operator-assignmentπŸ”§βœ”οΈ["error","always"]
242operator-linebreakπŸ”§βš οΈβœ”οΈ["error","before"]
243padded-blocksπŸ”§βš οΈβŒ
244padding-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":"*"}]
245prefer-arrow-callbackπŸ”§βŒ
246prefer-constπŸ”§βœ”οΈ"error"
247prefer-destructuringπŸ”§βŒ
248prefer-exponentiation-operatorπŸ”§βŒ
249prefer-named-capture-group❌
250prefer-numeric-literalsπŸ”§βœ”οΈ"error"
251prefer-object-has-ownπŸ”§βŒ
252prefer-object-spreadπŸ”§βœ”οΈ"error"
253prefer-promise-reject-errors❌
254prefer-reflect⚠️❌
255prefer-regex-literalsβœ”οΈ"error"
256prefer-rest-params❌
257prefer-spread❌
258prefer-templateπŸ”§βœ”οΈ"error"
259quote-propsπŸ”§βš οΈβŒ
260quotesπŸ”§βš οΈβœ”οΈ
Details["error","single",{"avoidEscape":true}]
261radix❌
262require-atomic-updatesβœ”οΈ"off"
263require-awaitβœ”οΈ"error"
264require-unicode-regexp❌
265require-yieldβœ…βœ”οΈ"error"
266rest-spread-spacingπŸ”§βš οΈβœ”οΈ["error","always"]
267semiπŸ”§βš οΈβœ”οΈ["error","always"]
268semi-spacingπŸ”§βš οΈβœ”οΈ
Details["error",{"after":true,"before":false}]
269semi-styleπŸ”§βš οΈβœ”οΈ["error","last"]
270sort-importsπŸ”§βŒ
271sort-keys❌
272sort-varsπŸ”§βŒ
273space-before-blocksπŸ”§βš οΈβœ”οΈ["error","always"]
274space-before-function-parenπŸ”§βš οΈβœ”οΈ
Details["error",{"anonymous":"never","asyncArrow":"always","named":"never"}]
275space-in-parensπŸ”§βš οΈβœ”οΈ"error"
276space-infix-opsπŸ”§βš οΈβœ”οΈ["error",{"int32Hint":false}]
277space-unary-opsπŸ”§βš οΈβœ”οΈ"error"
278spaced-commentπŸ”§βš οΈβœ”οΈ"error"
279strictπŸ”§βŒ
280switch-colon-spacingπŸ”§βš οΈβœ”οΈ"error"
281symbol-descriptionβœ”οΈ"error"
282template-curly-spacingπŸ”§βš οΈβœ”οΈ"error"
283template-tag-spacingπŸ”§βš οΈβœ”οΈ"error"
284unicode-bomπŸ”§βœ”οΈ"error"
285use-isnanβœ…βœ”οΈ"error"
286valid-typeofβœ…βœ”οΈ"error"
287vars-on-top❌
288wrap-iifeπŸ”§βš οΈβœ”οΈ["error","inside"]
289wrap-regexπŸ”§βš οΈβœ”οΈ"error"
290yield-star-spacingπŸ”§βš οΈβœ”οΈ"error"
291yodaπŸ”§βœ”οΈ"error"

Changelog

CHANGELOG.md

FAQs

Package last updated on 09 Aug 2025

Did you know?

Socket

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.

Install

Related posts