Skip to content
This repository was archived by the owner on May 29, 2023. It is now read-only.

Commit c2f629d

Browse files
committed
[eslint config] [*] [deps] update eslint, babel-preset-airbnb, eslint-plugin-jsx-a11y
1 parent a12dec9 commit c2f629d

File tree

4 files changed

+26
-8
lines changed

4 files changed

+26
-8
lines changed

packages/eslint-config-airbnb-base/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,18 @@
5353
},
5454
"homepage": "https://github.com/airbnb/javascript",
5555
"devDependencies": {
56-
"babel-preset-airbnb": "^2.5.1",
56+
"babel-preset-airbnb": "^2.5.3",
5757
"babel-tape-runner": "^2.0.1",
5858
"editorconfig-tools": "^0.1.1",
59-
"eslint": "^4.19.1 || ^5.0.1",
59+
"eslint": "^4.19.1 || ^5.3.0",
6060
"eslint-find-rules": "^3.3.1",
6161
"eslint-plugin-import": "^2.13.0",
6262
"in-publish": "^2.0.0",
6363
"safe-publish-latest": "^1.1.1",
6464
"tape": "^4.9.1"
6565
},
6666
"peerDependencies": {
67-
"eslint": "^4.19.1 || ^5.0.1",
67+
"eslint": "^4.19.1 || ^5.3.0",
6868
"eslint-plugin-import": "^2.13.0"
6969
},
7070
"engines": {

packages/eslint-config-airbnb-base/rules/best-practices.js

+4
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,10 @@ module.exports = {
313313
// https://eslint.org/docs/rules/require-await
314314
'require-await': 'off',
315315

316+
// Enforce the use of u flag on RegExp
317+
// https://eslint.org/docs/rules/require-unicode-regexp
318+
'require-unicode-regexp': 'off',
319+
316320
// requires to declare all vars on top of their containing scope
317321
'vars-on-top': 'error',
318322

packages/eslint-config-airbnb-base/rules/errors.js

+14
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ module.exports = {
88
// https://eslint.org/docs/rules/getter-return
99
'getter-return': ['error', { allowImplicit: true }],
1010

11+
// disallow using an async function as a Promise executor
12+
// https://eslint.org/docs/rules/no-async-promise-executor
13+
// TODO: enable, semver-major
14+
'no-async-promise-executor': 'off',
15+
1116
// Disallow await inside of loops
1217
// https://eslint.org/docs/rules/no-await-in-loop
1318
'no-await-in-loop': 'error',
@@ -78,6 +83,11 @@ module.exports = {
7883
// disallow irregular whitespace outside of strings and comments
7984
'no-irregular-whitespace': 'error',
8085

86+
// Disallow characters which are made with multiple code points in character class syntax
87+
// https://eslint.org/docs/rules/no-misleading-character-class
88+
// TODO: enable, semver-major
89+
'no-misleading-character-class': 'off',
90+
8191
// disallow the use of object properties of the global object (Math and JSON) as functions
8292
'no-obj-calls': 'error',
8393

@@ -113,6 +123,10 @@ module.exports = {
113123
// deprecated in favor of no-unsafe-negation
114124
'no-negated-in-lhs': 'off',
115125

126+
// Disallow assignments that can lead to race conditions due to usage of await or yield
127+
// https://eslint.org/docs/rules/require-atomic-updates
128+
'require-atomic-updates': 'error',
129+
116130
// disallow comparisons with the value NaN
117131
'use-isnan': 'error',
118132

packages/eslint-config-airbnb/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -59,23 +59,23 @@
5959
"object.entries": "^1.0.4"
6060
},
6161
"devDependencies": {
62-
"babel-preset-airbnb": "^2.5.1",
62+
"babel-preset-airbnb": "^2.5.3",
6363
"babel-tape-runner": "^2.0.1",
6464
"editorconfig-tools": "^0.1.1",
65-
"eslint": "^4.19.1 || ^5.0.1",
65+
"eslint": "^4.19.1 || ^5.3.0",
6666
"eslint-find-rules": "^3.3.1",
6767
"eslint-plugin-import": "^2.13.0",
68-
"eslint-plugin-jsx-a11y": "^6.1.0",
68+
"eslint-plugin-jsx-a11y": "^6.1.1",
6969
"eslint-plugin-react": "^7.10.0",
7070
"in-publish": "^2.0.0",
7171
"react": ">= 0.13.0",
7272
"safe-publish-latest": "^1.1.1",
7373
"tape": "^4.9.1"
7474
},
7575
"peerDependencies": {
76-
"eslint": "^4.19.1 || ^5.0.1",
76+
"eslint": "^4.19.1 || ^5.3.0",
7777
"eslint-plugin-import": "^2.13.0",
78-
"eslint-plugin-jsx-a11y": "^6.1.0",
78+
"eslint-plugin-jsx-a11y": "^6.1.1",
7979
"eslint-plugin-react": "^7.10.0"
8080
},
8181
"engines": {

0 commit comments

Comments
 (0)