Socket
Socket
Sign inDemoInstall

standard

Package Overview
Dependencies
242
Maintainers
16
Versions
183
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 12.0.1 to 17.1.0

.pre-commit-hooks.yaml

297

AUTHORS.md

@@ -5,131 +5,172 @@ # Authors

- Feross Aboukhadijeh (feross@feross.org)
- Jonny Buchanan (jonathan.buchanan@gmail.com)
- Dan Flettre (flettre@gmail.com)
- Brandon Horst (brandonhorst@gmail.com)
- Yoshua Wuyts (yoshuawuyts@gmail.com)
- Alexander Gugel (alexander.gugel@gmail.com)
- Nate Goldman (nnmgoldman@gmail.com)
- Max Ogden (max@maxogden.com)
- Ricardo Barros (ricardofbarros@hotmail.com)
- Yoshua Wuyts (i@yoshuawuyts.com)
- Shahar Or (mightyiampresence@gmail.com)
- Brent Burgoyne (bburgoyne@instructure.com)
- Santiago Gil (gil.educaciontdf@gmail.com)
- Vasiliy Loginevskiy (yeti-or@yandex-team.ru)
- Joe Lencioni (joe.lencioni@brigade.com)
- Leo Melin (leo.melin@eee.do)
- G. Kay Lee (balancetraveller+github@gmail.com)
- Lorenzo Villani (lorenzo@villani.me)
- Ahmad Nassri (ahmad@ahmadnassri.com)
- Mathias Buus (mathiasbuus@gmail.com)
- Alex Potsides (alex@achingbrain.net)
- Dan Lee (dlee@yammer-inc.com)
- ishamf (ishamf@users.noreply.github.com)
- Eric Zeng (leizeng@thoughtworks.com)
- Cesar Andreu (cesarandreu@gmail.com)
- Daniel Cousens (dcousens@users.noreply.github.com)
- Enikő Nagy (eenagy@users.noreply.github.com)
- Matthieu Prat (matthieuprat@gmail.com)
- Dany Shaanan (danyshaanan@gmail.com)
- Thomas Reggi (socialtr@gmail.com)
- Stephen Kubovic (skubovic@gmail.com)
- David Keijser (keijser@gmail.com)
- Nick Colley (nickcolley7@gmail.com)
- Florian Ebeling (mail@florianebeling.com)
- Rico Sta. Cruz (rstacruz@users.noreply.github.com)
- reggi (thomas@reggi.com)
- Machisté N. Quintana (mnquintana@users.noreply.github.com)
- Jiri Spac (capajj@gmail.com)
- Sonny Piers (sonny@fastmail.net)
- fscherwi (fscherwi@users.noreply.github.com)
- Gustav Nikolaj Olsen (gno@one.com)
- skorlir (skorlir@gmail.com)
- JP Richardson (jprichardson@gmail.com)
- chenxsan (chenxsan@users.noreply.github.com)
- Tara Z. Manicsic (tara@modulus.io)
- Jakub Elżbieciak (jelz@post.pl)
- Dale Jefferson (dale@dalejefferson.com)
- Paul Kernfeld (paulkernfeld@gmail.com)
- rajcoss (nagrajan@ciena.com)
- Joe Whitfield-Seed (joeseed86@gmail.com)
- botbotbot (tkroputa@gmail.com)
- Žiga Vidic (zigomir@gmail.com)
- Wade Simmons (wsimmons@gmail.com)
- Tushar Mathur (tusharmath@gmail.com)
- Joshua Jabbour (code@joshuajabbour.com)
- Zeke Sikelianos (zeke@sikelianos.com)
- darren higgins (darrhiggs@users.noreply.github.com)
- Joris Blaak (joris@label305.com)
- CodinCat (a55951234@gmail.com)
- Ruben Schmidmeister (ruben.schmidmeister@icloud.com)
- Aleksey Bobyr (alexsey.bobyr@lifestreet.com)
- David Moseley (davidmoseley@gmail.com)
- Timon van Spronsen (timonvanspronsen@outlook.com)
- Richard Littauer (richard.littauer@gmail.com)
- Morton Fox (github@qslw.com)
- Jason Kurian (JaKXz@users.noreply.github.com)
- Pau Ramon Revilla (masylum@gmail.com)
- Tim Oxley (secoif@gmail.com)
- Linus Unnebäck (linus@folkdatorn.se)
- sam (chenxsan@gmail.com)
- Robin Whittleton (robin.whittleton@digital.cabinet-office.gov.uk)
- Alex Moreno (alexmorenodealmeida@gmail.com)
- Ekaterina Prigara (ekaterina@prigara.com)
- Erik Müller (e.mueller@epages.com)
- Lukas Oppermann (oppermann.lukas@googlemail.com)
- Joshua P. Colvin (colvinj@ewashtenaw.org)
- David Lavieri (daviddlavier@gmail.com)
- Yanxi (blogbbs@gmail.com)
- Michael Cavalea (callmecavs@gmail.com)
- Joshua Colvin (joshua@joshuacolvin.net)
- despia (despia@users.noreply.github.com)
- Peter Jenkins (peterjenkins@users.noreply.github.com)
- nyuszika7h (nyuszika7h@openmailbox.org)
- Asoul Yang (azx754@gmail.com)
- Peter Dave Hello (hsu@peterdavehello.org)
- Wayou Liu (liuwayong@gmail.com)
- Thomas Watson (w@tson.dk)
- Pablo Varela (pablopunk@users.noreply.github.com)
- xiaoyu2er (zongyanqi@foxmail.com)
- devjin0617 (devjin0617@gmail.com)
- ehmicky (ehmicky@users.noreply.github.com)
- Stanislav Termosa (termosa.stanislav@gmail.com)
- yanxiaodi (929213769@qq.com)
- developerjin (devjin0617@gmail.com)
- Mark Peace (mark.peace@neotechnology.com)
- Alexandre Nicastro (kryndex@gmail.com)
- Ivan Ying (yyjazsf@live.cn)
- 薛定谔的猫 (hh_2013@foxmail.com)
- Robin (almigod0718@gmail.com)
- CafeLungo (CafeLungo@users.noreply.github.com)
- Antério Vieira (anteriovieira@gmail.com)
- Bret Comnes (bcomnes@gmail.com)
- Jared Reich (jaredreich@gmail.com)
- Igor Santos (igorsantos07@gmail.com)
- daper (david@daper.email)
- Sola (airsolakey@icloud.com)
- Lion Yang (lion@aosc.xyz)
- Joseph Frazier (1212jtraceur@gmail.com)
- Emanuele (my.burning@gmail.com)
- Jakob Krigovsky (jakob@krigovsky.com)
- Joe Boyle (joe.boyle@jibo.com)
- Adrian Trunzo (adrian@instoredoes.com)
- Pablo Varela (pablovarela182@gmail.com)
- Luan Vicente (hi@idlua.me)
- Tony Finn (tony@tonyfinn.com)
- greenkeeper[bot] (greenkeeper[bot]@users.noreply.github.com)
- tumobi (tumobi@163.com)
- Maarten Ackermans (maarten.ackermans@gmail.com)
- ★★ (งツ)ว ★★ (theaichholzer@gmail.com)
- Fahad Hossain (fa7ad@users.noreply.github.com)
- kaijun (cadenho@hotmail.com)
- Andre Sattler (andresattler.webdev@gmail.com)
- Lucas Baldassari (lucasbaldassari@gmail.com)
- WangJie (i@i8e.net)
- Theophilus Omoregbee (theo4u@ymail.com)
- Charlie Gerard (charlie.a.gerard@gmail.com)
- Christopher J. Brody (chris.brody@gmail.com)
- George Cheng (Gerhut@GMail.com)
- Feross Aboukhadijeh ([feross@feross.org](mailto:feross@feross.org))
- Jonny Buchanan ([jonathan.buchanan@gmail.com](mailto:jonathan.buchanan@gmail.com))
- Dan Flettre ([flettre@gmail.com](mailto:flettre@gmail.com))
- Brandon Horst ([brandonhorst@gmail.com](mailto:brandonhorst@gmail.com))
- Yoshua Wuyts ([yoshuawuyts@gmail.com](mailto:yoshuawuyts@gmail.com))
- Alexander Gugel ([alexander.gugel@gmail.com](mailto:alexander.gugel@gmail.com))
- Nate Goldman ([nnmgoldman@gmail.com](mailto:nnmgoldman@gmail.com))
- Max Ogden ([max@maxogden.com](mailto:max@maxogden.com))
- Ricardo Barros ([ricardofbarros@hotmail.com](mailto:ricardofbarros@hotmail.com))
- Yoshua Wuyts ([i@yoshuawuyts.com](mailto:i@yoshuawuyts.com))
- Shahar Or ([mightyiampresence@gmail.com](mailto:mightyiampresence@gmail.com))
- Brent Burgoyne ([bburgoyne@instructure.com](mailto:bburgoyne@instructure.com))
- Santiago Gil ([gil.educaciontdf@gmail.com](mailto:gil.educaciontdf@gmail.com))
- Vasiliy Loginevskiy ([yeti-or@yandex-team.ru](mailto:yeti-or@yandex-team.ru))
- Joe Lencioni ([joe.lencioni@brigade.com](mailto:joe.lencioni@brigade.com))
- Leo Melin ([leo.melin@eee.do](mailto:leo.melin@eee.do))
- G. Kay Lee ([balancetraveller+github@gmail.com](mailto:balancetraveller+github@gmail.com))
- Lorenzo Villani ([lorenzo@villani.me](mailto:lorenzo@villani.me))
- Ahmad Nassri ([ahmad@ahmadnassri.com](mailto:ahmad@ahmadnassri.com))
- Mathias Buus ([mathiasbuus@gmail.com](mailto:mathiasbuus@gmail.com))
- Alex Potsides ([alex@achingbrain.net](mailto:alex@achingbrain.net))
- Dan Lee ([dlee@yammer-inc.com](mailto:dlee@yammer-inc.com))
- ishamf ([ishamf@users.noreply.github.com](mailto:ishamf@users.noreply.github.com))
- Eric Zeng ([leizeng@thoughtworks.com](mailto:leizeng@thoughtworks.com))
- Cesar Andreu ([cesarandreu@gmail.com](mailto:cesarandreu@gmail.com))
- Daniel Cousens ([dcousens@users.noreply.github.com](mailto:dcousens@users.noreply.github.com))
- Enikő Nagy ([eenagy@users.noreply.github.com](mailto:eenagy@users.noreply.github.com))
- Matthieu Prat ([matthieuprat@gmail.com](mailto:matthieuprat@gmail.com))
- Dany Shaanan ([danyshaanan@gmail.com](mailto:danyshaanan@gmail.com))
- Thomas Reggi ([socialtr@gmail.com](mailto:socialtr@gmail.com))
- Stephen Kubovic ([skubovic@gmail.com](mailto:skubovic@gmail.com))
- David Keijser ([keijser@gmail.com](mailto:keijser@gmail.com))
- Nick Colley ([nickcolley7@gmail.com](mailto:nickcolley7@gmail.com))
- Florian Ebeling ([mail@florianebeling.com](mailto:mail@florianebeling.com))
- Rico Sta. Cruz ([rstacruz@users.noreply.github.com](mailto:rstacruz@users.noreply.github.com))
- reggi ([thomas@reggi.com](mailto:thomas@reggi.com))
- Machisté N. Quintana ([mnquintana@users.noreply.github.com](mailto:mnquintana@users.noreply.github.com))
- Jiri Spac ([capajj@gmail.com](mailto:capajj@gmail.com))
- Sonny Piers ([sonny@fastmail.net](mailto:sonny@fastmail.net))
- fscherwi ([fscherwi@users.noreply.github.com](mailto:fscherwi@users.noreply.github.com))
- Gustav Nikolaj Olsen ([gno@one.com](mailto:gno@one.com))
- skorlir ([skorlir@gmail.com](mailto:skorlir@gmail.com))
- JP Richardson ([jprichardson@gmail.com](mailto:jprichardson@gmail.com))
- chenxsan ([chenxsan@users.noreply.github.com](mailto:chenxsan@users.noreply.github.com))
- Tara Z. Manicsic ([tara@modulus.io](mailto:tara@modulus.io))
- Jakub Elżbieciak ([jelz@post.pl](mailto:jelz@post.pl))
- Dale Jefferson ([dale@dalejefferson.com](mailto:dale@dalejefferson.com))
- Paul Kernfeld ([paulkernfeld@gmail.com](mailto:paulkernfeld@gmail.com))
- rajcoss ([nagrajan@ciena.com](mailto:nagrajan@ciena.com))
- Joe Whitfield-Seed ([joeseed86@gmail.com](mailto:joeseed86@gmail.com))
- botbotbot ([tkroputa@gmail.com](mailto:tkroputa@gmail.com))
- Žiga Vidic ([zigomir@gmail.com](mailto:zigomir@gmail.com))
- Wade Simmons ([wsimmons@gmail.com](mailto:wsimmons@gmail.com))
- Tushar Mathur ([tusharmath@gmail.com](mailto:tusharmath@gmail.com))
- Joshua Jabbour ([code@joshuajabbour.com](mailto:code@joshuajabbour.com))
- Zeke Sikelianos ([zeke@sikelianos.com](mailto:zeke@sikelianos.com))
- darren higgins ([darrhiggs@users.noreply.github.com](mailto:darrhiggs@users.noreply.github.com))
- Joris Blaak ([joris@label305.com](mailto:joris@label305.com))
- CodinCat ([a55951234@gmail.com](mailto:a55951234@gmail.com))
- Ruben Schmidmeister ([ruben.schmidmeister@icloud.com](mailto:ruben.schmidmeister@icloud.com))
- Aleksey Bobyr ([alexsey.bobyr@lifestreet.com](mailto:alexsey.bobyr@lifestreet.com))
- David Moseley ([davidmoseley@gmail.com](mailto:davidmoseley@gmail.com))
- Timon van Spronsen ([timonvanspronsen@outlook.com](mailto:timonvanspronsen@outlook.com))
- Richard Littauer ([richard.littauer@gmail.com](mailto:richard.littauer@gmail.com))
- Morton Fox ([github@qslw.com](mailto:github@qslw.com))
- Jason Kurian ([JaKXz@users.noreply.github.com](mailto:JaKXz@users.noreply.github.com))
- Pau Ramon Revilla ([masylum@gmail.com](mailto:masylum@gmail.com))
- Tim Oxley ([secoif@gmail.com](mailto:secoif@gmail.com))
- Linus Unnebäck ([linus@folkdatorn.se](mailto:linus@folkdatorn.se))
- sam ([chenxsan@gmail.com](mailto:chenxsan@gmail.com))
- Robin Whittleton ([robin.whittleton@digital.cabinet-office.gov.uk](mailto:robin.whittleton@digital.cabinet-office.gov.uk))
- Alex Moreno ([alexmorenodealmeida@gmail.com](mailto:alexmorenodealmeida@gmail.com))
- Ekaterina Prigara ([ekaterina@prigara.com](mailto:ekaterina@prigara.com))
- Erik Müller ([e.mueller@epages.com](mailto:e.mueller@epages.com))
- Lukas Oppermann ([oppermann.lukas@googlemail.com](mailto:oppermann.lukas@googlemail.com))
- Joshua P. Colvin ([colvinj@ewashtenaw.org](mailto:colvinj@ewashtenaw.org))
- David Lavieri ([daviddlavier@gmail.com](mailto:daviddlavier@gmail.com))
- Yanxi ([blogbbs@gmail.com](mailto:blogbbs@gmail.com))
- Michael Cavalea ([callmecavs@gmail.com](mailto:callmecavs@gmail.com))
- Joshua Colvin ([joshua@joshuacolvin.net](mailto:joshua@joshuacolvin.net))
- despia ([despia@users.noreply.github.com](mailto:despia@users.noreply.github.com))
- Peter Jenkins ([peterjenkins@users.noreply.github.com](mailto:peterjenkins@users.noreply.github.com))
- nyuszika7h ([nyuszika7h@openmailbox.org](mailto:nyuszika7h@openmailbox.org))
- Asoul Yang ([azx754@gmail.com](mailto:azx754@gmail.com))
- Peter Dave Hello ([hsu@peterdavehello.org](mailto:hsu@peterdavehello.org))
- Wayou Liu ([liuwayong@gmail.com](mailto:liuwayong@gmail.com))
- Thomas Watson ([w@tson.dk](mailto:w@tson.dk))
- Pablo Varela ([pablopunk@users.noreply.github.com](mailto:pablopunk@users.noreply.github.com))
- xiaoyu2er ([zongyanqi@foxmail.com](mailto:zongyanqi@foxmail.com))
- devjin0617 ([devjin0617@gmail.com](mailto:devjin0617@gmail.com))
- ehmicky ([ehmicky@users.noreply.github.com](mailto:ehmicky@users.noreply.github.com))
- Stanislav Termosa ([termosa.stanislav@gmail.com](mailto:termosa.stanislav@gmail.com))
- yanxiaodi ([929213769@qq.com](mailto:929213769@qq.com))
- developerjin ([devjin0617@gmail.com](mailto:devjin0617@gmail.com))
- Mark Peace ([mark.peace@neotechnology.com](mailto:mark.peace@neotechnology.com))
- Alexandre Nicastro ([kryndex@gmail.com](mailto:kryndex@gmail.com))
- Ivan Ying ([yyjazsf@live.cn](mailto:yyjazsf@live.cn))
- 薛定谔的猫 ([hh_2013@foxmail.com](mailto:hh_2013@foxmail.com))
- Robin ([almigod0718@gmail.com](mailto:almigod0718@gmail.com))
- CafeLungo ([CafeLungo@users.noreply.github.com](mailto:CafeLungo@users.noreply.github.com))
- Antério Vieira ([anteriovieira@gmail.com](mailto:anteriovieira@gmail.com))
- Bret Comnes ([bcomnes@gmail.com](mailto:bcomnes@gmail.com))
- Jared Reich ([jaredreich@gmail.com](mailto:jaredreich@gmail.com))
- Igor Santos ([igorsantos07@gmail.com](mailto:igorsantos07@gmail.com))
- daper ([david@daper.email](mailto:david@daper.email))
- Sola ([airsolakey@icloud.com](mailto:airsolakey@icloud.com))
- Lion Yang ([lion@aosc.xyz](mailto:lion@aosc.xyz))
- Joseph Frazier ([1212jtraceur@gmail.com](mailto:1212jtraceur@gmail.com))
- Emanuele ([my.burning@gmail.com](mailto:my.burning@gmail.com))
- Jakob Krigovsky ([jakob@krigovsky.com](mailto:jakob@krigovsky.com))
- Joe Boyle ([joe.boyle@jibo.com](mailto:joe.boyle@jibo.com))
- Adrian Trunzo ([adrian@instoredoes.com](mailto:adrian@instoredoes.com))
- Pablo Varela ([pablovarela182@gmail.com](mailto:pablovarela182@gmail.com))
- Luan Vicente ([hi@idlua.me](mailto:hi@idlua.me))
- Tony Finn ([tony@tonyfinn.com](mailto:tony@tonyfinn.com))
- tumobi ([tumobi@163.com](mailto:tumobi@163.com))
- Maarten Ackermans ([maarten.ackermans@gmail.com](mailto:maarten.ackermans@gmail.com))
- ★★ (งツ)ว ★★ ([theaichholzer@gmail.com](mailto:theaichholzer@gmail.com))
- Fahad Hossain ([fa7ad@users.noreply.github.com](mailto:fa7ad@users.noreply.github.com))
- kaijun ([cadenho@hotmail.com](mailto:cadenho@hotmail.com))
- Andre Sattler ([andresattler.webdev@gmail.com](mailto:andresattler.webdev@gmail.com))
- Lucas Baldassari ([lucasbaldassari@gmail.com](mailto:lucasbaldassari@gmail.com))
- WangJie ([i@i8e.net](mailto:i@i8e.net))
- Theophilus Omoregbee ([theo4u@ymail.com](mailto:theo4u@ymail.com))
- Charlie Gerard ([charlie.a.gerard@gmail.com](mailto:charlie.a.gerard@gmail.com))
- Christopher J. Brody ([chris.brody@gmail.com](mailto:chris.brody@gmail.com))
- George Cheng ([Gerhut@GMail.com](mailto:Gerhut@GMail.com))
- dangen ([23185799+dangen-effy@users.noreply.github.com](mailto:23185799+dangen-effy@users.noreply.github.com))
- Munieru ([20086673+munierujp@users.noreply.github.com](mailto:20086673+munierujp@users.noreply.github.com))
- Justin ([jus.russell@gmail.com](mailto:jus.russell@gmail.com))
- Austin Orth ([aorth@niche.com](mailto:aorth@niche.com))
- Chris Brody ([chris.brody@gmail.com](mailto:chris.brody@gmail.com))
- kohashi ([hako584@gmail.com](mailto:hako584@gmail.com))
- tomastrg ([tomastrg22@gmail.com](mailto:tomastrg22@gmail.com))
- aaronhong ([aa.hong@gmail.com](mailto:aa.hong@gmail.com))
- Amabel ([luoweibinb@gmail.com](mailto:luoweibinb@gmail.com))
- Elad Chen ([eladchen@gmail.com](mailto:eladchen@gmail.com))
- Dave Carlson ([davecarlson@users.noreply.github.com](mailto:davecarlson@users.noreply.github.com))
- epixian ([38962121+epixian@users.noreply.github.com](mailto:38962121+epixian@users.noreply.github.com))
- Yuriy Dybskiy ([yuriy@dybskiy.com](mailto:yuriy@dybskiy.com))
- MarvinJWendt ([github@marvinjwendt.com](mailto:github@marvinjwendt.com))
- LitoMore ([litomore@gmail.com](mailto:litomore@gmail.com))
- Feross ([feross@feross.org](mailto:feross@feross.org))
- Vincent Weevers ([mail@vincentweevers.nl](mailto:mail@vincentweevers.nl))
- Shahar Or (mightyiam) ([mightyiampresence@gmail.com](mailto:mightyiampresence@gmail.com))
- にしくま ([graphic.extra005@gmail.com](mailto:graphic.extra005@gmail.com))
- Eric Berry ([coderberry@gmail.com](mailto:coderberry@gmail.com))
- Abdullah Alansari ([ahimta@gmail.com](mailto:ahimta@gmail.com))
- Adam Jones ([jones_adam@rocketmail.com](mailto:jones_adam@rocketmail.com))
- zhangyu ([zhangyu29@asiainfo.com](mailto:zhangyu29@asiainfo.com))
- Shahar Dawn Or ([mightyiampresence@gmail.com](mailto:mightyiampresence@gmail.com))
- Joshua Goran ([35858093+joshuagoran@users.noreply.github.com](mailto:35858093+joshuagoran@users.noreply.github.com))
- HCLonely ([h1606051253@gmail.com](mailto:h1606051253@gmail.com))
- Italo ([italoaurelior@gmail.com](mailto:italoaurelior@gmail.com))
- Vrq ([januszveiro@gmail.com](mailto:januszveiro@gmail.com))
- 王刚 ([wg0121@outlook.com](mailto:wg0121@outlook.com))
- Javier Mendoza ([37485620+javiermendozain@users.noreply.github.com](mailto:37485620+javiermendozain@users.noreply.github.com))
- Ciffelia ([mc.prince.0203@gmail.com](mailto:mc.prince.0203@gmail.com))
- Nacho Caiafa ([nachokai@outlook.com](mailto:nachokai@outlook.com))
- Tom Clark ([tom@octue.com](mailto:tom@octue.com))
- Septiana Yoga ([septianayoga30@gmail.com](mailto:septianayoga30@gmail.com))
- logustra ([logustra@outlook.com](mailto:logustra@outlook.com))
- Kid ([44045911+kidonng@users.noreply.github.com](mailto:44045911+kidonng@users.noreply.github.com))
- Aki ([71239005+AkiaCode@users.noreply.github.com](mailto:71239005+AkiaCode@users.noreply.github.com))
- HonkingGoose ([34918129+HonkingGoose@users.noreply.github.com](mailto:34918129+HonkingGoose@users.noreply.github.com))
- Alex Grover ([hello@alexgrover.me](mailto:hello@alexgrover.me))
- Todd Bluhm ([toddbluhm@gmail.com](mailto:toddbluhm@gmail.com))
- alanclarke ([alan@qubit.com](mailto:alan@qubit.com))
- Csaba Maulis ([csaba@om4.com.au](mailto:csaba@om4.com.au))
#### Generated by tools/update-authors.sh.

