2.4.2 • Published 7 years ago

eslint-config-halo v2.4.2

Weekly downloads
80
License
MIT
Repository
github
Last release
7 years ago

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.

Related

License

MIT © Hugo Dias

2.4.2

7 years ago

2.4.1

7 years ago

2.4.0

7 years ago

2.3.6

7 years ago

2.3.5

7 years ago

2.3.3

7 years ago

2.3.2

7 years ago

2.3.1

7 years ago

2.3.0

7 years ago

2.2.12

7 years ago

2.2.11

7 years ago

2.2.7

7 years ago

2.2.4

7 years ago

2.2.0

7 years ago

2.0.12

7 years ago

2.0.11

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

7 years ago

2.0.5

7 years ago

2.0.3

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.4.0

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago

0.1.1

8 years ago