eslint-config-developit

raw JSON →
1.2.0 verified Sat Apr 25 auth: no javascript

A shareable ESLint configuration from Jason Miller (developit) providing sensible defaults for ES2015+, React, and Mocha. The current stable version is 1.2.0. Maintenance is minimal; it is a thin wrapper over other presets. Differentiators include React JSX and Mocha test support out of the box.

error Error: Cannot find module 'eslint-config-developit'
cause Missing installed package or global install.
fix
npm install --save-dev eslint-config-developit
error ESLint couldn't find the config "eslint-config-developit".
cause Config name typo or missing `eslint-plugin-*` peer dependency.
fix
Ensure package is installed and check .eslintrc extends value.
gotcha This config overrides your existing ESLint rules. To add custom rules, create your own config and extend both.
fix Use `"extends": ["eslint-config-developit", "./my-custom-rules"]`
breaking Requires ESLint >= 5. Older versions of ESLint are not supported.
fix Upgrade ESLint to version 5 or higher.
npm install eslint-config-developit
yarn add eslint-config-developit
pnpm add eslint-config-developit

Install and extend the ESLint configuration in package.json or .eslintrc.

// Install:
// npm i -D eslint eslint-config-developit

// In package.json:
{
  "eslintConfig": {
    "extends": "eslint-config-developit"
  }
}

// Or .eslintrc:
{
  "extends": "eslint-config-developit"
}