@mephisto5558/eslint-config
v4.1.0
Published
ESLint config file
Readme
ESLint-Config
This is a full opinionated eslint config using multiple plugins.
Rule Severity
The rules are divided into three severity levels: error, warn, and off.
error: Rules that indicate potential runtime errors, syntax errors, or unsafe behavior. These should always be fixed. Examples:
@typescript-eslint/no-array-delete: Disallows usingdeleteon array elements, which creates sparse arrays and is often not the intended behavior.regexp/no-invalid-regexp: Reports invalid regular expressions inRegExpconstructors.eslint/no-const-assign: Disallows reassigning constants.
warn: Rules that point to style issues, best practices, or potential typos, but do not cause runtime errors. These should generally be fixed to improve code quality. Examples:
@stylistic/quotes: Enforces the use of single (') quotes.unicorn/no-for-loop: Suggests usingfor...ofinstead of C-styleforloops.jsdoc/check-syntax: Ensures that the JSDoc syntax is valid.
off: Rules that are disabled. The reasons for this are:
- Covered by other rules: The functionality is already handled by another, often more specific, rule.
Example:
eslint/no-dupe-class-membersis disabled because@typescript-eslint/no-dupe-class-membershandles this better for TypeScript code.
- Not (sufficiently) configurable: The rule does not fit the desired coding style and cannot be adjusted accordingly.
Example:
@stylistic/object-property-newlineis too restrictive in formatting objects.
- Personal preference: The rule deliberately contradicts the coding style of my projects.
Example:
unicorn/no-array-reduceis disabled because I preferArray.prototype.reduce.
- Covered by other rules: The functionality is already handled by another, often more specific, rule.
Example:

