jane / eslint-plugin-jane

Jane's ESlint plugin and configurations

Home Page:http://npm.im/eslint-plugin-jane

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eslint-plugin-jane

Jane's ESLint plugin and configurations.

npm version Maintainability


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

About

Jane's ESlint plugin and configurations

http://npm.im/eslint-plugin-jane

License:MIT License


Languages

Language:JavaScript 99.3%Language:Shell 0.7%