1.0.11 • Published 6 years ago

@pinon/eslint-config v1.0.11

Weekly downloads
1
License
MIT
Repository
github
Last release
6 years ago

eslint-config-pinon

This package provides PinOn's .eslintrc for Javascript and Typescript as an extensible shared config.

Currently still work in progress.

How to use

Install with npm

npm install --save-dev @pinon/eslint-config eslint-config-prettier eslint-plugin-prettier eslint-plugin-react @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint prettier typescript

Create .eslintrc.json in your root project folder

{
  "extends": "@pinon/eslint-config"
}

Use with VSCode ESlint plugin

Add to your VSCode's setting.json

{
  "editor.codeActionsOnSave": {
    "source.fixAll.tslint": true
  },
  "eslint.autoFixOnSave": true,
  "eslint.provideLintTask": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    {
      "language": "typescript",
      "autoFix": true
    },
    {
      "language": "typescriptreact",
      "autoFix": true
    }
  ],
}

If you have already enabled the auto format on save function in VSCode, you need add the following setting to prevent auto format twice.

{
  "editor.formatOnSave": true,
  "[javascript]": {
    "editor.formatOnSave": false,
  },
  "[javascriptreact]": {
    "editor.formatOnSave": false,
  },
  "[typescript]": {
    "editor.formatOnSave": false,
  },
  "[typescriptreact]": {
    "editor.formatOnSave": false,
  },
}
1.0.11

6 years ago

1.0.10

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago