Socket
Book a DemoInstallSign in
Socket

eslint-plugin-startupjs

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-startupjs

ESLint plugin for StartupJS projects

next
latest
npmnpm
Version
0.56.0-alpha.29
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 19 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts