@blole/node-setup-lint
v2.0.0
Published
Some default configs for linting react, typescript, javascript, json, markdown, etc. Uses the [new eslint configuration file format](https://eslint.org/docs/latest/use/configure/configuration-files-new)
Downloads
4
Readme
@blole/node-setup-lint
Some default configs for linting react, typescript, javascript, json, markdown, etc. Uses the new eslint configuration file format
Installation
Add the
devDependency
and a script{ "scripts": { "lint": "eslint '**/*.{js,jsx,ts,tsx,json,md,html}' --max-warnings=0" }, "devDependencies": { "@blole/node-setup-lint": "x.x.x" } }
Create a
eslint.config.js
likeimport { eslintConfig } from '@blole/node-setup-lint'; export default [ eslintConfig.md, eslintConfig.json, eslintConfig.jsonc, eslintConfig.js, eslintConfig.ts, eslintConfig.tests, ...eslintConfig.editorconfig, eslintConfig.prettier, ];
Create a
prettier.config.js
likeimport { prettierConfig } from '@blole/node-setup-lint'; export default prettierConfig;
See apps/linted-example/ for an example.