yjose / eslint-config-ns

ESLint config ready to be used in multiple projects. With Prettier support.

Home Page:https://www.npmjs.com/package/eslint-config-ns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-config-ns

Documentation Shareable Configs

Installation

Install the package with

npm install eslint-config-ns --save-dev

or

yarn add eslint-config-ns -D

eslint Setup

Now add the config to either the package.json:

{
  "eslintConfig": {
    "extends": "eslint-config-ns"
  }
}

or to the .eslintrc or .eslintrc.js:

{
  "extends": "eslint-config-ns"
}

ESLint and Prettier

Assumptions

  • the ESLint rules are based on the great work of airbnb's eslint-config-airbnb
  • React environment (but can be used on a eg. node-server environment as well)
  • Usage of jest as the test-suite
  • env: Browser and Node environment
  • globals: added some related jest variables
  • parser: usage of babel (used babel-eslint parser)

Note: you can still overwrite the env, globals and parser in your local .eslintrc.js.

LICENCE

MIT

Maintainers


Stefan Natter

About

ESLint config ready to be used in multiple projects. With Prettier support.

https://www.npmjs.com/package/eslint-config-ns

License:MIT License


Languages

Language:JavaScript 100.0%