npm.io
2.3.0 • Published 5 years ago

eslint-plugin-zacanger

Licence
LGPL-3.0
Version
2.3.0
Deps
15
Size
24 kB
Vulns
0
Weekly
0
DeprecatedThis package is deprecated

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

Keywords