2.6.0 • Published 7 years ago

eslint-config-strelka v2.6.0

Weekly downloads
11
License
ISC
Repository
github
Last release
7 years ago

eslint-config-strelka

Based on Standard JS

Setup

General

  1. Install:

    $ yarn add eslint eslint-{config-{standard,strelka},plugin-{promise,import,node,standard}}
  2. In .eslintrc:

    { "extends": "strelka" }

React

  1. Install:

    $ yarn add eslint eslint-{config-{standard,standard-jsx,strelka},plugin-{promise,import,node,react,standard}}
  2. In .eslintrc:

    { "extends": "strelka/react" }
  3. Usage:

    $ eslint --ext js,jsx .

Vue

  1. Install:

    $ yarn add eslint eslint-{config-{standard,vue,strelka},plugin-{promise,import,node,html,vue,standard}}
  2. In .eslintrc:

    { "extends": "strelka/vue" }
  3. 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

2.6.0

7 years ago

2.5.0

7 years ago

2.4.0

7 years ago

2.3.0

7 years ago

2.2.0

7 years ago

2.1.3

7 years ago

2.1.2

7 years ago

2.1.1

7 years ago

2.1.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago