eslint-config-simplifield

    12.0.0 • Public • Published

    eslint-config-simplifield

    NPM version Build status CodeFactor Dependency Status Dependency Status devDependency Status

    ESLint configuration at Simplifield.

    To use those rules in your projects, first, install it as a development dependency and than add it to your .eslintrc file.

    It will automatically append the SimpliField rules to your project.

    Theses are our own rules but you can require a reconsideration of a rule by creating an issue which name is the rule you wanna change.

    See shareable configs documentation for more infos.

    Usage

    Sample .eslintrc using this plugin:

    {
      "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"
      ]
    }

    A .eslintrc for frontend with react & flow:

    {
      "extends": "eslint-config-simplifield",
      "plugins": [ "react", "flowtype" ],
      "parser": "babel-eslint",
      "parserOptions": {
        "ecmaFeatures": {
          "jsx": true
        }
      },
      "rules": {
        "react/jsx-uses-vars": "error",
        "react/jsx-uses-react": "error",
        "keyword-spacing": ["error", { "before": true }],
        "arrow-parens": ["error", "as-needed"],
        "operator-linebreak": "off",
        "no-mixed-operators": "off",
        "newline-per-chained-call": "off",
        "indent": "off"
      }
    }

    License

    MIT

    Install

    npm i eslint-config-simplifield

    DownloadsWeekly Downloads

    348

    Version

    12.0.0

    License

    MIT

    Unpacked Size

    23.8 kB

    Total Files

    12

    Last publish

    Collaborators

    • xavhan
    • nfroidure
    • gplancke
    • arnaudspanneut
    • sebastienelet