Skip to content

Default ESLint configuration for Mobilab solutions projects.

License

Notifications You must be signed in to change notification settings

mobilabsolutions/eslint-config

Repository files navigation

Mobilab Solutions eslint-config

Build Status

Usage

Include the package that you want to the "extends" array in your .eslintrc.* file.
You can combine with multiple packages. See the available packages

Sample

An example to how configure an ES6 + React project.\

Installation and usage

npm install --save-dev eslint prettier @mobilabsolutions/eslint-config @mobilabsolutions/eslint-config-react

{
  "extends": [
    "@mobilabsolutions/eslint-config/es6",
    "@mobilabsolutions/eslint-config-react"
  ]
}

Development

git clone [email protected]:mobilabsolutions/eslint-config.git
cd eslint-config
yarn
yarn run bootstrap

Addons

@mobilabsolutions/eslint-config - When using ES5, ES6, ...
@mobilabsolutions/eslint-config-react - When using React (requires es6 base configuration or higher)
@mobilabsolutions/eslint-config-node - When using NodeJS
@mobilabsolutions/eslint-config-jest - When using Jest to develop the tests\

Overrides

You can easily override any specific options.
See http://eslint.org/docs/developer-guide/shareable-configs for more information.

Example

{
  "rules": {
    "constructor-super": "off",
    "generator-star-spacing": "off",
    "no-class-assign": "off"
  }
}

Contributing

See how to contribute Contributors Guide

License

MIT License