All Versions
86
Latest Version
Avg Release Cycle
44 days
Latest Release
730 days ago

Changelog History
Page 4

  • v10.0.2 Changes

    April 14, 2017

    ๐Ÿ”„ 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.
  • v10.0.1 Changes

    April 06, 2017
    • Internal changes (incremented dependency versions)
  • v10.0.0 Changes

    April 04, 2017

    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
  • v9.0.2 Changes

    March 17, 2017

    ๐Ÿ”„ Changed rules

  • v9.0.1 Changes

    March 07, 2017

    ๐Ÿ”„ Changed rules

    • ๐Ÿ‘• Relax rule: Allow mixing basic operators without parens (no-mixed-operators) #816
      • Specifically, these operators: +, -, *, /, %, and **
  • v9.0.0 Changes

    February 28, 2017

    ๐Ÿš€ It's time for a new major version of standard! As usual, this release contains a bunch of awesomeness to help you keep your code in tip-top shape!

    We've added several new rules designed to catch potential programmer errors (i.e. bugs), as well as rules to make programmer intent more explicit in certain circumstances.

    ๐Ÿš€ This release continues our trend of tightening up rules so that, wherever possible, there's one "right" way to do things. This design goal is intended to reduce the time that teams and maintainers spend giving code review feedback in pull requests.

    โฌ†๏ธ When you upgrade, consider running standard --fix to automatically fix some of the errors caught by the new rules in this version.

    โœ… Note: If you use the Chai test framework, you will need to make some changes to โœ… your tests to improve their robustness. Read about the changes you need to make.

    ๐Ÿ†• New features

    • โšก๏ธ Update ESLint from 3.10.x to 3.15.x
    • 3 additional rules are now fixable with standard --fix

    ๐Ÿ†• New rules

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

    ๐Ÿ”„ Changed rules

  • v8.6.0 Changes

    November 22, 2016
    • โšก๏ธ Update ESLint from 3.8.x to 3.10.x
    • 3 additional rules are now fixable with standard --fix
  • v8.5.0 Changes

    October 25, 2016
    • โšก๏ธ Update ESLint from 3.7.x to 3.8.x
    • 2 additional rules are now fixable with standard --fix
  • v8.4.0 Changes

    October 10, 2016
    • โšก๏ธ Update ESLint from 3.6.x to 3.7.x
    • 5 additional rules are now fixable with standard --fix
    • ๐Ÿ‘‰ Use more conservative semver ranges #654
  • v8.3.0 Changes

    September 29, 2016

    ๐Ÿš€ The last release (8.2.0) added ES7 support. This release (8.3.0) adds ES8 ๐Ÿ‘Œ support ...just 3 days later!

    ๐Ÿš€ This release should eliminate the need to specify babel-eslint as a custom ๐Ÿ“œ parser, since standard can now parse ES8 (i.e. ES2017) syntax out of the box. That means async and await will just work.

    • ๐Ÿ‘Œ Support ES8 (i.e. ES2017) syntax.