@veracity/eslint-config
v2.0.0
Published
Veracity's ESLint presets.
Downloads
252
Maintainers
Keywords
Readme
@veracity/eslint-config
Veracity's ESLint presets.
[!IMPORTANT]
This package has a dependency toprettier
because of thelegacy
preset. It has not been tested with Prettier 3 yet.
Usage
Add eslint
and @veracity/eslint-config
as dependencies to your project and create a .eslintrc.cjs
file at the root (don't forget to replace {preset}
!):
/* eslint-env node */
// This is a workaround for https://github.com/eslint/eslint/issues/3458
require('@veracity/eslint-config/patch')
module.exports = {
extends: ['@veracity/eslint-config/{preset}']
}
Presets
/recommended
[BETA]
Recommended preset, itself built on relevant recommended presets:
eslint:recommended
plugin:@typescript-eslint/recommended
plugin:react/recommended
plugin:react/jsx-runtime
plugin:react-hooks/recommended
Version 1.0.0 is not finalized yet, feedback is welcomed! Note that eslint-plugin-react-refresh
will probably be added too.
/legacy
This was the original (and still is) the ESLint configuration for VUI (packages/vui
). It has a lot of enabled rules related to stylistic "issues" like imports ordering and thus require to be used with the eslint-plugin-prettier
The trend is to STOP using linters for stylistic "issues" thus this preset is deprecated. It will be kept for its internal usage in VUI though, at least for now.