Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-muriki

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-muriki

My extensive, opinionated ESLint config.

  • 10.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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" }
}

Keywords

FAQs

Package last updated on 14 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc