Skip to content

i40de/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

i40 JavaScript Style npm

An ESLint Shareable Config for i40 flavored JavaScript Standard Style

Install

npx install-peerdeps --dev @i40/eslint-config

Usage

Add to either package.json or .eslintrc:

package.json
{
  // …
  "eslintConfig": {
    "extends": "@i40/eslint-config"
  }
  // …
}
.eslintrc
{
  "extends": "@i40/eslint-config"
}

Rules

  1. Comma dangle (comma-dangle) always-multiline: Requires trailing commas for multiline object and array literals
  2. Space before function parenthesis: (space-before-function-paren) never: Disallows any space followed by the ( of arguments

Releases

No releases published

Packages