eslint-config-un
Advanced tools
Changelog
0.7.0
angular
via @angular-eslint/eslint-plugin
and @angular-eslint/eslint-plugin-template
, enabled automatically if @angular/core
package is installed and is within the supported version range (from 13 to 19).css
via @eslint/css
, enabled by default unless stylelint
package is installed.allowWithDecorator: true
for @typescript-eslint/no-extraneous-class
rule, mostly to avoid unfixable reports in Angular projects.ts
) is enabled, import/no-deprecated
is now disabled because the corresponding @typescript-eslint
rule works better (in particular, it accounts for function overloads).@typescript-eslint/eslint-plugin
peer dependency of eslint-plugin-jest
and eslint-plugin-unused-imports
to avoid loading a wrong version of it.sonarjs/no-clear-text-protocols
rule severity to warning
because it might produce many false positives.ts
config: added configTypeAware
sub-config to replace filesTypeAware
, ignoresTypeAware
and overridesTypeAware
options. Unless explicitly specified, it will use the same ignores
as the parent config.ts
config: added configNoTypeAssertion
sub-config to replace noTypeAssertion
option.@typescript-eslint/consistent-return
rule in ts
config and disabled the same base rule consistent-return
.autofixToRemoveUnusedImports
option from js
config in favor of a separate unusedImports
config.vue
config: added configA11y
sub-config to replace a11y
and overridesA11y
options.vue
config: added configPinia
sub-config to replace pinia
option.typescript
to configTypescript
in jsdoc
configjsonConfig
to configJson
in jsonc
configjsoncConfig
to configJsonc
in jsonc
configjson5Config
to configJson5
in jsonc
configjestExtended
to configJestExtended
in jest
configtypescript
to configTypescript
in jest
configtypescript-eslint
: 8.26.0 -> 8.26.1@angular-eslint/*
: 19.2.0 -> 19.2.1@vitest/eslint-plugin
: 1.1.36 -> 1.1.37eslint-plugin-de-morgan
: 1.2.0 -> 1.2.1eslint-plugin-jsdoc
: 50.6.3 -> 50.6.6eslint-plugin-perfectionist
: 4.9.0 -> 4.10.1eslint-import-resolver-typescript
: 3.7.0 -> 3.9.1eslint-plugin-import-x
: 4.6.1 -> 4.8.0Changelog
0.6.2
eslint-import-resolver-typescript
to v3.7.0 due to this issue.ignoreOverloadsWithDifferentJSDoc: true
for @typescript-eslint/unified-signatures
rule.@stylistic/eslint-plugin
: 3.8.3 -> 3.7.0typescript-eslint
: 8.25.0 -> 8.26.0@eslint/markdown
: 6.2.2 -> 6.3.0eslint-config-prettier
: 10.0.2 -> 10.1.1eslint-plugin-n:
17.16.1 -> 17.16.2eslint-plugin-package-json
: 0.26.1 -> 0.26.3eslint-plugin-vue
: 9.32.0 -> 10.0.0
no-import-compiler-macros
vue-eslint-parser
: 9.4.3 -> 10.1.1Changelog
0.6.1
project: '*/tsconfig*.json'
by default in eslint-import-resolver-typescript
resolver for import
config to avoid resolution issues in repositories with multiple tsconfigs (upstream issue). Added an option to override the resolver settings.overrides['eslint-processor-vue-blocks']['@vue/compiler-sfc']
to v3 in package.json
to potentially avoid "Preprocessing error: Cannot read properties of undefined (reading 'styles')" error during Vue files linting, caused by @vue/compiler-sfc
resolved to a different major version.@stylistic/eslint-plugin
: 4.1.0 -> 4.2.0eslint-plugin-package-json
: 0.26.0 -> 0.26.1eslint-plugin-n
: 17.15.1 -> 17.16.1Changelog
0.6.0
qwik
via eslint-plugin-qwik
, enabled automatically if @builder.io/qwik
or @qwik.dev/core
package is installed.jsonSchemaValidator
via eslint-plugin-json-schema-validator
, <u>disabled</u> by default.vitest/prefer-to-be-{falsy,truthy}
rules since their fixes don't result in the equivalent code and therefore cannot be suitable for most projects.enforceForIfStatements: false
for logical-assignment-operators
since code enforced by this option might be harder to read and understand.node
config option to specify eslint-plugin-n
plugin settings.jest
and vitest
configs, an option testDefinitionKeyword
now accepts a string that is used to set all the properties of the object.<style>
blocks are now created via eslint-processor-vue-blocks
. Added an option to disable or customize this behavior.<config>.overrides
type now includes disable-autofix/*
rules.typescript-eslint
: 8.24.1 -> 8.25.0@stylistic/eslint-plugin
: 4.0.1 -> 4.1.0@vitest/eslint-plugin
: 1.1.31 -> 1.1.36eslint-config-prettier
: 10.0.1 -> 10.0.2eslint-plugin-de-morgan
: 1.1.0 -> 1.2.0yaml-eslint-parser
: 1.2.3 -> 1.3.0Changelog
0.5.0
eslint-plugin-disable-autofix
in favor of manually adding the same functionality.no-unnecessary-type-assertion
due to this bug.deMorgan
via eslint-plugin-de-morgan
, <u>disabled</u> by default.eslint-plugin-unicorn
: 56.0.1 -> 57.0.0
eslint
>=9.20.0, but we haven't enforced this version range in peerDependencies
in case it works fine with the older versions.no-instanceof-builtins
consistent-assert
consistent-date-clone
no-accessor-recursion
no-instanceof-builtins
no-named-default
@vitest/eslint-plugin
: 1.1.28 -> 1.1.31eslint-import-resolver-typescript
: 3.7.0 -> 3.8.3eslint-plugin-perfectionist
: 4.8.0 -> 4.9.0eslint-plugin-sonarjs
: 3.0.1 -> 3.0.2eslint-plugin-yml
: 1.16.0 -> 1.17.0@stylistic/eslint-plugin
: 3.1.0 -> 4.0.1
typescript-eslint
: 8.24.0 -> 8.24.1eslint-config-flat-gitignore
: 2.0.0 -> 2.1.0Changelog
0.4.2
cli
to disable a few rules for files in bin
, scripts
and cli
directories, enabled by default.jest
/vitest
: by default include nested __test(s)__
directories and [-_].spec.*
files.sonar
: change prefer-single-boolean-return
default severity to warn
.typescript-eslint
: 8.20.0 -> 8.24.0
no-unnecessary-condition
: change allowConstantLoopConditions
from true
to only-allowed-literals
@eslint/markdown
: 6.2.1 -> 6.2.2@stylistic/eslint-plugin
: 2.13.0 -> 3.1.0@vitest/eslint-plugin
: 1.1.25 -> 1.1.28
require-mock-type-parameters
prefer-strict-boolean-matchers
eslint-config-flat-gitignore
: 1.0.0 -> 2.0.0eslint-merge-processors
: 1.0.0 -> 2.0.0eslint-plugin-jsdoc
: 50.6.2 -> 50.6.3eslint-plugin-jsonc
: 2.18.2 -> 2.19.1eslint-plugin-package-json
: 0.20.0 -> 0.26.0
no-empty-fields
require-version
require-name
require-author
require-keywords
require-files
eslint-plugin-perfectionist
: 4.6.0 -> 4.8.0Changelog
0.4.1
typescript
config, setting filesTypeAware: false
now fully disables the config for running type-aware rules. Same if an empty array is provided.enforceTypescriptInScriptSection
option.isInEditor
utility from is-in-editor
package that checks if the current process is running within a well known editor.@stylistic/eslint-plugin
: 2.12.1 -> 2.13.0typescript-eslint
: 8.19.1 -> 8.20.0
no-misused-spread
rule.eslint-config-prettier
: 9.1.0 -> 10.0.1
@stylistic/eslint-plugin
is supported, which disables some of @stylistic/*
rules.eslint-plugin-jest
: 28.10.0 -> 28.11.0eslint-plugin-jest-extended
: 2.4.0 -> 3.0.0eslint-plugin-jsdoc
: 50.6.1 -> 50.6.2eslint-plugin-package-json
: 0.19.0 -> 0.20.0
no-redundant-files
rule.eslint-plugin-prefer-arrow-functions
: 3.6.0 -> 3.6.2eslint-plugin-tailwindcss
: 3.17.5 -> 3.18.0Changelog
0.4.0
perfectionist
via eslint-plugin-perfectionist
, <u>disabled</u> by default.^
).eslint-plugin-sonarjs
: 1.0.4 -> 3.0.1
sonar
config: added a lot of new rules, some were disabled, some were enabled.eslint-plugin-prefer-arrow-functions
: 3.4.1 -> 3.6.0@vitest/eslint-plugin
: 1.1.24 -> 1.1.25Changelog
0.3.1
jsdoc
via eslint-plugin-jsdoc
, enabled by default.eslint-plugin-vue
's recommended rules to error
(which turned out to be warn
by default).import/no-default-export
rule for files starting with a dot and Storybook files (files inside .storybook
directory and story files).typescript-eslint
: 8.18.1 -> 8.19.1@vitest/eslint-plugin
: 1.1.20 -> 1.1.24eslint-plugin-package-json
: 0.18.0 -> 0.19.0Changelog
0.3.0
prefer-inline
option of import/no-duplicates
rule is now set to true
. Added an new option noDuplicatesOptions
in import
config to override this behavior.overridesPinia
option from vue
config in favor of adding the ability to pass more usual config options in pinia
option.jest
via eslint-plugin-jest
, enabled automatically if jest
package is installed.jest-extended
via eslint-plugin-jest-extended
, enabled automatically if both jest
and jest-extended
packages are installed.vitest
via @vitest/eslint-plugin
, enabled automatically if vitest
package is installed.eslint-plugin-import-x
: 4.4.2 -> 4.6.1 & eslint-import-resolver-typescript
: 3.6.3 -> 3.7.0
eslint-plugin-import-x
resolver interface.typescript-eslint
: 8.14.0 -> 8.18.1
related-getter-setter-pairs
rule.no-unsafe-type-assertion
rule was not enabled by default.eslint-plugin-jsonc
: 2.18.1 -> 2.18.2
eslint-plugin-unicorn
: 56.0.0 -> 56.0.1
@stylistic/eslint-plugin
: 2.10.1 -> 2.12.1eslint-plugin-jest
: 28.9.0 -> 28.10.0eslint-plugin-n
: 17.13.2 -> 17.15.1eslint-plugin-package-json
: 0.15.6 -> 0.18.0
overrides
collection is now sorted by default.eslint-plugin-promise
: 7.1.0 -> 7.2.1
allowThen: true
with the new allowThenStrict: true
in catch-or-return
rule.prefer-catch
rule.eslint-plugin-toml
: 0.11.1 -> 0.12.0eslint-plugin-vue
: 9.31.0 -> 9.32.0
slot-name-casing
rule, which enforces camelCase
for slot names.eslint-plugin-yml
: 1.15.0 -> 1.16.0