Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-halo

hugomrdias32MIT2.4.2

ESlint shareable config for Halo

eslintconfig, halo, code, quality, style, lint, linter, jscs, jshint, jslint, eslint, validate, code style, standard, strict, check, checker, verify, enforce, hint, simple

readme

eslint-config-halo NPM Version NPM Downloads NPM License

ESLint shareable config for Halo

This 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:

{
    "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 and esbenp.prettier-vscode

{
    "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.

License

MIT © Hugo Dias

changelog

2.4.2 (2017-10-16)

Features

  • add h pragma to preact confgi (045afed)

2.4.1 (2017-09-21)

2.4.0 (2017-09-21)

Features

  • add node config and change eslint peer version (ca23695)

2.3.6 (2017-09-21)

2.3.5 (2017-09-21)

2.3.3 (2017-09-06)

Features

  • add find rules and some tweak to the plugins rules (bc213da)

2.3.2 (2017-09-05)

Features

  • add prettier and prettier to deps (dda8ff5)

2.3.1 (2017-09-05)

Features

  • add prettier and prettier to peer (422e005)

2.3.0 (2017-09-05)

Bug Fixes

Features

  • add fixtures to sort-imports rule (b7ddd2c)
  • upgrade eslint (7e6ca61)

2.2.12 (2017-09-05)

2.2.11 (2017-09-05)

2.2.10 (2017-09-05)

2.2.9 (2017-09-05)

2.2.8 (2017-09-05)

2.2.7 (2017-09-05)

2.2.6 (2017-09-05)

2.2.5 (2017-09-05)

2.2.4 (2017-09-05)

2.2.3 (2017-09-05)

2.2.2 (2017-09-05)

2.2.1 (2017-09-05)

2.2.0 (2017-07-17)

2.1.0 (2017-07-17)

2.0.12 (2017-05-29)

2.0.11 (2017-05-29)

2.0.10 (2017-05-29)

2.0.9 (2017-05-29)

2.0.8 (2017-04-27)

2.0.7 (2017-04-27)

2.0.6 (2017-04-27)

2.0.5 (2017-04-27)

2.0.4 (2017-04-27)

2.0.3 (2017-04-27)

2.0.2 (2017-04-27)

2.0.1 (2017-04-26)

2.0.0 (2017-04-26)

1.4.0 (2016-06-06)

Features

  • update to 2.11.0 and add new rules (d18e993)

1.3.1 (2016-05-05)

Features

  • change quote-props to consistent (8b57f08)

1.3.0 (2016-04-12)

1.2.0 (2016-02-17)

Bug Fixes

  • object-curly-spacing to always (7e3117f)

1.1.0 (2016-02-17)

Bug Fixes

  • change newline-per-chained-call to 0 (f5d5f6d)

1.0.0 (2016-02-17)

Features

  • add support for eslint 2 (07916d3)

0.1.4 (2016-01-07)

0.1.3 (2016-01-06)

Features

0.1.2 (2016-01-06)

Bug Fixes

0.1.1 (2016-01-06)

Bug Fixes

  • setup: package.json type (49c9d5d)

Features