Bump packages to fix linter
This commit is contained in:
parent
ed9506bbaf
commit
0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions
6
node_modules/eslint-plugin-jsx-a11y/__tests__/__util__/axeMapping.js
generated
vendored
Normal file
6
node_modules/eslint-plugin-jsx-a11y/__tests__/__util__/axeMapping.js
generated
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
/* eslint-disable import/prefer-default-export, no-underscore-dangle */
|
||||
import * as axe from 'axe-core';
|
||||
|
||||
export function axeFailMessage(checkId, data) {
|
||||
return axe.utils.getCheckMessage(checkId, 'fail', data);
|
||||
}
|
||||
26
node_modules/eslint-plugin-jsx-a11y/__tests__/__util__/parserOptionsMapper.js
generated
vendored
Normal file
26
node_modules/eslint-plugin-jsx-a11y/__tests__/__util__/parserOptionsMapper.js
generated
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
const defaultParserOptions = {
|
||||
ecmaVersion: 2018,
|
||||
ecmaFeatures: {
|
||||
experimentalObjectRestSpread: true,
|
||||
jsx: true,
|
||||
},
|
||||
};
|
||||
|
||||
export default function parserOptionsMapper({
|
||||
code,
|
||||
errors,
|
||||
options = [],
|
||||
parserOptions = {},
|
||||
settings,
|
||||
}) {
|
||||
return {
|
||||
code,
|
||||
errors,
|
||||
options,
|
||||
parserOptions: {
|
||||
...defaultParserOptions,
|
||||
...parserOptions,
|
||||
},
|
||||
settings,
|
||||
};
|
||||
}
|
||||
33
node_modules/eslint-plugin-jsx-a11y/__tests__/__util__/ruleOptionsMapperFactory.js
generated
vendored
Normal file
33
node_modules/eslint-plugin-jsx-a11y/__tests__/__util__/ruleOptionsMapperFactory.js
generated
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
/**
|
||||
* @flow
|
||||
*/
|
||||
|
||||
import entries from 'object.entries';
|
||||
import flatMap from 'array.prototype.flatmap';
|
||||
import fromEntries from 'object.fromentries';
|
||||
|
||||
type ESLintTestRunnerTestCase = {
|
||||
code: string,
|
||||
errors: ?Array<{ message: string, type: string }>,
|
||||
options: ?Array<mixed>,
|
||||
parserOptions: ?Array<mixed>,
|
||||
settings?: {[string]: mixed},
|
||||
};
|
||||
|
||||
type RuleOptionsMapperFactoryType = (
|
||||
params: ESLintTestRunnerTestCase
|
||||
) => ESLintTestRunnerTestCase;
|
||||
|
||||
export default function ruleOptionsMapperFactory(ruleOptions: Array<mixed> = []): RuleOptionsMapperFactoryType {
|
||||
// eslint-disable-next-line
|
||||
return ({ code, errors, options, parserOptions, settings }: ESLintTestRunnerTestCase): ESLintTestRunnerTestCase => {
|
||||
return {
|
||||
code,
|
||||
errors,
|
||||
// Flatten the array of objects in an array of one object.
|
||||
options: [fromEntries(flatMap((options || []).concat(ruleOptions), (item) => entries(item)))],
|
||||
parserOptions,
|
||||
settings,
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue