@w5s/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

2.0.17 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @w5s/eslint-config

Weekly Downloads

958

Version

2.0.17

License

MIT

Unpacked Size

77.5 kB

Total Files

57

Last publish

Collaborators

  • jpolo