Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/strelka-institute/eslint-config-strelka
ESLint Sharable Config for Strelka Projects
https://github.com/strelka-institute/eslint-config-strelka
codestyle eslint eslint-config javascript strelka
Last synced: 11 days ago
JSON representation
ESLint Sharable Config for Strelka Projects
- Host: GitHub
- URL: https://github.com/strelka-institute/eslint-config-strelka
- Owner: strelka-institute
- Created: 2016-07-29T14:52:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-02T11:20:02.000Z (over 7 years ago)
- Last Synced: 2024-04-29T09:02:27.799Z (9 months ago)
- Topics: codestyle, eslint, eslint-config, javascript, strelka
- Language: JavaScript
- Homepage:
- Size: 29.3 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-config-strelka
> Based on [Standard JS](http://standardjs.com)
## Setup
### General
1. Install:
```bash
$ yarn add eslint eslint-{config-{standard,strelka},plugin-{promise,import,node,standard}}
```2. In `.eslintrc`:
```json
{ "extends": "strelka" }
```### React
1. Install:
```bash
$ yarn add eslint eslint-{config-{standard,standard-jsx,strelka},plugin-{promise,import,node,react,standard}}
```2. In `.eslintrc`:
```json
{ "extends": "strelka/react" }
```3. Usage:
```bash
$ eslint --ext js,jsx .
```### Vue
1. Install:
```bash
$ yarn add eslint eslint-{config-{standard,vue,strelka},plugin-{promise,import,node,html,vue,standard}}
```2. In `.eslintrc`:
```json
{ "extends": "strelka/vue" }
```3. Usage:
```bash
$ 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:```json
"user": {
"linters": {
"eslint": {
"@disable": false,
"args": [ "--ext=js,jsx,vue" ],
"excludes": []
}
},
"syntax_map": {
"javascript (babel)": "javascript",
"vue": "javascript"
},
}
```
## Rules> TODO
## Related- [Standard.js](http://standardjs.com/) - One JavaScript Style to Rule Them All
- [ESLint](http://eslint.org/) - The pluggable linting utility for JavaScript and JSX---
Strelka