Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
w12t-standard
Advanced tools
All the goodness of [standard/standard] with Webkollektivet's preferences sprinkled on top.
npm install w12t-standard
Importantly:
The easiest way to use JavaScript Standard Style to check your code is to install it globally as a Node command line program. To do so, simply run the following command in your terminal:
npm install w12t-standard -g
After you've done that you should be able to use the w12t-standard
program. The simplest use
case would be checking the style of all JavaScript files in the current working directory:
$ w12t-standard
Error: Use JavaScript Standard Style
lib/torrent.js:950:11: Expected '===' and instead saw '=='.
Specify what linter to use using by setting standard-engine in your package.json file:
{
"standard-engine": "w12t-standard"
}
package.json
{
"name": "my-cool-package",
"devDependencies": {
"w12t-standard": "*"
},
"scripts": {
"test": "w12t-standard && node my-tests.js"
}
}
npm test
$ npm test
Error: Code style check failed:
lib/torrent.js:950:11: Expected '===' and instead saw '=='.
To use a custom parser, install it from npm (example: npm install babel-eslint
) and add this to your package.json:
{
"w12t-standard": {
"parser": "babel-eslint"
}
}
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 w12t-standard.ignore
property to package.json
:
"w12t-standard": {
"ignore": [
"**/out/",
"/lib/select2/",
"tmp.js"
]
}
snazzy
If you want prettier output, just install the snazzy
package and pipe w12t-standard
to it:
$ w12t-standard --verbose | snazzy
See [standard/standard] for more information.
FAQs
Webkollektivet standard
The npm package w12t-standard receives a total of 0 weekly downloads. As such, w12t-standard popularity was classified as not popular.
We found that w12t-standard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.