dario-piotrowicz / eslint-plugin-next-on-pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESLint plugin next-on-pages

Setup:

  • install the plugin:

     npm i --save-dev "git+https://github.com/dario-piotrowicz/eslint-plugin-next-on-pages.git"
  • update the .eslintrc.json file:

    {
      "plugins": [
    +    "next-on-pages"
      ],
      "extends": [
    +    // apply the recommended rules
    +    "plugin:next-on-pages/recommended"
      ],
      "rules": {
    +    // specify or tweak the rules
    +    "next-on-pages/missing-image-loader": "error"
      }
    }

About


Languages

Language:TypeScript 100.0%