@@ -1,4 +0,5 @@

var Linter = require('standard-engine').linter
var opts = require('./options')
/*! standard. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
import { StandardEngine } from 'standard-engine'
import options from './lib/options.js'
module.exports = new Linter(opts)
export default new StandardEngine(options)
{
"name": "standard",
"description": "JavaScript Standard Style",
"version": "12.0.1",
"version": "17.1.0",
"author": {
"name": "Feross Aboukhadijeh",
"email": "feross@feross.org",
"name": "Feross Aboukhadijeh",
"url": "https://feross.org/"
"url": "https://feross.org"
},
"bin": "./bin/cmd.js",
"bin": {
"standard": "bin/cmd.cjs"
},
"type": "module",
"bugs": {

@@ -15,24 +18,23 @@ "url": "https://github.com/standard/standard/issues"

"dependencies": {
"eslint": "~5.4.0",
"eslint-config-standard": "12.0.0",
"eslint-config-standard-jsx": "6.0.2",
"eslint-plugin-import": "~2.14.0",
"eslint-plugin-node": "~7.0.1",
"eslint-plugin-promise": "~4.0.0",
"eslint-plugin-react": "~7.11.1",
"eslint-plugin-standard": "~4.0.0",
"standard-engine": "~9.0.0"
"eslint": "^8.41.0",
"eslint-config-standard": "17.1.0",
"eslint-config-standard-jsx": "^11.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.32.2",
"standard-engine": "^15.0.0",
"version-guard": "^1.1.1"
},
"devDependencies": {
"babel-eslint": "^9.0.0",
"cross-spawn": "^6.0.3",
"eslint-index": "^1.3.0",
"minimist": "^1.2.0",
"mkdirp": "^0.5.1",
"run-parallel-limit": "^1.0.3",
"standard-packages": "^3.4.0",
"tape": "^4.6.0"
"cross-spawn": "^7.0.3",
"hallmark": "^4.2.0",
"minimist": "^1.2.8",
"run-parallel-limit": "^1.1.0",
"run-series": "^1.1.9",
"simple-get": "^4.0.1",
"tape": "^5.6.3"
},
"engines": {
"node": ">=4"
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
},

@@ -72,8 +74,21 @@ "homepage": "https://standardjs.com",

"scripts": {
"show-rules": "eslint-index eslintrc.json",
"show-rules-disabled": "eslint-index eslintrc.json --status omitted off",
"show-summary": "eslint-index eslintrc.json --format table",
"test": "./bin/cmd.js --verbose && tape test/*.js",
"update-authors": "./tools/update-authors.sh"
}
"test": "npm run test-internal && npm run test-external",
"test-internal": "./bin/cmd.cjs --verbose && tape test/*.js",
"test-external": "tape test/external/*.js",
"update-authors": "./tools/update-authors.sh && hallmark --fix AUTHORS.md"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
]
}

@@ -10,3 +10,6 @@ <h1 align="center">

<p align="center">
<a href="https://travis-ci.org/standard/standard"><img src="https://img.shields.io/travis/standard/standard/master.svg" alt="travis"></a>
<a href="https://discord.gg/ZegqCBr"><img src="https://img.shields.io/discord/612704110008991783" alt="discord"></a>
<a href="https://github.com/standard/standard/actions/workflows/test-external.yml"><img src="https://github.com/standard/standard/actions/workflows/test-external.yml/badge.svg?branch=master" alt="External tests"></a>
<a href="https://github.com/standard/standard/actions/workflows/test-internal.yml"><img src="https://github.com/standard/standard/actions/workflows/test-internal.yml/badge.svg?branch=master" alt="Internal tests"></a>
<a href="https://github.com/standard/standard/actions?query=workflow%3A%22Old+test%22"><img src="https://github.com/standard/standard/workflows/Old%20test/badge.svg" alt="status badge old Node test"></a>
<a href="https://www.npmjs.com/package/standard"><img src="https://img.shields.io/npm/v/standard.svg" alt="npm version"></a>

@@ -17,2 +20,6 @@ <a href="https://www.npmjs.com/package/eslint-config-standard"><img src="https://img.shields.io/npm/dm/eslint-config-standard.svg" alt="npm downloads"></a>

<h5 align="center">
Sponsored by&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://socket.dev"><img src="https://cdn.rawgit.com/standard/standard/master/docs/logos/socket.png" alt="Socket – Supply Chain Dependency Security for JavaScript and npm" height=50 valign="middle"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="https://wormhole.app/?utm_medium=sponsorship&utm_source=standard&utm_campaign=feross"><img src="https://cdn.rawgit.com/standard/standard/master/docs/logos/wormhole.png" alt="Wormhole" height=50 valign="middle"></a>
</h5>
<p align="center">

@@ -22,3 +29,5 @@ <a href="/docs/README-en.md">English</a> •

<a href="/docs/README-fr.md">Français</a> •
<a href="/docs/README-id.md">Bahasa Indonesia</a> •
<a href="/docs/README-iteu.md">Italiano (Italian)</a> •
<a href="/docs/README-ja.md">日本語 (Japanese)</a> •
<a href="/docs/README-kokr.md">한국어 (Korean)</a> •

@@ -30,7 +39,2 @@ <a href="/docs/README-ptbr.md">Português (Brasil)</a> •

<p align="center">
<strong>Sponsored by</strong>
<a href="https://stdlib.com" target='_blank'><img src='https://feross.org/images/supporters/stdlib.png' width=150></a>
</p>
## JavaScript style guide, linter, and formatter

@@ -40,4 +44,4 @@

- **No configuration.** The easiest way to enforce consistent style in your
project. Just drop it in.
- **No configuration.** The easiest way to enforce code quality in your
project. No decisions to make. No `.eslintrc` files to manage. It just works.
- **Automatically format code.** Just run `standard --fix` and say goodbye to

@@ -48,45 +52,4 @@ messy or inconsistent code.

No decisions to make. No `.eslintrc`, `.jshintrc`, or `.jscsrc` files to manage. It just
works.
Give it a try by running `npx standard --fix` right now!
Install with:
```
npm install standard --save-dev
```
### Open Source Supporters
<a href="https://nsrc.io/oss-feross" target='_blank'><img src='https://feross.org/images/supporters/nodesource.png' width=125></a>
## StandardJS — The Rules
- **2 spaces** – for indentation
- **Single quotes for strings** – except to avoid escaping
- **No unused variables** – this one catches *tons* of bugs!
- **No semicolons** – [It's][1] [fine.][2] [Really!][3]
- [More details][4]
- **Space after keywords** `if (condition) { ... }`
- **Space after function name** `function name (arg) { ... }`
- Always use `===` instead of `==` – but `obj == null` is allowed to check `null || undefined`.
- Always handle the node.js `err` function parameter
- Declare browser globals with `/* global */` comment at top of file
- Prevents accidental use of vaguely-named browser globals like `open`, `length`,
`event`, and `name`.
- Example: `/* global alert, prompt */`
- Exceptions are: `window`, `document`, and `navigator`
- **And [more goodness][5]** – *give `standard` a try today!*
[1]: http://blog.izs.me/post/2353458699/an-open-letter-to-javascript-leaders-regarding
[2]: http://inimino.org/~inimino/blog/javascript_semicolons
[3]: https://www.youtube.com/watch?v=gsfbh17Ax9I
[4]: /RULES.md#semicolons
[5]: /RULES.md#javascript-standard-style
To get a better idea, take a look at
[a sample file](https://github.com/expressjs/body-parser/blob/master/index.js) written
in JavaScript Standard Style. Or, check out one of the
[thousands of projects](https://raw.githubusercontent.com/standard/standard-packages/master/all.json)
that use `standard`!
## Table of Contents

@@ -107,14 +70,14 @@

- [How do I ignore files?](#how-do-i-ignore-files)
- [How do I hide a certain warning?](#how-do-i-hide-a-certain-warning)
- [How do I disable a rule?](#how-do-i-disable-a-rule)
- [I use a library that pollutes the global namespace. How do I prevent "variable is not defined" errors?](#i-use-a-library-that-pollutes-the-global-namespace-how-do-i-prevent-variable-is-not-defined-errors)
- [How do I use experimental JavaScript (ES Next) features?](#how-do-i-use-experimental-javascript-es-next-features)
- [Can I use a JavaScript language variant, like Flow or TypeScript?](#can-i-use-a-javascript-language-variant-like-flow-or-typescript)
- [What about Mocha, Jasmine, QUnit, etc?](#what-about-mocha-jasmine-qunit-etc)
- [What about Web Workers?](#what-about-web-workers)
- [What about Mocha, Jest, Jasmine, QUnit, etc?](#what-about-mocha-jest-jasmine-qunit-etc)
- [What about Web Workers and Service Workers?](#what-about-web-workers-and-service-workers)
- [What is the difference between warnings and errors?](#what-is-the-difference-between-warnings-and-errors)
- [Can I check code inside of Markdown or HTML files?](#can-i-check-code-inside-of-markdown-or-html-files)
- [Is there a Git `pre-commit` hook?](#is-there-a-git-pre-commit-hook)
- [How do I make the output all colorful and *pretty*?](#how-do-i-make-the-output-all-colorful-and-pretty)
- [How do I make the output all colorful and pretty?](#how-do-i-make-the-output-all-colorful-and-pretty)
- [Is there a Node.js API?](#is-there-a-nodejs-api)
- [How do I contribute to `standard`?](#how-do-i-contribute-to-standard)
- [License](#license)
- [How do I contribute to StandardJS?](#how-do-i-contribute-to-standardjs)

@@ -150,2 +113,8 @@ ## Install

If you've installed `standard` locally, run with `npx` instead:
```bash
$ npx standard
```
You can optionally pass in a directory (or directories) using the glob pattern. Be

@@ -166,21 +135,21 @@ sure to quote paths containing glob patterns so that they are expanded by

```json
{
"name": "my-cool-package",
"devDependencies": {
"standard": "*"
},
"scripts": {
"test": "standard && node my-tests.js"
}
}
```
```json
{
"name": "my-cool-package",
"devDependencies": {
"standard": "*"
},
"scripts": {
"test": "standard && node my-tests.js"
}
}
```
2. Style is checked automatically when you run `npm test`
```bash
$ npm test
Error: Use JavaScript Standard Style
lib/torrent.js:950:11: Expected '===' and instead saw '=='.
```
```bash
$ npm test
Error: Use JavaScript Standard Style
lib/torrent.js:950:11: Expected '===' and instead saw '=='.
```

@@ -217,25 +186,45 @@ 3. Never give style feedback on a pull request again!

Lots of folks!
[<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/nodejs.png>](https://nodejs.org) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/npm.png>](https://www.npmjs.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/github.png>](https://github.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/wormhole.png>](https://wormhole.app) |
|---|---|---|---|
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/npm.png>](https://www.npmjs.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/github.png>](https://github.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/elastic.png>](https://www.elastic.co) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/nearform.png>](http://www.nearform.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/brave.png>](https://www.brave.com) |
|---|---|---|---|---|
[<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/express.png>](http://expressjs.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/electron.png>](http://electron.atom.io) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/nuxtjs.png>](https://nuxtjs.org/) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/elastic.png>](https://www.elastic.co) |
|---|---|---|---|
| [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/zeit.png>](https://zeit.co) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/zendesk.png>](https://www.zendesk.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/mongodb.jpg>](https://www.mongodb.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/typeform.png>](https://www.typeform.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/gov-uk.png>](https://gds.blog.gov.uk) |
|---|---|---|---|---|
| [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/mongodb.jpg>](https://www.mongodb.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/zendesk.png>](https://www.zendesk.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/brave.png>](https://www.brave.com) | [<img width=190 src=https://assets.vercel.com/image/upload/v1621541666/front/assets/logotype-black-on-white.png>](https://vercel.com) |
|---|---|---|---|
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/express.png>](http://expressjs.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/webtorrent.png>](https://webtorrent.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/ipfs.png>](https://ipfs.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/dat.png>](https://datproject.org) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/bitcoinjs.png>](https://bitcoinjs.org) |
|---|---|---|---|---|
| [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/socket.png>](https://socket.dev) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/nearform.png>](http://www.nearform.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/typeform.png>](https://www.typeform.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/gov-uk.png>](https://gds.blog.gov.uk) |
|---|---|---|---|
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/atom.png>](https://atom.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/electron.png>](http://electron.atom.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/voltra.png>](https://voltra.co) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/treasuredata.png>](https://www.treasuredata.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/clevertech.png>](https://clevertech.biz) |
|---|---|---|---|---|
| [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/heroku.png>](https://www.heroku.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/saucelabs.png>](https://saucelabs.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/automattic.png>](https://automattic.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/godaddy.png>](https://www.godaddy.com) |
|---|---|---|---|
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/studynotes.jpg>](https://www.apstudynotes.org) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/optiopay.png>](https://www.optiopay.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/jaguar-landrover.png>](https://www.jlrtechincubator.com/jlrti/) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/bustle.jpg>](https://www.bustle.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/zentrick.png>](https://www.zentrick.com) |
|---|---|---|---|---|
| [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/webtorrent.png>](https://webtorrent.io) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/ipfs.png>](https://ipfs.io) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/dat.png>](https://datproject.org) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/bitcoinjs.png>](https://bitcoinjs.org) |
|---|---|---|---|
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/nodesource.png>](https://nodesource.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/greenkeeper.png>](https://greenkeeper.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/karma.png>](https://karma-runner.github.io) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/taser.png>](https://www.taser.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/neo4j.png>](https://www.neo4j.com) |
|---|---|---|---|---|
| [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/voltra.png>](https://voltra.co) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/treasuredata.png>](https://www.treasuredata.com) | [<img alt="Free MIDIs, MIDI file downloads" width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/bitmidi.png>](https://bitmidi.com) | [<img width=190 alt="College essays, AP notes" src=https://cdn.rawgit.com/standard/standard/master/docs/logos/studynotes.jpg>](https://www.apstudynotes.org) |
|---|---|---|---|
[<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/rentograph.png>](https://rentograph.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/eaze.png>](https://www.eaze.com) | [<img width=150 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/ctrl-alt-deseat.png>](https://www.ctrlaltdeseat.com) | | |
|---|---|---|---|---|
| [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/optiopay.png>](https://www.optiopay.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/jaguar-landrover.png>](https://www.jlrtechincubator.com/jlrti/) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/bustle.jpg>](https://www.bustle.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/zentrick.png>](https://www.zentrick.com) |
|---|---|---|---|
| [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/greenkeeper.png>](https://greenkeeper.io) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/karma.png>](https://karma-runner.github.io) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/taser.png>](https://www.taser.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/neo4j.png>](https://www.neo4j.com) |
|---|---|---|---|
| [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/rentograph.png>](https://rentograph.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/eaze.png>](https://www.eaze.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/ctrl-alt-deseat.png>](https://www.ctrlaltdeseat.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/clevertech.png>](https://clevertech.biz) |
|---|---|---|---|
| [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/aragon.png>](https://aragon.org) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/flowsent.png>](https://www.flowsent.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/puma-browser.png>](https://www.pumabrowser.com/) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/webstorm.png>](https://www.jetbrains.com/webstorm/) |
|---|---|---|---|
| [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/fastify.png>](https://www.fastify.io) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/scuttlebutt.png>](https://www.scuttlebutt.nz) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/solid.png>](https://solid.inrupt.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/grab.png>](https://www.grab.com) |
|---|---|---|---|
| [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/jublia.png>](https://jublia.com/) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/atom.png>](https://atom.io) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/peek.png>](https://www.peek.com) | [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/dotenv.png>](https://www.dotenv.org) |
|---|---|---|---|
| [<img width=190 src=https://cdn.rawgit.com/standard/standard/master/docs/logos/nodesource.png>](https://nodesource.com) | Your Logo Here | | |
|---|---|---|---|
In addition to companies, many community members use `standard` on packages that

@@ -280,13 +269,13 @@ are [too numerous](https://raw.githubusercontent.com/standard/standard-packages/master/all.json)

[atom-4]: https://atom.io/packages/linter-js-standard-engine
[atom-5]: https://github.com/Flet/standard-engine
[atom-5]: https://github.com/standard/standard-engine
### Visual Studio Code
Install **[vscode-standardjs][vscode-1]**. (Includes support for automatic formatting.)
Install **[vscode-standard][vscode-1]**. (Includes support for automatic formatting.)
For JS snippets, install: **[vscode-standardjs-snippets][vscode-2]**. For React snippets, install **[vscode-react-standard][vscode-3]**.
[vscode-1]: https://marketplace.visualstudio.com/items/chenxsan.vscode-standardjs
[vscode-1]: https://marketplace.visualstudio.com/items?itemName=standard.vscode-standard
[vscode-2]: https://marketplace.visualstudio.com/items?itemName=capaj.vscode-standardjs-snippets
[vscode-3]: https://marketplace.visualstudio.com/items/TimonVS.ReactSnippetsStandard
[vscode-3]: https://marketplace.visualstudio.com/items?itemName=TimonVS.ReactSnippetsStandard

@@ -367,2 +356,6 @@ ### Vim

There are a couple of similar packages for anyone who does not want to completely accept `standard`:
- [semistandard](https://github.com/standard/semistandard) - standard, with semicolons
- [standardx](https://github.com/standard/standardx) - standard, with custom tweaks
If you really want to configure hundreds of ESLint rules individually, you can

@@ -378,3 +371,3 @@ always use `eslint` directly with

[bikeshedding]: https://www.freebsd.org/doc/en/books/faq/misc.html#bikeshed-painting
[bikeshedding]: https://docs.freebsd.org/en/books/faq/#bikeshed-painting

@@ -406,3 +399,3 @@ ## But this isn't a real web standard!

Certain paths (`node_modules/`, `coverage/`, `vendor/`, `*.min.js`, `bundle.js`,
Certain paths (`node_modules/`, `coverage/`, `vendor/`, `*.min.js`,
and files/folders that begin with `.` like `.git/`) are automatically ignored.

@@ -426,18 +419,10 @@

## How do I hide a certain warning?
## How do I disable a rule?
In rare cases, you'll need to break a rule and hide the warning generated by
In rare cases, you'll need to break a rule and hide the error generated by
`standard`.
JavaScript Standard Style uses [ESLint](http://eslint.org/) under-the-hood and
you can hide warnings as you normally would if you used ESLint directly.
you can hide errors as you normally would if you used ESLint directly.
To get verbose output (so you can find the particular rule name to ignore), run:
```bash
$ standard --verbose
Error: Use JavaScript Standard Style
routes/error.js:20:36: 'file' was used before it was defined. (no-use-before-define)
```
Disable **all rules** on a specific line:

@@ -511,3 +496,3 @@

```bash
npm install babel-eslint --save-dev
npm install @babel/eslint-parser --save-dev
```

@@ -518,3 +503,3 @@

```bash
$ standard --parser babel-eslint
$ standard --parser @babel/eslint-parser
```

@@ -527,3 +512,3 @@

"standard": {
"parser": "babel-eslint"
"parser": "@babel/eslint-parser"
}

@@ -533,6 +518,2 @@ }

If `standard` is installed globally (i.e. `npm install standard --global`), then
be sure to install `babel-eslint` globally as well, with
`npm install babel-eslint --global`.
## Can I use a JavaScript language variant, like Flow or TypeScript?

@@ -543,19 +524,24 @@

To support JavaScript language variants, `standard` supports specifying a custom JavaScript
For TypeScript, an official variant `ts-standard` is supported and maintained that provides a very
similar experience to `standard`.
For other JavaScript language variants, `standard` supports specifying a custom JavaScript
parser as well as an ESLint plugin to handle the changed syntax. Before using a JavaScript
language variant, consider whether the added complexity is worth it.
### Flow
### TypeScript
To use Flow, you need to run `standard` with `babel-eslint` as the parser and
`eslint-plugin-flowtype` as a plugin.
[`ts-standard`](https://github.com/standard/ts-standard) is the officially supported variant for
TypeScript. `ts-standard` supports all the same rules and options as `standard` and includes
additional TypeScript specific rules. `ts-standard` will even lint regular `javascript` files
by setting the configuration in `tsconfig.json`.
```bash
npm install babel-eslint eslint-plugin-flowtype --save-dev
npm install ts-standard --save-dev
```
Then run:
Then run (where `tsconfig.json` is located in the working directory):
```bash
$ standard --parser babel-eslint --plugin flowtype
$ ts-standard
```

@@ -567,5 +553,4 @@

{
"standard": {
"parser": "babel-eslint",
"plugins": [ "flowtype" ]
"ts-standard": {
"project": "./tsconfig.json"
}

@@ -575,16 +560,15 @@ }

*Note: `plugin` and `plugins` are equivalent.*
*Note: To include additional files in linting such as test files, create a `tsconfig.eslint.json` file to use instead.*
If `standard` is installed globally (i.e. `npm install standard --global`), then
be sure to install `babel-eslint` and `eslint-plugin-flowtype` globally as well, with
`npm install babel-eslint eslint-plugin-flowtype --global`.
If you really want to configure hundreds of ESLint rules individually, you can always use eslint
directly with [`eslint-config-standard-with-typescript`](https://github.com/standard/eslint-config-standard-with-typescript)
to layer your changes on top.
### TypeScript
### Flow
To use TypeScript, you need to run `standard` with `typescript-eslint-parser` as the parser,
`eslint-plugin-typescript` as a plugin, and tell standard to lint `*.ts` files (since it
doesn't by default).
To use Flow, you need to run `standard` with `@babel/eslint-parser` as the parser and
`eslint-plugin-flowtype` as a plugin.
```bash
npm install typescript-eslint-parser eslint-plugin-typescript --save-dev
npm install @babel/eslint-parser eslint-plugin-flowtype --save-dev
```

@@ -595,3 +579,3 @@

```bash
$ standard --parser typescript-eslint-parser --plugin typescript *.ts
$ standard --parser @babel/eslint-parser --plugin flowtype
```

@@ -604,4 +588,4 @@

"standard": {
"parser": "typescript-eslint-parser",
"plugins": [ "typescript" ]
"parser": "@babel/eslint-parser",
"plugins": [ "flowtype" ]
}

@@ -611,14 +595,6 @@ }

With that in `package.json`, you can run:
*Note: `plugin` and `plugins` are equivalent.*
```bash
standard *.ts
```
## What about Mocha, Jest, Jasmine, QUnit, etc?
If `standard` is installed globally (i.e. `npm install standard --global`), then
be sure to install `typescript-eslint-parser` and `eslint-plugin-typescript` globally as well,
with `npm install typescript-eslint-parser eslint-plugin-typescript --global`.
## What about Mocha, Jasmine, QUnit, etc?
To support mocha in test files, add this to the top of the test files:

@@ -636,5 +612,5 @@

Where `mocha` can be one of `jasmine`, `qunit`, `phantomjs`, and so on. To see a
Where `mocha` can be one of `jest`, `jasmine`, `qunit`, `phantomjs`, and so on. To see a
full list, check ESLint's
[specifying environments](http://eslint.org/docs/user-guide/configuring.html#specifying-environments)
[specifying environments](https://eslint.org/docs/latest/use/configure/language-options#specifying-environments)
documentation. For a list of what globals are available for these environments,

@@ -664,2 +640,25 @@ check the

## What is the difference between warnings and errors?
`standard` treats all rule violations as errors, which means that `standard`
will exit with a non-zero (error) exit code.
However, we may occasionally release a new major version of `standard`
which changes a rule that affects the majority of `standard` users (for example,
transitioning from `var` to `let`/`const`). We do this only when we think the
advantage is worth the cost and only when the rule is
[auto-fixable](#is-there-an-automatic-formatter).
In these situations, we have a "transition period" where the rule change is only
a "warning". Warnings don't cause `standard` to return a non-zero (error)
exit code. However, a warning message will still print to the console. During
the transition period, `using standard --fix` will update your code so that it's
ready for the next major version.
The slow and careful approach is what we strive for with `standard`. We're
generally extremely conservative in enforcing the usage of new language
features. We want using `standard` to be light and fun and so we're careful
about making changes that may get in your way. As always, you can
[disable a rule](#how-do-i-disable-a-rule) at any time, if necessary.
## Can I check code inside of Markdown or HTML files?

@@ -698,4 +697,9 @@

Funny you should ask!
Yes! Hooks are great for ensuring that unstyled code never even makes it into your repo.
Never give style feedback on a pull request again!
You even have a choice...
### Install your own hook
```bash

