@1024pix/eslint-config

1.2.9 • Public • Published

@1024pix/eslint-config

npm

Usage

Install

npm install -D eslint @1024pix/eslint-config

Config .eslintrc

{
  "extends": "@1024pix"
}

You don't need .eslintignore normally as it has been provided by the preset.

Add script for package.json

For example:

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

Config VS Code auto fix

Install VS Code ESLint extension and create .vscode/settings.json

{
  "prettier.enable": false,
  "editor.formatOnSave": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true,
    "source.organizeImports": false
  }
}

FAQ

I prefer XXX...

Sure, you can override the rules in your .eslintrc file.

{
  "extends": "@1024pix",
  "rules": {
    // your rules...
  }
}

Or you can always fork this repo and make your own.

Readme

Keywords

none

Package Sidebar

Install

npm i @1024pix/eslint-config

Weekly Downloads

1,151

Version

1.2.9

License

none

Unpacked Size

46.6 kB

Total Files

14

Last publish

Collaborators

  • alielamrani
  • nicolas.lepage
  • vincenthardouin
  • yann_bertrand
  • pix-owner