eslint-plugin-jane
Jane's ESLint plugin and configurations.
Installation
npm i -D eslint eslint-plugin-jane
Usage
.eslintrc.json:
{
"root": true,
"extends": [
"plugin:jane/recommended",
"plugin:jane/react",
"plugin:jane/node",
"plugin:jane/typescript",
"plugin:jane/prettier",
"plugin:jane/jest"
],
"plugins": ["jane"]
}
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 our Prettier config:
.prettierrc.js:
module.exports = require('eslint-plugin-jane/prettier')
License
MIT