@wearzdk/eslint-config-prettier
v2.0.1
Published
ESLint config for React projects with Prettier
Downloads
411
Readme
@wearzdk/eslint-config-prettier
Flat ESLint config for JavaScript, TypeScript, React, Prettier.
Features
- Format with Prettier.
- Designed to work with TypeScript, React out-of-box.
- Support JSON(5), YAML, Markdown...
- Sort imports,
package.json
,tsconfig.json
... - ESLint Flat config, compose easily!
- Reasonable defaults, best practices, only one-line of config
Install
npm i -D @wearzdk/eslint-config-prettier
Require Node.js >= 16.14.
Usage
// eslint.config.js
import { all } from "@wearzdk/eslint-config-prettier";
export default all;
Custom Config
import { wearzdk } from "@wearzdk/eslint-config-prettier";
export default wearzdk(
[
/* your custom config */
],
{ react: true, prettier: true, markdown: true, unocss: false },
);
VSCode
{
"eslint.experimental.useFlatConfig": true
}
Comparing to @sxzz/eslint-config
Add React support Remove Vue support