1. eslint-config-halo
ESlint shareable config for Halo
eslint-config-halo
Package: eslint-config-halo
Created by: hugomrdias
Last modified: Fri, 17 Jun 2022 19:11:16 GMT
Version: 2.4.2
License: MIT
Downloads: 97
Repository: https://github.com/hugomrdias/eslint-config-halo

Install

npm install eslint-config-halo
yarn add eslint-config-halo

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

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code