@shelf/eslint-config
v6.3.0
Published
ESLint Config for Shelf Projects
Downloads
55,780
Maintainers
Readme
@shelf/eslint-config
Style Guide
Read our style guide
Install
$ pnpm add --save-dev --save-exact @shelf/eslint-configUsage
Backend
import tsConfig from '@shelf/eslint-config/typescript.js';
export default [...tsConfig];Frontend
import feTsConfig from '@shelf/eslint-config/frontend-typescript.js';
export default [
...feTsConfig,
{
settings: {
react: {
version: 'detect',
},
},
},
];Oxfmt Migrations
Repos that move formatting out of ESLint and into Oxfmt should use the additive no-Prettier entrypoints:
Backend, no Prettier plugin
import tsConfig from '@shelf/eslint-config/typescript-no-prettier.js';
export default [...tsConfig];Frontend, no Prettier plugin
import feTsConfig from '@shelf/eslint-config/frontend-typescript-no-prettier.js';
export default [
...feTsConfig,
{
settings: {
react: {
version: 'detect',
},
},
},
];The legacy typescript.js and frontend-typescript.js entrypoints stay supported for repos that still format through Prettier.
Publish
$ pnpx npLicense
MIT © Shelf
