> Based on [Standard JS](http://standardjs.com)


Keywords
eslint, standard, eslintconfig, strelka, codestyle, eslint-config, javascript
License
ISC
Install
npm install eslint-config-strelka@2.6.0

Documentation

eslint-config-strelka

Based on Standard JS

Setup

General

  1. Install:
$ yarn add eslint eslint-{config-{standard,strelka},plugin-{promise,import,node,standard}}
  1. In .eslintrc:
{ "extends": "strelka" }

React

  1. Install:
$ yarn add eslint eslint-{config-{standard,standard-jsx,strelka},plugin-{promise,import,node,react,standard}}
  1. In .eslintrc:
{ "extends": "strelka/react" }
  1. Usage:
$ eslint --ext js,jsx .

Vue

  1. Install:
$ yarn add eslint eslint-{config-{standard,vue,strelka},plugin-{promise,import,node,html,vue,standard}}
  1. In .eslintrc:
{ "extends": "strelka/vue" }
  1. Usage:
$ eslint --ext js,vue .

Editors

Sublime Text

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

Rules

TODO

Related

  • Standard.js - One JavaScript Style to Rule Them All
  • ESLint - The pluggable linting utility for JavaScript and JSX

Strelka