eslint-config-molindo
Advanced tools
Changelog
8.0.0
eslint-import-resolver-typescript
is now used for TypeScript files to configure eslint-plugin-import
correctly. This now correctly takes into consideration paths
from tsconfig.json
when determining ordering of imports.eslint-plugin-unicorn
:
unicorn/prefer-array-index-of
unicorn/prefer-optional-catch-binding
unicorn/no-useless-spread
@typescript-eslint
:
@typescript-eslint/prefer-optional-chain
@typescript-eslint/no-unnecessary-condition
eslint-plugin-import
:
import/no-useless-path-segments
.mts
, .mtsx
, .cts
and .ctsx
files.eslint-plugin-unused-imports
to remove unused imports during autofix.sort-imports
.eslint.config.mjs
)prettier --check
to your CI pipeline.valid-jsdoc
rule has been removed since it was removed from ESLint core and is only available via an additional plugin. If you'd like to keep this rule, add eslint-plugin-jsdoc
to your project.src
directory is no longer resolved by default. For TypeScript projects, paths
from tsconfig.json
are now suggested as the alternative and will be resolved by default. For JavaScript projects, you can add settings: {'import/resolver': {node: {paths: ['node_modules', 'src']}}}
to your ESLint config.Changelog
7.0.0
react/function-component-definition
to have auto fix for using functions of React components (fixes #75)react/no-unstable-nested-components
(fixes #77){checksVoidReturn: {attributes: false}}
for @typescript-eslint/no-misused-promises
(fixes #86)@typescript-eslint/ban-ts-comment
(fixes #89)@typescript-eslint/eslint-plugin
)molindo/tailwind
**/*.{e2e,cy}.{js,jsx,ts,tsx}
as test files (fixes #67)import/no-extraneous-dependencies
rule configuration to allow dev dependencies in all files since it has too many false positives otherwise (fixes #71)cy
and Cypress
globals when cypress
config is used (fixes #79)no-use-before-define
for TypeScript files (fixes #91)eslint@^8.45
eslint-config-molindo/setupPlugins
has been removed, since it's no longer necessary (fixes #59)typescript
from dependencies (consumers should install this)molindo/css-modules