Skip to content

Commit 7729808

Browse files
committed
Update to latest eslint-config-prettier
1 parent 43ef541 commit 7729808

File tree

7 files changed

+374
-630
lines changed

7 files changed

+374
-630
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
99
## Features
1010

1111
- Update to ESLint v7 and [eslint-config-airbnb v18.2.1](https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb/CHANGELOG.md), changing rules that are applied with this config.
12+
- Update to eslint-config-prettier v8, which no longer requires specifying sub-configurations separately for different frameworks or syntaxes.
1213

1314
Here is a summary of significant rule changes:
1415

@@ -48,6 +49,7 @@ This release updates most of the dependencies of the config:
4849
| ------------------------- | ------- | ------- |
4950
| eslint | ^6.0.0 | ^7.2.0 |
5051
| eslint-config-airbnb | ^18.0.0 | ^18.2.1 |
52+
| eslint-config-prettier | ^6.0.0 | ^8.3.0 |
5153
| eslint-plugin-react | ^7.16.0 | ^7.24.0 |
5254
| eslint-plugin-react-hooks | ^1.7.0 | ^4.2.0 |
5355
| eslint-plugin-jsx-a11y | ^6.2.0 | ^6.4.1 |

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ eslint --max-warnings 0 --report-unused-disable-directives --ext .js,.jsx,.ts,.t
286286
- [import/no-self-import](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-self-import.md)
287287
- [import/no-cycle](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-cycle.md): `error, maxDepth: ∞, ignoreExternal: false`
288288
- [import/no-useless-path-segments](https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-useless-path-segments.md): `error, commonjs: true`
289+
- [arrow-body-style](https://eslint.org/docs/rules/arrow-body-style): `error, as-needed, requireReturnForObjectLiteral: false`
289290
- [constructor-super](https://eslint.org/docs/rules/constructor-super)
290291
- [no-class-assign](https://eslint.org/docs/rules/no-class-assign)
291292
- [no-const-assign](https://eslint.org/docs/rules/no-const-assign)
@@ -297,6 +298,7 @@ eslint --max-warnings 0 --report-unused-disable-directives --ext .js,.jsx,.ts,.t
297298
- [no-useless-rename](https://eslint.org/docs/rules/no-useless-rename): `error, ignoreDestructuring: false, ignoreImport: false, igno…`
298299
- [no-var](https://eslint.org/docs/rules/no-var)
299300
- [object-shorthand](https://eslint.org/docs/rules/object-shorthand): `error, always, ignoreConstructors: false, avoidQuotes: true`
301+
- [prefer-arrow-callback](https://eslint.org/docs/rules/prefer-arrow-callback): `error, allowNamedFunctions: false, allowUnboundThis: true`
300302
- [prefer-const](https://eslint.org/docs/rules/prefer-const): `error, destructuring: any, ignoreReadBeforeAssign: true`
301303
- [prefer-destructuring](https://eslint.org/docs/rules/prefer-destructuring): `error, VariableDeclarator: array: false, object: true, Assig…`
302304
- [prefer-numeric-literals](https://eslint.org/docs/rules/prefer-numeric-literals)

config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
module.exports = {
4-
extends: ['airbnb', 'airbnb/hooks', 'prettier', 'prettier/react'],
4+
extends: ['airbnb', 'airbnb/hooks', 'prettier'],
55
env: {
66
browser: true,
77
commonjs: true,

0 commit comments

Comments
 (0)