@digabi/eslint-config
v4.0.1
Published
Shared ESLint config for the digabi project. Requires ESLint 9+ and uses the flat config format.
Downloads
11,159
Maintainers
Keywords
Readme
eslint-config
Shared ESLint config for the digabi project. Requires ESLint 9+ and uses the flat config format.
How to add to a new project?
Add the required dependencies:
$ npm install --save-dev @digabi/eslint-config eslint eslint-plugin-import-x eslint-plugin-prettier eslint-plugin-promise globals typescript-eslintIf you're using React, add
$ npm install --save-dev eslint-plugin-react eslint-plugin-react-hooksIf you're using Mocha, add
$ npm install --save-dev eslint-plugin-mocha mochaIf you're using Jest, add
$ npm install --save-dev eslint-plugin-jest jestCreate an eslint.config.mjs in the project root:
import digabiConfig from '@digabi/eslint-config'
export default [
...digabiConfig(),
]The config auto-detects installed optional plugins (React, Mocha, Jest) and enables their rules automatically.
