Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hugomrdias/eslint-config-halo
ESLint shareable config for Halo
https://github.com/hugomrdias/eslint-config-halo
config eslint eslint-plugin halo vscode-eslint
Last synced: 20 days ago
JSON representation
ESLint shareable config for Halo
- Host: GitHub
- URL: https://github.com/hugomrdias/eslint-config-halo
- Owner: hugomrdias
- License: mit
- Created: 2016-01-06T16:30:51.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T08:17:49.000Z (over 2 years ago)
- Last Synced: 2024-12-11T01:35:41.363Z (about 1 month ago)
- Topics: config, eslint, eslint-plugin, halo, vscode-eslint
- Language: JavaScript
- Size: 354 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-config-halo [![NPM Version](https://img.shields.io/npm/v/eslint-config-halo.svg)](https://www.npmjs.com/package/eslint-config-halo) [![NPM Downloads](https://img.shields.io/npm/dt/eslint-config-halo.svg)](https://www.npmjs.com/package/eslint-config-halo) [![NPM License](https://img.shields.io/npm/l/eslint-config-halo.svg)](https://www.npmjs.com/package/eslint-config-halo)
> ESLint [shareable config](http://eslint.org/docs/developer-guide/shareable-configs.html) for HaloThis is for advanced users.
## Note to self
keep eslint peer dep in the last version with new rules or options we support!
## Install
```
$ yarn add eslint eslint-config-halo --dev
```## Usage
Add some ESLint config to your `package.json`:
```
{
"name": "my-awesome-project",
"eslintConfig": {
"parser": "babel-eslint", // optional only if you need future js features
"extends": "halo"
}
}
```
Note: babel-eslint is way slower. Right now i need this for class properties initializers for auto bind callbacks in react.Or to `.eslintrc`:
```json
{
"extends": "halo"
}
```## Configs available
```
halo // eslint only rules
halo:plugins // extends above and adds couple of plugins
halo:react // extends above and adds react support
halo:preact // extends above overrides some rules for preact
```## Visual Studio Code
Install [dbaeumer.vscode-eslint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) and [esbenp.prettier-vscode](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode)
```json
{
"editor.formatOnType": true,
"editor.formatOnSave": true,
"prettier.eslintIntegration": true,
"prettier.printWidth": 80,
"prettier.tabWidth": 4,
"prettier.useTabs": false,
"prettier.semi": true,
"prettier.singleQuote": true,
"prettier.trailingComma": "none",
"prettier.bracketSpacing": true,
"prettier.jsxBracketSameLine": false,
"prettier.cssEnable": [],
}
```Use the default settings for vscode-eslint and these to auto format using prettier and eslint.
## Related
- [eslint:recommended](https://github.com/eslint/eslint/blob/master/conf/eslint.json) - ESLint recommended rules
- [esbenp.prettier-vscode](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) Prettier plugin
- [dbaeumer.vscode-eslint](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) ESlint plugin## License
MIT © [Hugo Dias](http://hugodias.me)