@xwartz/eslint-config
v1.0.0
Published
This is personal eslint configuration.
Downloads
7
Readme
ESLint Config
This is personal eslint configuration.
Usage
JavaScript
- Install
pnpm i -D @xwartz/eslint-config
- Add config to
.eslintrc
:
{
"extends": "@xwartz/eslint-config"
}
TypeScript
- Install
pnpm i -D @xwartz/eslint-config-ts
- Add config to
.eslintrc
:
{
"extends": ["@xwartz/eslint-config-ts"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
React
- Install
pnpm i -D @xwartz/eslint-config-react @xwartz/eslint-config-ts
- Add config to
.eslintrc
:
{
"extends": ["@xwartz/eslint-config-ts", "@xwartz/eslint-config-react"],
"parserOptions": {
"project": "./tsconfig.json"
}
}
Prettier
- Install
pnpm i -D @xwartz/prettier
- Add config to
package.json
{
"prettier": "@xwartz/prettier"
}