eslint-config-simplifield

raw JSON →
12.0.0 verified Fri May 01 auth: no javascript

ESLint shareable config created and maintained by SimpliField. Version 12.0.0 requires Node >=8.0.0. Provides a curated set of ESLint rules used internally at SimpliField. Designed to be extended directly via `extends` in .eslintrc. Supports both backend (Node) and frontend (React, Flow) projects. Lightweight with no runtime dependencies. Updated infrequently; check for compatibility with your ESLint version.

error Configuration for rule "keyword-spacing" is invalid
cause Version 2.x of this package changed the keyword-spacing rule configuration.
fix
Update your project's .eslintrc to use an array format: "keyword-spacing": ["error", { "before": true }]
breaking Version 2.0.0 upgraded to ESLint v2, which introduced many breaking changes to rules and config format.
fix If on ESLint <2, use eslint-config-simplifield@1.x. If on ESLint >=2, use >=2.0.0.
gotcha The config includes rules that may conflict with Prettier (e.g., indent rule often turned off).
fix Disable conflicting rules in your project's .eslintrc (see README for examples like "indent": "off").
deprecated Older versions (v1.x) used deprecated ESLint config format.
fix Upgrade to v2.x+ and ESLint >=2.
npm install eslint-config-simplifield
yarn add eslint-config-simplifield
pnpm add eslint-config-simplifield

Shows a minimal .eslintrc using the SimpliField config, with Node/Mocha env and globals.

{
  "extends": "eslint-config-simplifield",
  "env": {
    "node": true,
    "mocha": true
  },
  "globals": {
    "require": false,
    "describe": false,
    "beforeEach": false,
    "afterEach": false,
    "before": false,
    "after": false,
    "it": false,
    "sinon": false,
    "module": false
  },
  "plugins": [
    "mongodb"
  ]
}