eslint-config-cam-recommended
Recommended ESLint configs for cam
Usage
npm install eslint eslint-config-cam-recommended --save-dev
.eslintrc
{
extends: [
"cam-recommended"
]
}
Support rule set
-
cam-recommended
- This is basic settings
-
cam-recommended/presets/typescript
- Including
@typescript-eslint/eslint-plugin
- Including
-
cam-recommended/presets/react
- Including
eslint-plugin-react
,eslint-plugin-jsx-ally
andeslint-plugin-react-hooks
- Including
-
cam-recommended/presets/react-typescript
- Including
cam-recommended/presets/typescript
andcam-recommended/presets/react
- Including
cam-recommended/presets/es5
.eslintrc
{
extends: [
"cam-recommended/presets/typescript"
]
}
Prettier Support
you have to install prettier
and choose a preset from the followings.
The presets disable all rules conflicting with Prettier and treat the difference as errors.
You can fix the errors by --fix
option so you don't have to fix the errors manually.
% npm install --save-dev prettier
-
cam-recommended/presets/backend
- Including
cam-recommended
,lib/node.js
, andeslint-config-prettier
- Including
-
cam-recommended/presets/frontend
- Including
cam-recommended
,eslint-config-prettier
, andlib/browser.js
- Including
-
cam-recommended/presets/gatsby
- Including
cam-recommended/presets/typescript
,cam-recommended/presets/react
, andlib/browser.js
- Including
cam-recommended/presets/prettier
cam-recommended/presets/backend-typescript
cam-recommended/presets/frontend-typescript
cam-recommended/presets/react-typescript-prettier
cam-recommended/presets/react-prettier
cam-recommended/presets/es5-prettier
Currently, we don't support customized Prettier config