@@ -709,3 +713,3 @@ #!/bin/bash

if IFS= read -r -d $'\n' path; then
{ echo "$path"; cat; } | xargs $@
echo "$path" | cat - | xargs "$@"
fi

@@ -720,4 +724,30 @@ }

## How do I make the output all colorful and *pretty*?
### Use a `pre-commit` hook
The [pre-commit](https://pre-commit.com/) library allows hooks to be declared within a `.pre-commit-config.yaml` configuration file in the repo, and therefore more easily maintained across a team.
Users of pre-commit can simply add `standard` to their `.pre-commit-config.yaml` file, which will automatically fix `.js`, `.jsx`, `.mjs` and `.cjs` files:
```yaml
- repo: https://github.com/standard/standard
rev: master
hooks:
- id: standard
```
Alternatively, for more advanced styling configurations, use `standard` within the [eslint hook](https://github.com/pre-commit/mirrors-eslint):
```yaml
- repo: https://github.com/pre-commit/mirrors-eslint
rev: master
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
additional_dependencies:
- eslint@latest
- eslint-config-standard@latest
# and whatever other plugins...
```
## How do I make the output all colorful and pretty?
The built-in output is simple and straightforward, but if you like shiny things,

@@ -733,3 +763,3 @@ install [snazzy](https://www.npmjs.com/package/snazzy):

```bash
$ standard --verbose | snazzy
$ standard | snazzy
```

@@ -746,3 +776,3 @@

### `standard.lintText(text, [opts], callback)`
### `async standard.lintText(text, [opts])`

@@ -753,21 +783,28 @@ Lint the provided source `text`. An `opts` object may be provided:

{
cwd: '', // current working directory (default: process.cwd())
filename: '', // path of the file containing the text being linted (optional, though some eslint plugins require it)
fix: false, // automatically fix problems
globals: [], // custom global variables to declare
plugins: [], // custom eslint plugins
envs: [], // custom eslint environment
parser: '' // custom js parser (e.g. babel-eslint)
// unique to lintText
filename: '', // path of file containing the text being linted
// common to lintText and lintFiles
cwd: '', // current working directory (default: process.cwd())
fix: false, // automatically fix problems
extensions: [], // file extensions to lint (has sane defaults)
globals: [], // custom global variables to declare
plugins: [], // custom eslint plugins
envs: [], // custom eslint environment
parser: '', // custom js parser (e.g. babel-eslint)
usePackageJson: true, // use options from nearest package.json?
useGitIgnore: true // use file ignore patterns from .gitignore?
}
```
Additional options may be loaded from a `package.json` if it's found for the
current working directory.
All options are optional, though some ESLint plugins require the `filename` option.
The `callback` will be called with an `Error` and `results` object.
Additional options may be loaded from a `package.json` if it's found for the current working directory. See below for further details.
Returns a `Promise` resolving to the `results` or rejected with an `Error`.
The `results` object will contain the following properties:
```js
var results = {
const results = {
results: [

@@ -789,27 +826,32 @@ {

### `results = standard.lintTextSync(text, [opts])`
### `async standard.lintFiles(files, [opts])`
Synchronous version of `standard.lintText()`. If an error occurs, an exception is
thrown. Otherwise, a `results` object is returned.
### `standard.lintFiles(files, [opts], callback)`
Lint the provided `files` globs. An `opts` object may be provided:
```js
var opts = {
ignore: [], // file globs to ignore (has sane defaults)
cwd: '', // current working directory (default: process.cwd())
fix: false, // automatically fix problems
globals: [], // global variables to declare
plugins: [], // eslint plugins
envs: [], // eslint environment
parser: '' // js parser (e.g. babel-eslint)
{
// unique to lintFiles
ignore: [], // file globs to ignore (has sane defaults)
// common to lintText and lintFiles
cwd: '', // current working directory (default: process.cwd())
fix: false, // automatically fix problems
extensions: [], // file extensions to lint (has sane defaults)
globals: [], // custom global variables to declare
plugins: [], // custom eslint plugins
envs: [], // custom eslint environment
parser: '', // custom js parser (e.g. babel-eslint)
usePackageJson: true, // use options from nearest package.json?
useGitIgnore: true // use file ignore patterns from .gitignore?
}
```
The `callback` will be called with an `Error` and `results` object (same as above).
Additional options may be loaded from a `package.json` if it's found for the current working directory. See below for further details.
## How do I contribute to `standard`?
Both `ignore` and `files` patterns are resolved relative to the current working directory.
Returns a `Promise` resolving to the `results` or rejected with an `Error` (same as above).
## How do I contribute to StandardJS?
Contributions are welcome! Check out the [issues](https://github.com/standard/standard/issues) or the [PRs](https://github.com/standard/standard/pulls), and make your own if you want something that you don't see there.

@@ -822,10 +864,9 @@

- **[standard](https://github.com/standard/standard)** - this repo
- **[standard-engine](https://github.com/flet/standard-engine)** - cli engine for arbitrary eslint rules
- **[standard-engine](https://github.com/standard/standard-engine)** - cli engine for arbitrary eslint rules
- **[eslint-config-standard](https://github.com/standard/eslint-config-standard)** - eslint rules for standard
- **[eslint-config-standard-jsx](https://github.com/standard/eslint-config-standard-jsx)** - eslint rules for standard (JSX)
- **[eslint-plugin-standard](https://github.com/xjamundx/eslint-plugin-standard)** - custom eslint rules for standard (not part of eslint core)
- **[eslint](https://github.com/eslint/eslint)** - the linter that powers standard
- **[snazzy](https://github.com/standard/snazzy)** - pretty terminal output for standard
- **[standard-www](https://github.com/standard/standard-www)** - code for https://standardjs.com
- **[semistandard](https://github.com/Flet/semistandard)** - standard, with semicolons (if you must)
- **[semistandard](https://github.com/standard/semistandard)** - standard, with semicolons (if you must)
- **[standardx](https://github.com/standard/standardx)** - standard, with custom tweaks

@@ -838,4 +879,8 @@

## Security Policies and Procedures
The `standard` team and community take all security bugs in `standard` seriously. Please see our [security policies and procedures](https://github.com/standard/.github/blob/master/SECURITY.md) document to learn how to report issues.
## License
[MIT](LICENSE). Copyright (c) [Feross Aboukhadijeh](https://feross.org).

@@ -6,3 +6,6 @@ # JavaScript Standard Style

<a href="/docs/RULES-esla.md">Español (Latinoamérica)</a> •
<a href="/docs/RULES-fr.md">Français</a> •
<a href="/docs/RULES-id.md">Bahasa Indonesia</a> •
<a href="/docs/RULES-iteu.md">Italiano (Italian)</a> •
<a href="/docs/RULES-ja.md">日本語 (Japanese)</a> •
<a href="/docs/RULES-kokr.md">한국어 (Korean)</a> •

@@ -39,4 +42,8 @@ <a href="/docs/RULES-ptbr.md">Português (Brasil)</a> •

```js
console.log('hello there')
$("<div class='box'>")
console.log('hello there') // ✓ ok
console.log("hello there") // ✗ avoid
console.log(`hello there`) // ✗ avoid
$("<div class='box'>") // ✓ ok
console.log(`hello ${name}`) // ✓ ok
```

@@ -186,3 +193,3 @@

* **Declare browser globals** with a `/* global */` comment.<br>
Exceptions are: `window`, `document` and `navigator`.<br>
Exceptions are: `window`, `document`, and `navigator`.<br>
Prevents accidental use of poorly-named browser globals like `open`, `length`,

@@ -220,4 +227,4 @@ `event`, and `name`.

var value = 'hello world'
// blank line
// blank line
console.log(value)

@@ -411,9 +418,17 @@ ```

constructor () {
super() // ✗ avoid
super() // ✗ avoid
this.legs = 4
}
}
class Dog extends Mammal {
class Dog extends Animal {
constructor () { // ✗ avoid
this.legs = 4
}
}
class Dog extends Animal {
constructor () {
super() // ✓ ok
super() // ✓ ok
this.legs = 4
}

@@ -446,3 +461,3 @@ }

foo(n - 1)
foo(n - 1) // ✓ ok
}

@@ -892,4 +907,5 @@ ```

```js
const num = 042 // ✗ avoid
const num = '042' // ✓ ok
const octal = 042 // ✗ avoid
const decimal = 34 // ✓ ok
const octalString = '042' // ✓ ok
```

@@ -1314,3 +1330,3 @@

* No semicolons. (see: [1](http://blog.izs.me/post/2353458699/an-open-letter-to-javascript-leaders-regarding), [2](http://inimino.org/%7Einimino/blog/javascript_semicolons), [3](https://www.youtube.com/watch?v=gsfbh17Ax9I))
* No semicolons. (see: [1](http://blog.izs.me/post/2353458699/an-open-letter-to-javascript-leaders-regarding), [2](https://web.archive.org/web/20201206065632/http://inimino.org/~inimino/blog/javascript_semicolons), [3](https://www.youtube.com/watch?v=gsfbh17Ax9I))

@@ -1432,3 +1448,3 @@ eslint: [`semi`](http://eslint.org/docs/rules/semi)

[1]: http://blog.izs.me/post/2353458699/an-open-letter-to-javascript-leaders-regarding
[2]: http://inimino.org/~inimino/blog/javascript_semicolons
[2]: https://web.archive.org/web/20201206065632/http://inimino.org/~inimino/blog/javascript_semicolons
[3]: https://www.youtube.com/watch?v=gsfbh17Ax9I

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc