Skip to content

A strict opinionated ESLint shareable config for the Sidy JavaScript style guide

License

Notifications You must be signed in to change notification settings

HydreIO/eslint-config-hydre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@hydre/eslint-config-hydre

A strict opinionated ESLint shareable config for the Hydre JavaScript style guide

Install

npm install -D \
  eslint \
  babel-eslint@next \
  eslint-plugin-unicorn \
  @hydre/eslint-config-hydre

Usage

Add to your .eslintrc.yml file

env:
  node: true
  es2020: true
plugins:
  - unicorn
extends:
  - "@hydre/eslint-config-hydre"
globals:
  Atomics: readonly
  SharedArrayBuffer: readonly
# Nodejs support some experimental ecma features but not eslint
parser: babel-eslint
parserOptions:
  sourceType: module
  configFile: package.json
  ecmaVersion: 11

format

we suggest using prettier-eslint-cli

"lint": "prettier-eslint $PWD/\"**/*.js\" --print-width 60 --list-different && eslint --color .",
"format": "prettier-eslint $PWD/\"**/*.js\" --print-width 60 --write",

About

A strict opinionated ESLint shareable config for the Sidy JavaScript style guide

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published