2.0.0 • Published 6 years ago

eslint-config-smashing-boxes v2.0.0

Weekly downloads
20
License
MIT
Repository
github
Last release
6 years ago

eslint-config-smashing-boxes

ESLint shareable config for Smashing Boxes' JavaScript Style Guide

Installation

npm install --save-dev eslint eslint-config-smashing-boxes

Usage

Once the eslint-config-smashing-boxes package is installed, you can use it by specifying smashing-boxes or eslint-config-smashing-boxes in the extends section of your ESLint configuration.

{
  "extends": "smashing-boxes", // Or "eslint-config-smashing-boxes"
  "rules": {

    /**
     * Additional, per-project rules can go here.
     * These rules will override the rules in
     * "eslint-config-smashing-boxes"
     */

  }
}

React

For usage in a React project you will need to install the eslint-plugin-react:

npm install --save-dev eslint-plugin-react

Change the "extends" value to "extends": "smashing-boxes/react" or "extends": "eslint-config-smashing-boxes/react"

{
  "extends": "smashing-boxes/react", // Or "eslint-config-smashing-boxes/react"
  "rules": {

    /**
     * Additional, per-project rules can go here.
     * These rules will override the rules in
     * "eslint-config-smashing-boxes"
     */

License

MIT

2.0.0

6 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago