Skip to content

Latest commit

 

History

History

eslint-config

W5S ESLint configuration (@w5s/eslint-config)

NPM Version License

ESLint configuration presets

Installation

npm install --save-dev @w5s/eslint-config

Usage

Default JS/TS project

For most kind of project, just edit eslintrc.json and add default configuration

{
  "extends": [
    "@w5s/eslint-config"
  ]
}

Features :

  • ES and TS validation
  • Prettier formatting
  • JSX and React syntax validation
  • Jest tests

Custom project

For most kind of project, just edit eslintrc.json and cherry pick only configurations

{
  "root": true,
  "extends": [
    "@w5s/eslint-config/es",
    "@w5s/eslint-config/jest",
    "@w5s/eslint-config/json",
    "@w5s/eslint-config/ts",
    "@w5s/eslint-config/yml",
    // include more configurations here
  ]
  //...
}

Available configurations :

  • @w5s/eslint-config/es: for ECMA Script (ES) files
  • @w5s/eslint-config/jest: for jest environment tests
  • @w5s/eslint-config/json: for json and jsonc files
  • @w5s/eslint-config/ts: for typescript files
  • @w5s/eslint-config/yml: for yaml files

License

MIT © Julien Polo julien.polo@gmail.com