@sidy/eslint-config-sidy

1.4.15 • Public • Published

@sidy/eslint-config-sidy

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

Install

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

Usage

Add to your .eslintrc.yml file

env:
  node: true
  es2020: true
plugins:
  - unicorn
extends:
  - "@sidy/eslint-config-sidy"
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",

Package Sidebar

Install

npm i @sidy/eslint-config-sidy

Weekly Downloads

44

Version

1.4.15

License

UNLICENSE

Unpacked Size

22.6 kB

Total Files

4

Last publish

Collaborators

  • hydre-bot
  • sceat