Nerfing Powerful Megalomaniacs

    eslint-config-teselagen

    6.0.6 • Public • Published

    Teselagen's shared linting config

    Installation

    requires v6 of eslint or higher

    1. yarn add -D eslint eslint-config-teselagen

    2. Add the following to .eslintrc.js

    require("eslint-config-teselagen/patch");
    module.exports = {
      //choose one of the following:
    	extends: "teselagen/react"
    	extends: "teselagen/node"
    	extends: "teselagen/cypress"
    	extends: "teselagen/es5"
    }
    

    For React.js projects, extend from teselagen/react For Node.js projects, extend from teselagen/node

    Adding linting on precommit (recommended!)

    Then add this to your package.json:

    "scripts": {
      "precommit": "lint-staged"
    },
    "lint-staged": {
      "src/**/*.js": [
        "eslint --fix --max-warnings=0",
        "prettier --write",
        "git add"
      ]
    },
    

    Changelog

    v5

    -We're now using a patch to simplify installation!

    Keywords

    none

    Install

    npm i eslint-config-teselagen

    DownloadsWeekly Downloads

    1,110

    Version

    6.0.6

    License

    MIT

    Unpacked Size

    4.6 kB

    Total Files

    6

    Last publish

    Collaborators

    • teselagen-admin