New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

eslint-config-strelka

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-strelka

Basically based on [JS standard Code Style](http://standardjs.com) with specific additions (see `index.js`)


Version published
Maintainers
1
Created

Strelka Code Style Eslint configuration

Basically based on JS standard Code Style with specific additions (see index.js)

Full rules description coming soon...

Setup in new project

  • Install Eslint globally and in project:

    $ npm i -g eslint
    $ npm i -D eslint
    
  • Install dependencies

    $ npm i -D eslint-config-{standard,standard-jsx} eslint-plugin-{meteor,promise,react,standard}
    
  • Install strelka config

    $ npm i -D eslint-config-strelka
    
  • Create .eslintrc in project folder with following content:

    {
      "extends": [ "strelka" ]
    }
    
  • Additionally create .eslintignore with list of ignored files:

    .meteor
    node_modules
    public
    private
    
  • Check Code Style eslint . --ext=js,jsx

  • (Optional) Fix some Code Style errors with eslint . --fix --ext=js,jsx

Usage with Sublime Text

  1. Install Eslint globally with npm i -g eslint
  2. Install Sublime packages:
    1. SublimeLinter
    2. SublimeLinter-contrib-eslint
  3. Open SublimeLinter Settings: User and add this options:
"user": {
  "linters": {
    "eslint": {
      "@disable": false,
      "args": [
        "--ext=js,jsx,vue",
        "--env=es6"
      ],
      "excludes": []
    }
  },
  "syntax_map": {
    "javascript (babel)": "javascript",
    "vue": "javascript"
  },
}

FAQs

Package last updated on 29 Jul 2016

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