https://github.com/jhurliman/eslint-config-standard-strict
ESLint config for ES7, following StandardJS with added checks
https://github.com/jhurliman/eslint-config-standard-strict
Last synced: 10 months ago
JSON representation
ESLint config for ES7, following StandardJS with added checks
- Host: GitHub
- URL: https://github.com/jhurliman/eslint-config-standard-strict
- Owner: jhurliman
- License: mit
- Created: 2016-01-11T17:37:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-12T21:55:09.000Z (over 9 years ago)
- Last Synced: 2025-03-03T18:02:42.497Z (10 months ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-standard-strict
ESLint config for ES7, following StandardJS with added checks
## Usage
1. Add all of the `"devDependencies"` listed in [package.json](https://github.com/jhurliman/eslint-config-standard-strict/blob/master/package.json) to your project's `"devDependencies"` section.
2. Add an additional entry to `"devDependencies"`:
```json
"eslint-config-standard-strict": "latest"
```
3. Add a root level `.eslintrc` that references this package
```json
{ "extends": "standard-strict" }
```
4. Add another `.eslintrc` to your `test` folder that supports mocha
```json
{
"extends": "standard-strict",
"env": { "mocha": true }
}
```
5. (Recommended) Add the following entries to your `package.json` for simplified CLI access to linting:
```json
"scripts": {
"lint": "./node_modules/.bin/eslint .",
"lint-changed": "git diff --name-only --cached --relative | grep '\\.js$' | xargs ./node_modules/.bin/eslint"
}
```
6. (Recommended) Setup your editor to support inline ESLint support. For Sublime Text, that means `npm install -g eslint` then installing `SublimeLinter` and `SublimeLinter-contrib-eslint` packages. For Vim, use [Syntastic](https://github.com/scrooloose/syntastic).