2.0.6 • Published 5 years ago

@syteai/eslint-config v2.0.6

Weekly downloads
27
License
ISC
Repository
-
Last release
5 years ago

@syteai/eslint-config

ESLint ruleset for projects utilizing React and Jest with husky pre-commit hook.

Installation

Install dependencies and conventions by running:

npm i @syteai/eslint-config --save-dev

Setup

Make sure you have .eslintrc file. If you don't, create it by running touch .eslintrc in your project route folder. Then open this file and add the folowing:

{
  "extends": "@syteai",
  "rules": {
    // your overrides
  }
}

You can override any rule from this package in your local .eslintrc file.

To make linting easy you can add linting scripts to your package.json file:

"scripts": {
  "lint": "eslint --ignore-pattern node_modules/ .",
  "lint:fix": "npm run lint -- --fix"
}

To ensure that you do not commit files with errors, add pre-commit hook to your project by adding new property to your package.json:

"husky": {
    "hooks": {
      "pre-commit": "npm run lint"
    }
  }

Happy linting!

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.2.0

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago