2.3.0 • Published 3 years ago

eslint-plugin-zacanger v2.3.0

Weekly downloads
39
License
LGPL-3.0
Repository
github
Last release
3 years ago

eslint-plugin-zacanger

zacanger's ESLint plugin and configurations.

npm version CircleCI Maintainability


Installation

npm i -D eslint eslint-plugin-zacanger

Usage

.eslintrc.json:

{
  "root": true,
  "extends": [
    "plugin:zacanger/recommended",
    "plugin:zacanger/react",
    "plugin:zacanger/node",
    "plugin:zacanger/typescript",
    "plugin:zacanger/prettier-ts",
    "plugin:zacanger/prettier",
    "plugin:zacanger/jest"
  ],
  "plugins": [
    "zacanger"
  ]
}

You can extend any or all of the exported configurations. If you are using the typescript plugin, some of the rules require this to be added to the .eslintrc file

"parser": "@typescript-eslint/parser",
"parserOptions": {
  "project": "./tsconfig.json"
},

You can also use or extend the Prettier config:

.prettierrc.js:

module.exports = require('eslint-plugin-zacanger/prettier')
// OR for TS files
module.exports = require('eslint-plugin-zacanger/prettier-ts')

License