Jane's ESLint plugin and configurations.
npm i -D eslint eslint-plugin-jane
.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')