10.0.1 • Published 8 years ago

eslint-config-muriki v10.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

ESLint Config Muriki

Install

npm install --save-dev eslint eslint-config-muriki

Usage

You'll probably want to use eslint-plugin-muriki instead.

No I don't

To lint your code with ESLint create a file .eslintrc.js in your project root.

module.exports = { extends: 'muriki' };

Add a lint script to your package.json.

{
  "scripts": {
    "lint": "eslint ...[file|dir]"
  }
}

Different presets

You can use a few different configs.

  • default
  • loose - extends default, while loosing up some rules, ideal for scripting
  • test — extends loose, for tests

You can extend a preset like so.

module.exports = { extends: 'muriki/test' };

Linting in IDE

It's obligatory to install IDE plugins and enabled auto-fixing.

Atom

https://github.com/AtomLinter/linter-eslint

Sublime Text

https://github.com/roadhump/SublimeLinter-eslint

VSCode

https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint

WebStorm

https://www.jetbrains.com/help/webstorm/2016.1/eslint.html

Linting on commit

It's possible to lint your code on commit to keep the repository clean and the feedback early.

Dependencies

npm install --save-dev husky lint-staged

package.json

{
  "scripts": {
    { "precommit": "lint-staged" }
  },
  "lint-staged": { "*.js": "eslint" }
}
10.0.1

8 years ago

10.0.0

8 years ago

9.1.0

9 years ago

9.0.2

9 years ago

9.0.1

9 years ago

9.0.0

9 years ago

8.6.0

9 years ago

8.5.4

9 years ago

8.5.3

9 years ago

8.5.2

9 years ago

8.5.1

9 years ago

8.5.0

9 years ago

8.4.0

9 years ago

8.3.0

9 years ago

8.2.0

9 years ago

8.1.5

9 years ago

8.1.4

9 years ago

8.1.3

9 years ago

8.1.2

9 years ago

8.1.1

9 years ago

8.1.0

9 years ago

8.0.0

9 years ago

7.0.0

9 years ago

6.3.4

9 years ago

6.3.3

9 years ago

6.3.2

9 years ago

6.3.1

9 years ago

6.3.0

9 years ago

6.2.1

10 years ago

6.2.0

10 years ago

6.1.2

10 years ago

6.1.1

10 years ago

6.1.0

10 years ago

6.0.1

10 years ago

6.0.0

10 years ago

5.4.1

10 years ago

5.4.0

10 years ago

5.3.0

10 years ago

5.2.4

10 years ago

5.2.3

10 years ago

5.2.2

10 years ago

5.2.0

10 years ago

5.1.2

10 years ago

5.1.1

10 years ago

5.1.0

10 years ago

4.2.1

10 years ago

4.2.0

10 years ago

4.1.0

10 years ago

4.0.1

10 years ago

4.0.0

10 years ago

3.3.3

10 years ago

3.3.2

10 years ago

3.3.1

10 years ago

3.3.0

10 years ago

3.2.0

10 years ago

3.1.0

10 years ago

3.0.0

10 years ago

2.0.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.11.1

10 years ago

0.11.0

10 years ago

0.10.0

10 years ago

0.9.1

10 years ago

0.9.0

10 years ago