eslint-config-rascal-react
v0.1.0
Published
Rascal's React eslint config presets with prettier
Downloads
1
Readme
eslint-config-Rascal-react
Rascal's React eslint config presets
this config extends ts config
Usage
Install
pnpm add -D eslint eslint-config-rascal-react
Config eslint (.eslintrc | .eslintrc.js | .eslintrc.json)
{
"extends": "rascal-react"
}
You don't need .eslintignore normally as it has been provided by the preset.
add import alias
{
"settings": {
"import/resolver": {
"alias": {
"map": [
["~", "."],
["@", "./src"]
],
"extensions": [".js", ".jsx", ".mjs", ".ts", ".tsx", "mts", ".d.ts"]
}
}
}
}
Add scripts for package.json
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}