eslint-plugin-zacanger
zacanger's ESLint plugin and configurations.
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')