Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

standard

Package Overview
Dependencies
Maintainers
17
Versions
185
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

standard - npm Package Versions

1
19

13.0.0-0

Diff

feross
published 12.0.1 •

Changelog

Source

[12.0.1] - 2018-08-29

  • Since ESLint 5 no longer supports Node 4, standard silently passes when run in Node 4, which matches the current behavior for Node 0.10, 0.12, and all other unsupported versions of Node.
feross
published 12.0.0 •

Changelog

Source

[12.0.0] - 2018-08-28

New version of ESLint, new version of Standard!

When you upgrade, consider running standard --fix to automatically format your code to match the newly added rules.

New features

  • Update eslint from ~4.19.0 to ~5.4.0.
    • Support JSXFragment nodes (e.g. <></>)
    • Lots of minor changes to rules to catch more edge cases!
  • The README is now available in French! (Thanks @charliegerard!)
    • Other community contributed translations exist in Spanish, Italian, Korean, Portuguese, Simplified Chinese, and Taiwanese Mandarin.
    • More translations are welcome!

New rules

(Estimated % of affected standard users, based on test suite in parens)

Changed rules

None.

feross
published 11.0.1 •

feross
published 11.0.0 •

Changelog

Source

[11.0.0] - 2018-02-18

This release has no new rules, but it does update to the latest version of eslint, version 4, which has some significant changes to existing rules. Most updates make the indentation rules more strict.

Thankfully, most users will just need to run standard --fix to update code to be compliant.

New features

  • Update eslint from ~3.19.0 to ~4.18.0.

    • The indent rule is more strict.
    • The padded-blocks rule is more strict.
    • The space-before-function-paren rule is more strict.
    • The no-multi-spaces rule is more strict.
    • Minor improvements to:
      • no-extra-parens,
      • no-unexpected-multiline,
      • no-regex-spaces, and
      • space-unary-ops
  • Update eslint-plugin-import from ~2.2.0 to ~2.8.0

    • Updated for eslint 4.0 compatibility.
    • Various small bug fixes included related to import/* rules.
  • Update eslint-plugin-node from ~4.2.2 to ~6.0.0

    • The no-deprecated-api rule is updated with Node.js 8 support and improved Node 6 support.
  • Upodate eslint-plugin-promise from ~3.5.0 to ~3.6.0.

  • Update eslint-plugin-react from ~6.10.0 to ~7.6.1

    • Fix jsx-indent crash
    • Fix jsx-indent indentation calculation with nested JSX.
    • Fix jsx-no-undef will not check the global scope by default.
    • Fix jsx-curly-spacing newline with object literals bug.
    • Fix jsx-curly-spacing schema incompatibility with ESLint 4.2.0.
    • Fix alignment bug in jsx-indent.

Changed rules

  • Relax rule: Don't mark Rails Asset Pipeline comments (comments that start with //=) as errors. (spaced-comment) #918

👏 Huge thanks to @Flet for putting together most of this release!

flet
published 11.0.0-beta.0 •

bret
published 10.0.3 •

Changelog

Source

[10.0.3] - 2017-08-06

  • Internal changes (incremented dependency versions)
feross
published 10.0.2 •

Changelog

Source

[10.0.2] - 2017-04-14

Changed rules

  • Relax rule: Disallow import of modules using absolute paths (import/no-absolute-path) #861
    • This rule was responsible for up to 25% of the running time of standard, so we are disabling it until its performance improves.
feross
published 10.0.1 •

Changelog

Source

[10.0.1] - 2017-04-06

  • Internal changes (incremented dependency versions)
feross
published 10.0.0 •

Changelog

Source

[10.0.0] - 2017-04-04

standard just turned 10.0.0! 🎉

As with every new major release, there are lots of new rules in 10.0.0 designed to help catch bugs and make programmer intent more explicit.

standard is more popular than ever – 330,000 downloads per month! It's even more popular – 670,000 downloads per month – if you include the shareable ESLint config that we also publish.

The most important change in 10.0.0 is that using deprecated Node.js APIs is now considered an error. It's finally time to update those dusty old APIs!

Deprecated APIs are problematic because they may print warning messages in the console in recent versions of Node.js. This often confuses users and leads to unnecessary support tickets for project maintainers.

Some deprecated APIs are even insecure (or at least prone to incorrect usage) which can have serious security implications. For that reason, standard now considers usage of Buffer(num) to be an error, since this function returns uninitialized program memory which could contain confidential information like passwords or keys.

Instead of Buffer(num), consider using Buffer.alloc(num) or Buffer.from(obj) which make the programmer's intent clearer. These functions exist in all currently supported versions of Node.js, including Node.js 4.x. For more background, see this Node.js issue.

We also improved some rules to support common patterns in code bases that use React, JSX, and Flow.

When you upgrade, consider running standard --fix to automatically fix some of the issues caught by this new version.

New features

  • Update ESLint from 3.15.x to 3.19.x.
  • Node.js API: Add standard.lintTextSync method

New rules

(Estimated % of affected standard users, based on test suite in parens)

  • Disallow using deprecated Node.js APIs (node/no-deprecated-api) #693 [13%]
    • Ensures that code always runs without warnings on the latest versions of Node.js
    • Ensures that safe Buffer methods (Buffer.from(), Buffer.alloc()) are used instead of Buffer()
  • Enforce callbacks always called with Node.js-style error first (standard/no-callback-literal) #623 [3%]
    • Functions named callback or cb must be invoked with null, undefined, or an Error as the first argument
    • Disallows using a string instead of an Error object
    • Disallows confusing callbacks that do not follow the standard Node.js pattern
  • Disallow any imports that come after non-import statements (import/first) #806 [1%]
  • Disallow unnecessary return await (no-return-await) #695 [0%]
  • Disallow comma-dangle in functions (comma-dangle) #787 [0%]
  • Disallow repeated exports of names or defaults (import/export) #806 [0%]
  • Disallow import of modules using absolute paths (import/no-absolute-path) #806 [0%]
  • Disallow Webpack loader syntax in imports (import/no-webpack-loader-syntax) #806 [0%]
  • Disallow comparing against -0 (no-compare-neg-zero) #812 [0%]

Changed rules

  • Relax rule: allow using ...rest to omit properties from an object (no-unused-vars) #800
    • This is a common and useful pattern in React/JSX apps!
  • Relax rule: allow Flow import type statements (import/no-duplicates) #599
    • These are no longer considered to be "duplicate imports"
  • Relax rule: Treat process.exit() the same as throw in code path analysis (node/process-exit-as-throw) #699
    • Makes certain other rules work better and give fewer false positives
  • Relax rule: allow Unnecessary Labels (no-extra-label)
    • Redundant, since "no-labels" is already enabled, which is more restrictive
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc