@alliance-software/eslint-config

4.0.0 • Public • Published

eslint-config

eslint for Alliance projects. For react projects see eslint-config-react

Usage

# yarn projects
yarn add @alliance-software/eslint-config

Create a `.eslintrc` with an `extends` rule that includes `alliance`, eg.

{ "extends" : [ "@alliance-software/eslint-config" ], "env" : { "browser" : true } }


In the `scripts` key in `package.json` add:

{ "lint": "eslint ./src", "lint:fix": "npm run lint -- --fix", }


where `./src` is the directory you want to run linting on.

## Changelog

* 4
    * 4.0.0
        * eslint 5+ dep
        * Remove deprecated parser options for use with babel7
* 3
    * 3.0.1
        * Broaden dependency ranges
    * 3.0.0
        * Breaking Changes
        * Upgrade to eslint 4
        * no-class-assign => off (HOC in React often reassign class)
        * import/no-named-as-default => off (export connected & unconnected components)
        * no-unused-vars => ignoreRestSiblings: true (destructure to exclude vars before passing on rest)

Readme

Keywords

Package Sidebar

Install

npm i @alliance-software/eslint-config

Weekly Downloads

7

Version

4.0.0

License

BSD-3-Clause

Unpacked Size

44.6 kB

Total Files

9

Last publish

Collaborators

  • davealliance
  • levic