Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-plus

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-plus

eslint-config-plus

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
85
increased by39.34%
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.4.0 (2024/6/10)

RulesCount
All Eslint rules290
✔️Defined in plus20470.3%
Undefined8629.7%
Recommended6121.0%
🔧Fixable10536.2%
⚠️Deprecated9332.1%

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-undef✔️"error"
202no-undef-init🔧✔️"error"
203no-undefined✔️"error"
204no-underscore-dangle
205no-unexpected-multiline✔️"error"
206no-unmodified-loop-condition✔️"error"
207no-unneeded-ternary🔧✔️"error"
208no-unreachable✔️"error"
209no-unreachable-loop✔️"error"
210no-unsafe-finally✔️"error"
211no-unsafe-negation✔️"error"
212no-unsafe-optional-chaining✔️"error"
213no-unused-expressions✔️"error"
214no-unused-labels✅🔧✔️"error"
215no-unused-private-class-members✔️"error"
216no-unused-vars✔️
Details["error",{"args":"none","vars":"local","caughtErrors":"none"}]
217no-use-before-define
218no-useless-assignment
219no-useless-backreference✔️"error"
220no-useless-call
221no-useless-catch✔️"error"
222no-useless-computed-key🔧✔️"error"
223no-useless-concat✔️"error"
224no-useless-constructor✔️"error"
225no-useless-escape✔️"error"
226no-useless-rename🔧✔️"error"
227no-useless-return🔧✔️"error"
228no-var🔧✔️["warn"]
229no-void
230no-warning-comments
231no-whitespace-before-property🔧⚠️✔️"error"
232no-with✔️"error"
233nonblock-statement-body-position🔧⚠️
234object-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}}]
235object-curly-spacing🔧⚠️✔️["error","always"]
236object-property-newline🔧⚠️✔️
Details["error",{"allowAllPropertiesOnSameLine":true}]
237object-shorthand🔧
238one-var🔧✔️["error","never"]
239one-var-declaration-per-line🔧⚠️✔️["error","always"]
240operator-assignment🔧✔️["error","always"]
241operator-linebreak🔧⚠️✔️["error","before"]
242padded-blocks🔧⚠️
243padding-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":"*"}]
244prefer-arrow-callback🔧
245prefer-const🔧✔️"error"
246prefer-destructuring🔧
247prefer-exponentiation-operator🔧
248prefer-named-capture-group
249prefer-numeric-literals🔧✔️"error"
250prefer-object-has-own🔧
251prefer-object-spread🔧✔️"error"
252prefer-promise-reject-errors
253prefer-reflect⚠️
254prefer-regex-literals✔️"error"
255prefer-rest-params
256prefer-spread
257prefer-template🔧✔️"error"
258quote-props🔧⚠️
259quotes🔧⚠️✔️
Details["error","single",{"avoidEscape":true}]
260radix
261require-atomic-updates✔️"off"
262require-await✔️"error"
263require-unicode-regexp
264require-yield✔️"error"
265rest-spread-spacing🔧⚠️✔️["error","always"]
266semi🔧⚠️✔️["error","always"]
267semi-spacing🔧⚠️✔️
Details["error",{"after":true,"before":false}]
268semi-style🔧⚠️✔️["error","last"]
269sort-imports🔧
270sort-keys
271sort-vars🔧
272space-before-blocks🔧⚠️✔️["error","always"]
273space-before-function-paren🔧⚠️✔️
Details["error",{"anonymous":"never","asyncArrow":"always","named":"never"}]
274space-in-parens🔧⚠️✔️"error"
275space-infix-ops🔧⚠️✔️["error",{"int32Hint":false}]
276space-unary-ops🔧⚠️✔️"error"
277spaced-comment🔧⚠️✔️"error"
278strict🔧
279switch-colon-spacing🔧⚠️✔️"error"
280symbol-description✔️"error"
281template-curly-spacing🔧⚠️✔️"error"
282template-tag-spacing🔧⚠️✔️"error"
283unicode-bom🔧✔️"error"
284use-isnan✔️"error"
285valid-typeof✔️"error"
286vars-on-top
287wrap-iife🔧⚠️✔️["error","inside"]
288wrap-regex🔧⚠️✔️"error"
289yield-star-spacing🔧⚠️✔️"error"
290yoda🔧✔️"error"

Changelog

CHANGELOG.md

FAQs

Package last updated on 10 Jun 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc