eslint-config-cam-recommended

2.0.3 • Public • Published

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
  • cam-recommended/presets/react
    • Including eslint-plugin-react, eslint-plugin-jsx-ally and eslint-plugin-react-hooks
  • cam-recommended/presets/react-typescript
    • Including cam-recommended/presets/typescript and cam-recommended/presets/react
  • 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, and eslint-config-prettier
  • cam-recommended/presets/frontend
    • Including cam-recommended, eslint-config-prettier, and lib/browser.js
  • cam-recommended/presets/gatsby
    • Including cam-recommended/presets/typescript, cam-recommended/presets/react, and lib/browser.js
  • 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

Package Sidebar

Install

npm i eslint-config-cam-recommended

Weekly Downloads

491

Version

2.0.3

License

UNLICENSED

Unpacked Size

8.24 kB

Total Files

27

Last publish

Collaborators

  • noritama
  • cathcheeno
  • ejithon
  • konotorrrri