@betgames/eslint-config-client
v1.0.3
Published
BetGames ESLint config for frontend projects
Downloads
317
Readme
fe-config
Frontend configs for eslint
This package provides extensible shared configs for eslint and prettier for frontend projects.
Installation
- Install config package
pnpm add --dev @betgames/eslint-config-client
pnpm add --dev @typescript-eslint/parser eslint eslint-plugin-import eslint-plugin-jest eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks prettier typescript
- Install correct versions of each package from
@betgames/eslint-config-client
dependencies:
Usage
// .eslintrc.json
"extends": ["@betgames/eslint-config-client"],
"globals": {
// Additional global variables...
},
"rules": {
// Additional, per-project rules...
},
// .eslintrc.json
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": ["@betgames/eslint-config-client"],
},
]