@brudi/eslint-config-brudi

0.2.1 • Public • Published

eslint-config-brudi

Base Eslint shareable config of brudi

NPM FOSSA Status

Installation

Install the package with

npm install eslint-config-brudi --save-dev

or

yarn add eslint-config-brudi -D

eslint Setup

Now add the config to either the package.json:

{
  "eslintConfig": {
    "extends": ["@brudi/brudi"],
  }
}

or to the .eslintrc or .eslintrc.js:

module.exports = {
  extends: ["@brudi/brudi"],
};

ESLint and Prettier

  • works together with prettier, thanks to eslint-plugin-prettier
  • the ESLint rules are based on the great work of airbnb's eslint-config-airbnb
  • made for React environment but can be used on a eg. node-server environment as well)
  • handles jest for tests as well
  • 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.

License

FOSSA Status

© brudi, 2019. Licensed under an Apache-2 license.

Readme

Keywords

none

Package Sidebar

Install

npm i @brudi/eslint-config-brudi

Weekly Downloads

15

Version

0.2.1

License

Apache-2.0

Unpacked Size

16.9 kB

Total Files

7

Last publish

Collaborators

  • sandrowyss
  • karlkode
  • brudi.com
  • martinklapper
  • dardan