Standard v13.0.0 Release Notes
Release Date: 2019-07-10 // almost 5 years ago-
β Welcome to the latest version of
standard
!π As with every new major release, there are lots of new rules in 13.0.0 designed to help catch bugs and make programmer intent more explicit.
standard
is more popular than ever β 640,000 downloads per month! It's even more popular β 3,000,000 downloads per month β if you include the π ESLint configuration that we also publish (for advanced users).β¬οΈ When you upgrade, consider running
standard --fix
to automatically format your code to match the newly added rules.π β€οΈ If you enjoy StandardJS and want to support future releases, check out Feross's GitHub Sponsors page. GitHub is matching donations, so your dollars go twice as far! π
π New features
β‘οΈ Update
eslint
from~5.16.0
to~6.0.1
- BREAKING: Node.js 6 is no longer supported
- Node.js 6 is EOL and will no longer be receiving security updates. As a result, the eslint team has decided to drop support for it.
- To prevent breaking CI for projects which still support Node 6,
standard
silently passes when run by an unsupported version of Node. - For
eslint-config-standard
users only: Plugins are no longer affected byeslint
's location - Previously, ESLint loaded plugins relative to the location of the ESLint package itself. As a result, we suggested that users with global ESLint installations should also install plugins globally, and users with local ESLint installations should install plugins locally.
- With ESLint v6, plugins should always be installed locally, even if ESLint was installed globally. More precisely, ESLint v6 resolves plugins relative to the end userβs project by default, and always resolves shareable configs and parsers relative to the location of the config file that imports them.
- See migrating to ESLint 6.0.0 for more information.
π The documentation is now available in Japanese π―π΅!
- Thanks to @Munieru for the excellent work!
- Other community contributed translations exist in Spanish, French, Italian, Korean, Portuguese, Simplified Chinese, and Taiwanese Mandarin.
- More translations are always welcome!
β‘οΈ Update
eslint-plugin-promise
from~4.0.0
to~4.2.1
β‘οΈ Update
eslint-plugin-node
from~7.0.1
to~9.1.0
π New rules
β (Estimated % of affected standard users, based on test suite in parens)
- π Disallow spaces inside of array brackets (array-bracket-spacing) #1203 eslint-config-standard/#131 [14%]
- π Require
const
instead oflet
if variable is never reassigned (prefer-const) #523 eslint-config-standard/#133 [14%] - π Disallow quotes around object literal property names that are not strictly required (quote-props) #791 [4%]
- π Disallow use of Object.prototypes builtins directly (no-prototype-builtins) #1310 [3%]
- π Require an empty line between class members (lines-between-class-members) #438 [1%]
- π Disallow using an async function as a Promise executor (no-async-promise-executor) #1309 [1%]
- π Disallow spaces inside of computed properties (computed-property-spacing) #1315 eslint-config-standard/#131 [1%]
- π Disallow unnecessary catch clauses (no-useless-catch) #1312 [0%]
- π Disallow characters which are made with multiple code points in character class syntax (no-misleading-character-class) #1311 [0%]