ESLint v8.9.0 released
by Milos Djermanovic - 11 February 2022We just pushed ESLint v8.9.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release.
Highlights
- New
es2022environment has been added. When enabled, it adds all ECMAScript 2022 globals (which are currently the same as ECMAScript 2021 globals) and automatically sets theecmaVersionparser option to13. Previously, we used to add new ES environments only if they contain new globals compared to previous years. Newes2016,es2018, andes2019environments have also been added to fill in the gaps between years. eslint-scopehas been updated to ignore"use strict"directives in ES3 code.eslint-visitor-keyspackage now contains built-in TypeScript declarations.
Features
68f64a9feat: update eslint-scope to ignore"use strict"directives in ES3 (#15595) (Milos Djermanovic)db57639feat: addes2016,es2018,es2019, andes2022environments (#15587) (Milos Djermanovic)2dc38aafeat: fix bug with arrow function return types in function-paren-newline (#15541) (Milos Djermanovic)6f940c3feat: Implement FlatRuleTester (#15519) (Nicholas C. Zakas)
Documentation
570a036docs: addone-varexample withfor-loopinitializer (#15596) (Milos Djermanovic)417191ddocs: Remove the $ prefix in terminal commands (#15565) (Andreas Lewis)389ff34docs: add missingVariable#scopeproperty in the scope manager docs (#15571) (Milos Djermanovic)f63795ddocs: no-eval replace dead link with working one (#15568) (rasenplanscher)0383591docs: Remove old Markdown issue template (#15556) (Brandon Mills)a8dd5a2docs: add 'when not to use it' section in no-duplicate-case docs (#15563) (Milos Djermanovic)1ad439edocs: add missed verb in docs (#15550) (Jeff Mosawy)
Chores
586d45cchore: Upgrade to espree@9.3.1 (#15600) (Milos Djermanovic)623e1e2chore: Upgrade to eslint-visitor-keys@3.3.0 (#15599) (Milos Djermanovic)355b23dchore: fix outdated link to Code of Conduct in PR template (#15578) (Rich Trott)b10fef2ci: use Node 16 for browser test (#15569) (Milos Djermanovic)92f89fbchore: suggest demo link in bug report template (#15557) (Brandon Mills)