A `eslint` config for best practice
npm install @nice-move/eslint-config-baseA [eslint] config for best practice.
[![npm][npm-badge]][npm-url]
[![github][github-badge]][github-url]
![node][node-badge]
[eslint]: https://eslint.org/
[npm-url]: https://www.npmjs.com/package/@nice-move/eslint-config-base
[npm-badge]: https://img.shields.io/npm/v/@nice-move/eslint-config-base.svg?style=flat-square&logo=npm
[github-url]: https://github.com/nice-move/nice-move/tree/master/packages/eslint-config-base
[github-badge]: https://img.shields.io/npm/l/@nice-move/eslint-config-base.svg?style=flat-square&colorB=blue&logo=github
[node-badge]: https://img.shields.io/node/v/@nice-move/eslint-config-base.svg?style=flat-square&colorB=green&logo=node.js
``bash`
npm install eslint @nice-move/eslint-config-base --save-dev
Add to eslint.config.mjs
`js`
// example: eslint.config.mjs
export { default } from '@nice-move/eslint-config-base';
Then run
`bash`
eslint --fix .
| Environment | pattern |
| :---------- | :------------------------------------- |
| browser | .js, .html |.mjs
| node.js | , .mts, .cjs, .cts |.mjs
| es modules | , .mts, .js, .html |.cjs`, source code in webpack project |
| commonjs |
Rules can handle by prettier and garou is disabled by default.
- @nice-move/eslint-config-react
- @nice-move/eslint-config-vue