eslint-plugin-startupjs

0.56.0-alpha.29 • Public • Published

eslint-plugin-startupjs

ESLint plugin with StartupJS-specific rules

Installation

If you are in StartupJS project and using eslint-config-startupjs then you don't need to install anything. It's already built in into that config.

Manual installation

yarn add -D eslint eslint-plugin-startupjs

Add startupjs plugin in .eslintrc.json, disable default no-unreachable rule and enable all startupjs rules:

{
  "plugins": [
    // ...
    "startupjs"
  ],
  "rules": {
    // ...
    "no-unreachable": "off",
    "startupjs/no-unreachable": "error"
  }
}

Rules

startupjs/no-unreachable

This is a copy of the no-unreachable rule from ESLint core, but with styl template literals being ignored.

ref: https://github.com/eslint/eslint/blob/main/lib/rules/no-unreachable.js

(a single new block of code is marked with a comment // [startupjs])

License

MIT

/eslint-plugin-startupjs/

    Package Sidebar

    Install

    npm i eslint-plugin-startupjs

    Weekly Downloads

    271

    Version

    0.56.0-alpha.29

    License

    MIT

    Unpacked Size

    11 kB

    Total Files

    4

    Last publish

    Collaborators

    • cray0000
    • yska
    • zag2art
    • fctsvirus
    • maestro.sc
    • byshock