Socket
Book a DemoInstallSign in
Socket

no-svelte-ignore

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

no-svelte-ignore

A simple CLI that checks for the existence of "svelte-ignore" in a project. If found, it fails and lists all occurrences. In most occurrences, these are likely svelte ignore comments. Use the `exclude` argument to ignore occurrences in specific glob patte

latest
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

no-svelte-ignore

A simple CLI that checks for the existence of "svelte-ignore" in a project. If found, it fails and lists all occurrences. In most occurrences, these are likely svelte ignore comments. Use the exclude argument to ignore occurrences in specific glob patterns.

Great for keeping your code clean and free of "disable" comments; discourages deviations from your linting configuration.

Installation

You may not need to install it as a dependency (see "Usage" below), but if you do:

npm

npm install --save-dev no-svelte-ignore

yarn

yarn add -D no-svelte-ignore

Usage

npx no-svelte-ignore <dir> [--exclude=glob]

minimatch is used for glob patterns.

Examples

Checking your src directory, excluding JS config files:

npx no-svelte-ignore src --exclude="*.config.js"

License

MIT - see LICENSE

FAQs

Package last updated on 12 May 2023

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