Update dependency eslint-config-airbnb to v19 (#7330)

* Update dependency eslint-config-airbnb to v19

* bisect failure, use 18.1.0

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Joel Maher <joel.maher@gmail.com>
This commit is contained in:
renovate[bot] 2022-08-11 15:47:47 -07:00 коммит произвёл GitHub
Родитель 28e5ce438f
Коммит a404eb9b0a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
7 изменённых файлов: 32 добавлений и 20 удалений

Просмотреть файл

@ -27,6 +27,8 @@ module.exports = {
'class-methods-use-this': 'off',
'consistent-return': 'off',
'default-case': 'off',
'default-param-last': 'off',
'import/extensions': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'no-alert': 'off',
'no-continue': 'off',
@ -37,11 +39,20 @@ module.exports = {
'no-underscore-dangle': 'off',
'prefer-promise-reject-errors': 'off',
'react/destructuring-assignment': 'off',
'react/function-component-definition': 'off',
'react/jsx-fragments': 'off',
'react/jsx-no-constructed-context-values': 'off',
'react/jsx-no-script-url': 'off',
'react/jsx-no-useless-fragment': 'off',
'react/jsx-props-no-spreading': 'off',
'react/sort-comp': [0, {}],
'react/no-arrow-function-lifecycle': 'off',
'react/no-invalid-html-attribute': 'off',
'react/no-namespace': 'off',
'react/no-unstable-nested-components': 'off',
'react/no-unused-class-component-methods': 'off',
'react/prefer-exact-props': 'off',
'react/prop-types': 'off',
'import/extensions': 'off',
'react/sort-comp': [0, {}],
// Override AirBnB's config for this rule to make it more strict.
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
'import/order': [

Просмотреть файл

@ -85,7 +85,7 @@
"copy-webpack-plugin": "^11.0.0",
"css-loader": "^6.7.0",
"eslint": "8.21.0",
"eslint-config-airbnb": "18.0.1",
"eslint-config-airbnb": "19.0.4",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "23.1.1",

Просмотреть файл

@ -80,6 +80,7 @@ const taskcluster = (() => {
userCredentials[_rootUrl] &&
moment(userCredentials[_rootUrl].expires).isAfter(moment())
) {
// eslint-disable-next-line no-promise-executor-return
return resolve(userCredentials[_rootUrl]);
}

Просмотреть файл

@ -131,7 +131,7 @@ export const tableRowStyling = function tableRowStyling(state, bug) {
return { style };
}
const disabledStrings = new RegExp('(disabled|annotated|marked)', 'i');
const disabledStrings = /(disabled|annotated|marked)/i;
if (disabledStrings.test(bug.row.whiteboard)) {
return { style };
}

Просмотреть файл

@ -130,9 +130,7 @@ export default class SuggestionsListItem extends React.Component {
</mark>,
);
}
const filterTestPath = suggestion.search.match(
RegExp('([a-z_\\-s0-9.]+[/])+', 'gi'),
);
const filterTestPath = suggestion.search.match(/([a-z_\\-s0-9.]+[/])+/gi);
return (
<li>

Просмотреть файл

@ -26,6 +26,7 @@ export default class TaskclusterCallback extends React.PureComponent {
this.getCredentials(code);
} else {
if (error)
// eslint-disable-next-line no-import-assign
errorMessage += `We received error: ${error} from Taskcluster.`;
this.setState({

Просмотреть файл

@ -4493,23 +4493,24 @@ escodegen@^2.0.0:
optionalDependencies:
source-map "~0.6.1"
eslint-config-airbnb-base@^14.0.0:
version "14.2.1"
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-14.2.1.tgz#8a2eb38455dc5a312550193b319cdaeef042cd1e"
integrity sha512-GOrQyDtVEc1Xy20U7vsB2yAoB4nBlfH5HZJeatRXHleO+OS5Ot+MWij4Dpltw4/DyIkqUfqz1epfhVR5XWWQPA==
eslint-config-airbnb-base@^15.0.0:
version "15.0.0"
resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-15.0.0.tgz#6b09add90ac79c2f8d723a2580e07f3925afd236"
integrity sha512-xaX3z4ZZIcFLvh2oUNvcX5oEofXda7giYmuplVxoOg5A7EXJMrUyqRgR+mhDhPK8LZ4PttFOBvCYDbX3sUoUig==
dependencies:
confusing-browser-globals "^1.0.10"
object.assign "^4.1.2"
object.entries "^1.1.2"
object.entries "^1.1.5"
semver "^6.3.0"
eslint-config-airbnb@18.0.1:
version "18.0.1"
resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-18.0.1.tgz#a3a74cc29b46413b6096965025381df8fb908559"
integrity sha512-hLb/ccvW4grVhvd6CT83bECacc+s4Z3/AEyWQdIT2KeTsG9dR7nx1gs7Iw4tDmGKozCNHFn4yZmRm3Tgy+XxyQ==
eslint-config-airbnb@19.0.4:
version "19.0.4"
resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-19.0.4.tgz#84d4c3490ad70a0ffa571138ebcdea6ab085fdc3"
integrity sha512-T75QYQVQX57jiNgpF9r1KegMICE94VYwoFQyMGhrvc+lB8YF2E/M/PYDaQe1AJcWaEgqLE+ErXV1Og/+6Vyzew==
dependencies:
eslint-config-airbnb-base "^14.0.0"
object.assign "^4.1.0"
object.entries "^1.1.0"
eslint-config-airbnb-base "^15.0.0"
object.assign "^4.1.2"
object.entries "^1.1.5"
eslint-config-prettier@8.5.0:
version "8.5.0"
@ -7609,7 +7610,7 @@ object.assign@^4.1.0, object.assign@^4.1.2:
has-symbols "^1.0.1"
object-keys "^1.1.1"
object.entries@^1.1.0, object.entries@^1.1.2:
object.entries@^1.1.0, object.entries@^1.1.2, object.entries@^1.1.5:
version "1.1.5"
resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861"
integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g==