@veracity/eslint-config v2.0.0
@veracity/eslint-config
Veracity's ESLint presets.
!IMPORTANT
This package has a dependency toprettierbecause of thelegacypreset. 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:recommendedplugin:@typescript-eslint/recommendedplugin:react/recommendedplugin:react/jsx-runtimeplugin: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.
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago