12.0.0 • Published 5 years ago

eslint-config-simplifield v12.0.0

Weekly downloads
441
License
MIT
Repository
github
Last release
5 years ago

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

12.0.0

5 years ago

11.0.0

5 years ago

10.0.1

6 years ago

10.0.0

7 years ago

9.0.0

7 years ago

8.1.0

7 years ago

8.0.0

8 years ago

7.1.1

8 years ago

7.1.0

8 years ago

7.0.1

8 years ago

7.0.0

8 years ago

6.1.0

8 years ago

6.0.0

9 years ago

5.1.1

9 years ago

5.1.0

9 years ago

5.0.1

9 years ago

5.0.0

9 years ago

4.4.0

9 years ago

4.3.1

9 years ago

4.3.0

9 years ago

4.2.2

9 years ago

4.2.1

9 years ago

4.2.0

9 years ago

4.1.1

9 years ago

4.1.0

9 years ago

4.0.2

9 years ago

4.0.1

9 years ago

4.0.0

9 years ago

3.1.0

9 years ago

3.0.0

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.3

10 years ago