Socket
Book a DemoInstallSign in
Socket

blyss

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blyss

A preset JavaScript linter that leaves style rules to be handled by Prettier.

11.0.1
latest
npmnpm
Version published
Maintainers
1
Created
Source

JavaScript Blyss Style

A preset linter without any style rules. Focus on the errors and let Prettier handle your styling.

Features:

Installation

$ npm install -g blyss

Usage

$ blyss
Error: Blyss Linter
  lib/index.js:15:11: Expected '===' and instead saw '=='.

What you might do if you're clever

  • Install blyss as a devDependency for your project by running npm install -D blyss
  • Add a line in your scripts field to use the linter
{
  "name": "my-cool-package",
  "devDependencies": {
    "blyss": "*"
  },
  "scripts": {
    "lint": "blyss"
  }
}
  • Run your script by doing npm run lint whenever you want to lint your code.

Make it look snazzy

If you want prettier output, just install the snazzy package and pipe blyss to it:

$ blyss --verbose | snazzy

Ignoring files

Just like in standard, The paths node_modules/**, *.min.js, bundle.js, coverage/**, hidden files/folders (beginning with .), and all patterns in a project's root .gitignore file are automatically excluded when looking for .js files to check.

Sometimes you need to ignore additional folders or specific minfied files. To do that, add a blyss.ignore property to package.json:

"blyss": {
  "ignore": [
    "**/out/",
    "/lib/select2/",
    "/lib/ckeditor/",
    "tmp.js"
  ]
}

Credits

Thanks to @feross and @flet for creating standard-engine which is what this project is built on.

FAQs

Package last updated on 20 Mar 2018

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.