From 6787dcbe81cdb76047f742192779f677f0ad63a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20De=20Boey?= Date: Sun, 29 Aug 2021 00:48:01 +0200 Subject: [PATCH] feat: support ESLint 8.x --- .eslintrc.js | 5 + .github/workflows/nodejs.yml | 33 ++- package.json | 18 +- src/index.ts | 7 - src/rules/__tests__/utils.test.ts | 1 - src/rules/consistent-test-it.ts | 1 - src/rules/expect-expect.ts | 1 - src/rules/lowercase-name.ts | 1 - src/rules/max-nested-describe.ts | 1 - src/rules/no-alias-methods.ts | 1 - src/rules/no-commented-out-tests.ts | 1 - src/rules/no-conditional-expect.ts | 1 - src/rules/no-deprecated-functions.ts | 1 - src/rules/no-disabled-tests.ts | 1 - src/rules/no-done-callback.ts | 2 +- src/rules/no-duplicate-hooks.ts | 1 - src/rules/no-export.ts | 1 - src/rules/no-focused-tests.ts | 2 +- src/rules/no-hooks.ts | 1 - src/rules/no-identical-title.ts | 1 - src/rules/no-if.ts | 1 - src/rules/no-interpolation-in-snapshots.ts | 1 - src/rules/no-jasmine-globals.ts | 1 - src/rules/no-jest-import.ts | 1 - src/rules/no-large-snapshots.ts | 1 - src/rules/no-mocks-import.ts | 1 - src/rules/no-restricted-matchers.ts | 1 - src/rules/no-standalone-expect.ts | 1 - src/rules/no-test-prefixes.ts | 1 - src/rules/no-test-return-statement.ts | 1 - src/rules/prefer-called-with.ts | 1 - src/rules/prefer-expect-assertions.ts | 2 +- src/rules/prefer-hooks-on-top.ts | 1 - src/rules/prefer-spy-on.ts | 1 - src/rules/prefer-strict-equal.ts | 2 +- src/rules/prefer-to-be-null.ts | 1 - src/rules/prefer-to-be-undefined.ts | 1 - src/rules/prefer-to-contain.ts | 1 - src/rules/prefer-to-have-length.ts | 1 - src/rules/prefer-todo.ts | 1 - src/rules/require-to-throw-message.ts | 1 - src/rules/require-top-level-describe.ts | 1 - src/rules/unbound-method.ts | 1 - src/rules/valid-describe.ts | 1 - src/rules/valid-expect-in-promise.ts | 1 - src/rules/valid-expect.ts | 1 - src/rules/valid-title.ts | 1 - tools/regenerate-docs.ts | 2 +- yarn.lock | 298 ++++++++++++--------- 49 files changed, 204 insertions(+), 206 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 713412eb9..5cd8a6438 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -34,6 +34,11 @@ module.exports = { '@typescript-eslint/ban-types': 'error', '@typescript-eslint/no-unused-vars': 'error', 'eslint-comments/no-unused-disable': 'error', + 'eslint-plugin/require-meta-fixable': [ + 'error', + { catchNoFixerButFixableProperty: true }, + ], + 'eslint-plugin/require-meta-has-suggestions': 'error', 'eslint-plugin/test-case-property-ordering': 'error', 'no-else-return': 'error', 'no-negated-condition': 'error', diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 89b42a1a2..fb2d7f6ea 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -18,9 +18,9 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2.4.0 + - uses: actions/setup-node@v2 with: - node-version: 14.x + node-version: 16 cache: yarn - name: Validate cache @@ -36,9 +36,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2.4.0 + - uses: actions/setup-node@v2 with: - node-version: 14.x + node-version: 16 cache: yarn - name: install run: yarn @@ -50,9 +50,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2.4.0 + - uses: actions/setup-node@v2 with: - node-version: 14.x + node-version: 16 cache: yarn - name: install run: yarn @@ -67,14 +67,14 @@ jobs: strategy: fail-fast: false matrix: - node-version: [12.x, 14.x, 16.x] - eslint-version: [6, 7] + node-version: [12, 14, 16] + eslint-version: [6, 7, '^8.0.0-0'] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2.4.0 + uses: actions/setup-node@v2 with: node-version: ${{ matrix.node-version }} cache: yarn @@ -86,8 +86,7 @@ jobs: run: yarn test --coverage env: CI: true - - uses: codecov/codecov-action@v2.0.3 - if: always() + - uses: codecov/codecov-action@v2 test-os: name: Test on ${{ matrix.os }} using Node.js LTS needs: prepare-yarn-cache @@ -99,9 +98,9 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2.4.0 + - uses: actions/setup-node@v2 with: - node-version: 14.x + node-version: 16 cache: yarn - name: install run: yarn @@ -116,9 +115,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2.4.0 + - uses: actions/setup-node@v2 with: - node-version: 14.x + node-version: 16 cache: yarn - name: install run: yarn @@ -139,9 +138,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2.4.0 + - uses: actions/setup-node@v2 with: - node-version: 14.x + node-version: 16 cache: yarn - name: install run: yarn diff --git a/package.json b/package.json index a0c5a9bfa..dfa793414 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ ] }, "dependencies": { - "@typescript-eslint/experimental-utils": "^4.0.1" + "@typescript-eslint/experimental-utils": "^5.0.0-0" }, "devDependencies": { "@babel/cli": "^7.4.4", @@ -95,18 +95,18 @@ "@types/jest": "^27.0.0", "@types/node": "^14.0.0", "@types/prettier": "^2.0.0", - "@typescript-eslint/eslint-plugin": "^4.0.1", - "@typescript-eslint/parser": "^4.0.1", + "@typescript-eslint/eslint-plugin": "^5.0.0-0", + "@typescript-eslint/parser": "^5.0.0-0", "babel-jest": "^27.0.0", "babel-plugin-replace-ts-export-assignment": "^0.0.2", "dedent": "^0.7.0", - "eslint": "^6.0.0 || ^7.0.0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0-0", "eslint-config-prettier": "^8.3.0", - "eslint-plugin-eslint-comments": "^3.1.2", + "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-eslint-config": "^2.0.0", "eslint-plugin-eslint-plugin": "^3.5.3", - "eslint-plugin-import": "^2.20.2", - "eslint-plugin-node": "^11.0.0", + "eslint-plugin-import": "^2.24.2", + "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^3.4.1", "husky": "^7.0.2", "is-ci": "^3.0.0", @@ -123,8 +123,8 @@ "typescript": "^4.4.0" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": ">= 4", - "eslint": ">=6" + "@typescript-eslint/eslint-plugin": "^4.0.0 || ^5.0.0-0", + "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0-0" }, "peerDependenciesMeta": { "@typescript-eslint/eslint-plugin": { diff --git a/src/index.ts b/src/index.ts index 1b9e77f35..6d524e1ff 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,13 +8,6 @@ type RuleModule = TSESLint.RuleModule & { meta: Required, 'docs'>>; }; -// can be removed once we've on v3: https://github.com/typescript-eslint/typescript-eslint/issues/2060 -declare module '@typescript-eslint/experimental-utils/dist/ts-eslint/Rule' { - export interface RuleMetaDataDocs { - suggestion?: boolean; - } -} - // copied from https://github.com/babel/babel/blob/d8da63c929f2d28c401571e2a43166678c555bc4/packages/babel-helpers/src/helpers.js#L602-L606 /* istanbul ignore next */ const interopRequireDefault = (obj: any): { default: any } => diff --git a/src/rules/__tests__/utils.test.ts b/src/rules/__tests__/utils.test.ts index 3732994e7..2e1dbf803 100644 --- a/src/rules/__tests__/utils.test.ts +++ b/src/rules/__tests__/utils.test.ts @@ -18,7 +18,6 @@ const rule = createRule({ name: __filename, meta: { docs: { - category: 'Possible Errors', description: 'Fake rule for testing AST guards', recommended: false, }, diff --git a/src/rules/consistent-test-it.ts b/src/rules/consistent-test-it.ts index 84d8dbeb2..632f42eb9 100644 --- a/src/rules/consistent-test-it.ts +++ b/src/rules/consistent-test-it.ts @@ -39,7 +39,6 @@ export default createRule< name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Have control over `test` and `it` usages', recommended: false, }, diff --git a/src/rules/expect-expect.ts b/src/rules/expect-expect.ts index ea2e1163e..587174de9 100644 --- a/src/rules/expect-expect.ts +++ b/src/rules/expect-expect.ts @@ -47,7 +47,6 @@ export default createRule< name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Enforce assertion to be made in a test body', recommended: 'warn', }, diff --git a/src/rules/lowercase-name.ts b/src/rules/lowercase-name.ts index 8b67cfa59..5a81e1643 100644 --- a/src/rules/lowercase-name.ts +++ b/src/rules/lowercase-name.ts @@ -51,7 +51,6 @@ export default createRule< type: 'suggestion', docs: { description: 'Enforce lowercase test names', - category: 'Best Practices', recommended: false, }, fixable: 'code', diff --git a/src/rules/max-nested-describe.ts b/src/rules/max-nested-describe.ts index d273072d5..1e02c7c01 100644 --- a/src/rules/max-nested-describe.ts +++ b/src/rules/max-nested-describe.ts @@ -8,7 +8,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Enforces a maximum depth to nested describe calls', recommended: false, }, diff --git a/src/rules/no-alias-methods.ts b/src/rules/no-alias-methods.ts index 1055053dd..03ddb9519 100644 --- a/src/rules/no-alias-methods.ts +++ b/src/rules/no-alias-methods.ts @@ -4,7 +4,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow alias methods', recommended: false, }, diff --git a/src/rules/no-commented-out-tests.ts b/src/rules/no-commented-out-tests.ts index 82e15a88d..22da9a728 100644 --- a/src/rules/no-commented-out-tests.ts +++ b/src/rules/no-commented-out-tests.ts @@ -11,7 +11,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow commented out tests', recommended: 'warn', }, diff --git a/src/rules/no-conditional-expect.ts b/src/rules/no-conditional-expect.ts index 6d35d3801..d2e6b162f 100644 --- a/src/rules/no-conditional-expect.ts +++ b/src/rules/no-conditional-expect.ts @@ -22,7 +22,6 @@ export default createRule({ meta: { docs: { description: 'Prevent calling `expect` conditionally', - category: 'Best Practices', recommended: 'error', }, messages: { diff --git a/src/rules/no-deprecated-functions.ts b/src/rules/no-deprecated-functions.ts index 94d56aa20..38f908d59 100644 --- a/src/rules/no-deprecated-functions.ts +++ b/src/rules/no-deprecated-functions.ts @@ -65,7 +65,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow use of deprecated functions', recommended: 'error', }, diff --git a/src/rules/no-disabled-tests.ts b/src/rules/no-disabled-tests.ts index 1ce0d6bf4..8a59659ca 100644 --- a/src/rules/no-disabled-tests.ts +++ b/src/rules/no-disabled-tests.ts @@ -4,7 +4,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow disabled tests', recommended: 'warn', }, diff --git a/src/rules/no-done-callback.ts b/src/rules/no-done-callback.ts index cae56123c..e9dc2ad16 100644 --- a/src/rules/no-done-callback.ts +++ b/src/rules/no-done-callback.ts @@ -33,7 +33,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Avoid using a callback in asynchronous tests and hooks', recommended: 'error', suggestion: true, @@ -47,6 +46,7 @@ export default createRule({ }, schema: [], type: 'suggestion', + hasSuggestions: true, }, defaultOptions: [], create(context) { diff --git a/src/rules/no-duplicate-hooks.ts b/src/rules/no-duplicate-hooks.ts index e8b02754a..0a7492017 100644 --- a/src/rules/no-duplicate-hooks.ts +++ b/src/rules/no-duplicate-hooks.ts @@ -11,7 +11,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow duplicate setup and teardown hooks', recommended: false, }, diff --git a/src/rules/no-export.ts b/src/rules/no-export.ts index e3c92d9cc..b5fcfb6d5 100644 --- a/src/rules/no-export.ts +++ b/src/rules/no-export.ts @@ -8,7 +8,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow using `exports` in files containing tests', recommended: 'error', }, diff --git a/src/rules/no-focused-tests.ts b/src/rules/no-focused-tests.ts index f971ccaad..2590f1c0a 100644 --- a/src/rules/no-focused-tests.ts +++ b/src/rules/no-focused-tests.ts @@ -38,7 +38,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow focused tests', recommended: 'error', suggestion: true, @@ -49,6 +48,7 @@ export default createRule({ }, schema: [], type: 'suggestion', + hasSuggestions: true, }, defaultOptions: [], create: context => ({ diff --git a/src/rules/no-hooks.ts b/src/rules/no-hooks.ts index 6894093bc..2053d3d5c 100644 --- a/src/rules/no-hooks.ts +++ b/src/rules/no-hooks.ts @@ -7,7 +7,6 @@ export default createRule< name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow setup and teardown hooks', recommended: false, }, diff --git a/src/rules/no-identical-title.ts b/src/rules/no-identical-title.ts index f83afb5f2..0885f69c0 100644 --- a/src/rules/no-identical-title.ts +++ b/src/rules/no-identical-title.ts @@ -21,7 +21,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow identical titles', recommended: 'error', }, diff --git a/src/rules/no-if.ts b/src/rules/no-if.ts index 18499c410..e5d78451b 100644 --- a/src/rules/no-if.ts +++ b/src/rules/no-if.ts @@ -41,7 +41,6 @@ export default createRule({ meta: { docs: { description: 'Disallow conditional logic', - category: 'Best Practices', recommended: false, }, messages: { diff --git a/src/rules/no-interpolation-in-snapshots.ts b/src/rules/no-interpolation-in-snapshots.ts index b267d3694..4bc3e99bc 100644 --- a/src/rules/no-interpolation-in-snapshots.ts +++ b/src/rules/no-interpolation-in-snapshots.ts @@ -5,7 +5,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow string interpolation inside snapshots', recommended: 'error', }, diff --git a/src/rules/no-jasmine-globals.ts b/src/rules/no-jasmine-globals.ts index a742f9ac8..f6ef341ef 100644 --- a/src/rules/no-jasmine-globals.ts +++ b/src/rules/no-jasmine-globals.ts @@ -10,7 +10,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow Jasmine globals', recommended: 'error', }, diff --git a/src/rules/no-jest-import.ts b/src/rules/no-jest-import.ts index a0ad90888..33e9f8b85 100644 --- a/src/rules/no-jest-import.ts +++ b/src/rules/no-jest-import.ts @@ -7,7 +7,6 @@ export default createRule({ type: 'problem', docs: { description: 'Disallow importing Jest', - category: 'Best Practices', recommended: 'error', }, messages: { diff --git a/src/rules/no-large-snapshots.ts b/src/rules/no-large-snapshots.ts index 3c26548f5..0c3ad36e6 100644 --- a/src/rules/no-large-snapshots.ts +++ b/src/rules/no-large-snapshots.ts @@ -75,7 +75,6 @@ export default createRule<[RuleOptions], MessageId>({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'disallow large snapshots', recommended: false, }, diff --git a/src/rules/no-mocks-import.ts b/src/rules/no-mocks-import.ts index fd86b9873..d42011549 100644 --- a/src/rules/no-mocks-import.ts +++ b/src/rules/no-mocks-import.ts @@ -17,7 +17,6 @@ export default createRule({ meta: { type: 'problem', docs: { - category: 'Best Practices', description: 'Disallow manually importing from `__mocks__`', recommended: 'error', }, diff --git a/src/rules/no-restricted-matchers.ts b/src/rules/no-restricted-matchers.ts index d439ecd5b..474468a35 100644 --- a/src/rules/no-restricted-matchers.ts +++ b/src/rules/no-restricted-matchers.ts @@ -7,7 +7,6 @@ export default createRule< name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow specific matchers & modifiers', recommended: false, }, diff --git a/src/rules/no-standalone-expect.ts b/src/rules/no-standalone-expect.ts index 7f5e02820..dc73e935c 100644 --- a/src/rules/no-standalone-expect.ts +++ b/src/rules/no-standalone-expect.ts @@ -55,7 +55,6 @@ export default createRule< name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow using `expect` outside of `it` or `test` blocks', recommended: 'error', }, diff --git a/src/rules/no-test-prefixes.ts b/src/rules/no-test-prefixes.ts index 9b30d68c8..d16b9fde5 100644 --- a/src/rules/no-test-prefixes.ts +++ b/src/rules/no-test-prefixes.ts @@ -10,7 +10,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Use `.only` and `.skip` over `f` and `x`', recommended: 'error', }, diff --git a/src/rules/no-test-return-statement.ts b/src/rules/no-test-return-statement.ts index 35cb9c9fd..6d2f08b8e 100644 --- a/src/rules/no-test-return-statement.ts +++ b/src/rules/no-test-return-statement.ts @@ -27,7 +27,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Disallow explicitly returning from tests', recommended: false, }, diff --git a/src/rules/prefer-called-with.ts b/src/rules/prefer-called-with.ts index 70e207f6e..17fd848d8 100644 --- a/src/rules/prefer-called-with.ts +++ b/src/rules/prefer-called-with.ts @@ -4,7 +4,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`', recommended: false, diff --git a/src/rules/prefer-expect-assertions.ts b/src/rules/prefer-expect-assertions.ts index fb8eb41ca..f5b979f0e 100644 --- a/src/rules/prefer-expect-assertions.ts +++ b/src/rules/prefer-expect-assertions.ts @@ -64,7 +64,6 @@ export default createRule<[RuleOptions], MessageIds>({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Suggest using `expect.assertions()` OR `expect.hasAssertions()`', recommended: false, @@ -84,6 +83,7 @@ export default createRule<[RuleOptions], MessageIds>({ suggestRemovingExtraArguments: 'Remove extra arguments', }, type: 'suggestion', + hasSuggestions: true, schema: [ { type: 'object', diff --git a/src/rules/prefer-hooks-on-top.ts b/src/rules/prefer-hooks-on-top.ts index 1a393a319..2380fb7a2 100644 --- a/src/rules/prefer-hooks-on-top.ts +++ b/src/rules/prefer-hooks-on-top.ts @@ -4,7 +4,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Suggest having hooks before any test cases', recommended: false, }, diff --git a/src/rules/prefer-spy-on.ts b/src/rules/prefer-spy-on.ts index 085694217..80537bf4a 100644 --- a/src/rules/prefer-spy-on.ts +++ b/src/rules/prefer-spy-on.ts @@ -46,7 +46,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Suggest using `jest.spyOn()`', recommended: false, }, diff --git a/src/rules/prefer-strict-equal.ts b/src/rules/prefer-strict-equal.ts index 559cd990b..d04b3426b 100644 --- a/src/rules/prefer-strict-equal.ts +++ b/src/rules/prefer-strict-equal.ts @@ -10,7 +10,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Suggest using `toStrictEqual()`', recommended: false, suggestion: true, @@ -20,6 +19,7 @@ export default createRule({ suggestReplaceWithStrictEqual: 'Replace with `toStrictEqual()`', }, type: 'suggestion', + hasSuggestions: true, schema: [], }, defaultOptions: [], diff --git a/src/rules/prefer-to-be-null.ts b/src/rules/prefer-to-be-null.ts index 4d44e47b2..7ef1a030f 100644 --- a/src/rules/prefer-to-be-null.ts +++ b/src/rules/prefer-to-be-null.ts @@ -34,7 +34,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Suggest using `toBeNull()`', recommended: false, }, diff --git a/src/rules/prefer-to-be-undefined.ts b/src/rules/prefer-to-be-undefined.ts index 859429cc6..66bacbfe7 100644 --- a/src/rules/prefer-to-be-undefined.ts +++ b/src/rules/prefer-to-be-undefined.ts @@ -39,7 +39,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Suggest using `toBeUndefined()`', recommended: false, }, diff --git a/src/rules/prefer-to-contain.ts b/src/rules/prefer-to-contain.ts index b13439f81..9c6c24822 100644 --- a/src/rules/prefer-to-contain.ts +++ b/src/rules/prefer-to-contain.ts @@ -159,7 +159,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Suggest using `toContain()`', recommended: false, }, diff --git a/src/rules/prefer-to-have-length.ts b/src/rules/prefer-to-have-length.ts index 4da493aff..c587d6df7 100644 --- a/src/rules/prefer-to-have-length.ts +++ b/src/rules/prefer-to-have-length.ts @@ -11,7 +11,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Suggest using `toHaveLength()`', recommended: false, }, diff --git a/src/rules/prefer-todo.ts b/src/rules/prefer-todo.ts index 56841ce5d..80af317a2 100644 --- a/src/rules/prefer-todo.ts +++ b/src/rules/prefer-todo.ts @@ -45,7 +45,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Suggest using `test.todo`', recommended: false, }, diff --git a/src/rules/require-to-throw-message.ts b/src/rules/require-to-throw-message.ts index 0e0978002..fdf74a48f 100644 --- a/src/rules/require-to-throw-message.ts +++ b/src/rules/require-to-throw-message.ts @@ -9,7 +9,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Require a message for `toThrow()`', recommended: false, }, diff --git a/src/rules/require-top-level-describe.ts b/src/rules/require-top-level-describe.ts index 73509c0f3..40403d585 100644 --- a/src/rules/require-top-level-describe.ts +++ b/src/rules/require-top-level-describe.ts @@ -5,7 +5,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Require test cases and hooks to be inside a `describe` block', recommended: false, diff --git a/src/rules/unbound-method.ts b/src/rules/unbound-method.ts index 77e8fd0d6..c96d7a524 100644 --- a/src/rules/unbound-method.ts +++ b/src/rules/unbound-method.ts @@ -75,7 +75,6 @@ export default createRule({ type: 'problem', ...baseRule?.meta, docs: { - category: 'Best Practices', description: 'Enforces unbound methods are called with their expected scope', requiresTypeChecking: true, diff --git a/src/rules/valid-describe.ts b/src/rules/valid-describe.ts index 2f19094e2..ea1c8ab4d 100644 --- a/src/rules/valid-describe.ts +++ b/src/rules/valid-describe.ts @@ -21,7 +21,6 @@ export default createRule({ meta: { type: 'problem', docs: { - category: 'Possible Errors', description: 'Enforce valid `describe()` callback', recommended: 'error', }, diff --git a/src/rules/valid-expect-in-promise.ts b/src/rules/valid-expect-in-promise.ts index dc30aae26..6794fa45d 100644 --- a/src/rules/valid-expect-in-promise.ts +++ b/src/rules/valid-expect-in-promise.ts @@ -151,7 +151,6 @@ export default createRule({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Enforce having return statement when testing with promises', recommended: 'error', }, diff --git a/src/rules/valid-expect.ts b/src/rules/valid-expect.ts index f0118b987..6c447e4c1 100644 --- a/src/rules/valid-expect.ts +++ b/src/rules/valid-expect.ts @@ -123,7 +123,6 @@ export default createRule< name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Enforce valid `expect()` usage', recommended: 'error', }, diff --git a/src/rules/valid-title.ts b/src/rules/valid-title.ts index 6902f1262..21ac37d5e 100644 --- a/src/rules/valid-title.ts +++ b/src/rules/valid-title.ts @@ -78,7 +78,6 @@ export default createRule<[Options], MessageIds>({ name: __filename, meta: { docs: { - category: 'Best Practices', description: 'Enforce valid titles', recommended: 'error', }, diff --git a/tools/regenerate-docs.ts b/tools/regenerate-docs.ts index b8707a132..546e3fefc 100644 --- a/tools/regenerate-docs.ts +++ b/tools/regenerate-docs.ts @@ -114,7 +114,7 @@ const details: RuleDetails[] = Object.keys(config.configs.all.rules) description: rule.meta.docs.description, fixable: rule.meta.fixable ? 'fixable' - : rule.meta.docs.suggestion + : rule.meta.hasSuggestions ? 'suggest' : false, requiresTypeChecking: rule.meta.docs.requiresTypeChecking ?? false, diff --git a/yarn.lock b/yarn.lock index a58d4dbe4..e017c24c8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -32,15 +32,6 @@ __metadata: languageName: node linkType: hard -"@babel/code-frame@npm:7.12.11": - version: 7.12.11 - resolution: "@babel/code-frame@npm:7.12.11" - dependencies: - "@babel/highlight": ^7.10.4 - checksum: 3963eff3ebfb0e091c7e6f99596ef4b258683e4ba8a134e4e95f77afe85be5c931e184fff6435fb4885d12eba04a5e25532f7fbc292ca13b48e7da943474e2f3 - languageName: node - linkType: hard - "@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.12.13, @babel/code-frame@npm:^7.14.5": version: 7.14.5 resolution: "@babel/code-frame@npm:7.14.5" @@ -345,7 +336,7 @@ __metadata: languageName: node linkType: hard -"@babel/highlight@npm:^7.10.4, @babel/highlight@npm:^7.14.5": +"@babel/highlight@npm:^7.14.5": version: 7.14.5 resolution: "@babel/highlight@npm:7.14.5" dependencies: @@ -1495,20 +1486,20 @@ __metadata: languageName: node linkType: hard -"@eslint/eslintrc@npm:^0.4.3": - version: 0.4.3 - resolution: "@eslint/eslintrc@npm:0.4.3" +"@eslint/eslintrc@npm:^1.0.1": + version: 1.0.1 + resolution: "@eslint/eslintrc@npm:1.0.1" dependencies: ajv: ^6.12.4 - debug: ^4.1.1 - espree: ^7.3.0 + debug: ^4.3.2 + espree: ^9.0.0 globals: ^13.9.0 ignore: ^4.0.6 import-fresh: ^3.2.1 js-yaml: ^3.13.1 minimatch: ^3.0.4 strip-json-comments: ^3.1.1 - checksum: 03a7704150b868c318aab6a94d87a33d30dc2ec579d27374575014f06237ba1370ae11178db772f985ef680d469dc237e7b16a1c5d8edaaeb8c3733e7a95a6d3 + checksum: 0d0919e4f51be1e760e0370789bbd8051db323bd85ec427c693398f63c4f441b828199232bf538161a18ab76100e071902e8b3f7e92c2bee34d17da3d070e9f6 languageName: node linkType: hard @@ -1519,14 +1510,14 @@ __metadata: languageName: node linkType: hard -"@humanwhocodes/config-array@npm:^0.5.0": - version: 0.5.0 - resolution: "@humanwhocodes/config-array@npm:0.5.0" +"@humanwhocodes/config-array@npm:^0.6.0": + version: 0.6.0 + resolution: "@humanwhocodes/config-array@npm:0.6.0" dependencies: "@humanwhocodes/object-schema": ^1.2.0 debug: ^4.1.1 minimatch: ^3.0.4 - checksum: 44ee6a9f05d93dd9d5935a006b17572328ba9caff8002442f601736cbda79c580cc0f5a49ce9eb88fbacc5c3a6b62098357c2e95326cd17bb9f1a6c61d6e95e7 + checksum: 1025b07514b7bfd10a05e8b6cb5e6520878e9c8836b3dd0569fc07df29a09e428c2df1e0760b1d461da8ed6f81ca83ecb02e24198f80b0a177a2acbf532e267c languageName: node linkType: hard @@ -2483,12 +2474,12 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/eslint-plugin@npm:^4.0.1": - version: 4.31.0 - resolution: "@typescript-eslint/eslint-plugin@npm:4.31.0" +"@typescript-eslint/eslint-plugin@npm:^5.0.0-0": + version: 5.0.0-alpha.39 + resolution: "@typescript-eslint/eslint-plugin@npm:5.0.0-alpha.39" dependencies: - "@typescript-eslint/experimental-utils": 4.31.0 - "@typescript-eslint/scope-manager": 4.31.0 + "@typescript-eslint/experimental-utils": 5.0.0-alpha.39+f487ee7d + "@typescript-eslint/scope-manager": 5.0.0-alpha.39+f487ee7d debug: ^4.3.1 functional-red-black-tree: ^1.0.1 regexpp: ^3.1.0 @@ -2496,15 +2487,31 @@ __metadata: tsutils: ^3.21.0 peerDependencies: "@typescript-eslint/parser": ^4.0.0 - eslint: ^5.0.0 || ^6.0.0 || ^7.0.0 + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0-0 peerDependenciesMeta: typescript: optional: true - checksum: 3a285a55d493b427644ab864d36b2abc663b1c2707a0bccb748a56e4e8025275025f8268d70dfea7ca2f82fe54a64de4c5634d4552c72a81d6f17a7ab20d5f87 + checksum: 6c2113bfb5983df52a9b75deb05e57b80217dbf63be24bf0aef65836b5af120964d6afd8240d597670409a8ae481eb175ad02ce503b8a7b18d1d448d881c1e21 languageName: node linkType: hard -"@typescript-eslint/experimental-utils@npm:4.31.0, @typescript-eslint/experimental-utils@npm:^4.0.1, @typescript-eslint/experimental-utils@npm:^4.11.1": +"@typescript-eslint/experimental-utils@npm:5.0.0-alpha.39+f487ee7d, @typescript-eslint/experimental-utils@npm:^5.0.0-0": + version: 5.0.0-alpha.39 + resolution: "@typescript-eslint/experimental-utils@npm:5.0.0-alpha.39" + dependencies: + "@types/json-schema": ^7.0.7 + "@typescript-eslint/scope-manager": 5.0.0-alpha.39+f487ee7d + "@typescript-eslint/types": 5.0.0-alpha.39+f487ee7d + "@typescript-eslint/typescript-estree": 5.0.0-alpha.39+f487ee7d + eslint-scope: ^5.1.1 + eslint-utils: ^3.0.0 + peerDependencies: + eslint: "*" + checksum: e62cf080b6e260a9531fbb87a88ceb2184ca37b3b31076a8d76b07d4a09e51e60edc56c1a30fb889301ea736f607eefef2c7e1abd7840c5afed5426557841b20 + languageName: node + linkType: hard + +"@typescript-eslint/experimental-utils@npm:^4.11.1": version: 4.31.0 resolution: "@typescript-eslint/experimental-utils@npm:4.31.0" dependencies: @@ -2520,20 +2527,20 @@ __metadata: languageName: node linkType: hard -"@typescript-eslint/parser@npm:^4.0.1": - version: 4.31.0 - resolution: "@typescript-eslint/parser@npm:4.31.0" +"@typescript-eslint/parser@npm:^5.0.0-0": + version: 5.0.0-alpha.39 + resolution: "@typescript-eslint/parser@npm:5.0.0-alpha.39" dependencies: - "@typescript-eslint/scope-manager": 4.31.0 - "@typescript-eslint/types": 4.31.0 - "@typescript-eslint/typescript-estree": 4.31.0 + "@typescript-eslint/scope-manager": 5.0.0-alpha.39+f487ee7d + "@typescript-eslint/types": 5.0.0-alpha.39+f487ee7d + "@typescript-eslint/typescript-estree": 5.0.0-alpha.39+f487ee7d debug: ^4.3.1 peerDependencies: - eslint: ^5.0.0 || ^6.0.0 || ^7.0.0 + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0-0 peerDependenciesMeta: typescript: optional: true - checksum: 368856dc10ab8ea01f8cd670b48832e20216393a9153b92ee53d4ebba9e1832dfcf1d15b69d76978147f5ac667095bc841eb6211ec71e5a615fbda2a2a689ad4 + checksum: ddc460cd41f83271dabaa670a366f1ba94195fc11af9056427c53036c9129c9aef8d071507e30b52775b4b22b02f0851737df7983c403d482216fe853e0a0fd0 languageName: node linkType: hard @@ -2547,6 +2554,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/scope-manager@npm:5.0.0-alpha.39+f487ee7d": + version: 5.0.0-alpha.39 + resolution: "@typescript-eslint/scope-manager@npm:5.0.0-alpha.39" + dependencies: + "@typescript-eslint/types": 5.0.0-alpha.39+f487ee7d + "@typescript-eslint/visitor-keys": 5.0.0-alpha.39+f487ee7d + checksum: fef5ca70d70bd9cc753a5f164223c8fe19e8ef249835f0d1b9e034a6d6453aa67dbe01eb5d398ad28f238936790439f93dc202e77f9158909c53ee7cca4acffb + languageName: node + linkType: hard + "@typescript-eslint/types@npm:4.31.0": version: 4.31.0 resolution: "@typescript-eslint/types@npm:4.31.0" @@ -2554,6 +2571,13 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/types@npm:5.0.0-alpha.39+f487ee7d": + version: 5.0.0-alpha.39 + resolution: "@typescript-eslint/types@npm:5.0.0-alpha.39" + checksum: 2b4bc75bdacd35e04c166992cc0fb3366db2dd8513f613cac6e5f162abf217c6a467e4dca3115ddbed1ee94fd5469b1a5e3b719bf1e3c6cd945656c7360e99b3 + languageName: node + linkType: hard + "@typescript-eslint/typescript-estree@npm:4.31.0": version: 4.31.0 resolution: "@typescript-eslint/typescript-estree@npm:4.31.0" @@ -2572,6 +2596,24 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/typescript-estree@npm:5.0.0-alpha.39+f487ee7d": + version: 5.0.0-alpha.39 + resolution: "@typescript-eslint/typescript-estree@npm:5.0.0-alpha.39" + dependencies: + "@typescript-eslint/types": 5.0.0-alpha.39+f487ee7d + "@typescript-eslint/visitor-keys": 5.0.0-alpha.39+f487ee7d + debug: ^4.3.1 + globby: ^11.0.3 + is-glob: ^4.0.1 + semver: ^7.3.5 + tsutils: ^3.21.0 + peerDependenciesMeta: + typescript: + optional: true + checksum: 380b89f916b613ebc58e4b336404268945c9207d7b53f95fb61ed40877d9e8379f24152f701c9bde826fb443120d1ef4d03f6cfac30bde0efc9c2be2c244bee4 + languageName: node + linkType: hard + "@typescript-eslint/visitor-keys@npm:4.31.0": version: 4.31.0 resolution: "@typescript-eslint/visitor-keys@npm:4.31.0" @@ -2582,6 +2624,16 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/visitor-keys@npm:5.0.0-alpha.39+f487ee7d": + version: 5.0.0-alpha.39 + resolution: "@typescript-eslint/visitor-keys@npm:5.0.0-alpha.39" + dependencies: + "@typescript-eslint/types": 5.0.0-alpha.39+f487ee7d + eslint-visitor-keys: ^3.0.0 + checksum: a4b19ae4ae8a46ee88a44f705aaca2ba7d69430ea8bcc135b063893afcd6effdf57271ac09a2ad08b0a28c3d2061d8073608c69b6205bd10a69c433e7ed23490 + languageName: node + linkType: hard + "JSONStream@npm:^1.0.4": version: 1.3.5 resolution: "JSONStream@npm:1.3.5" @@ -2641,7 +2693,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^7.1.1, acorn@npm:^7.4.0": +"acorn@npm:^7.1.1": version: 7.4.1 resolution: "acorn@npm:7.4.1" bin: @@ -2650,7 +2702,7 @@ __metadata: languageName: node linkType: hard -"acorn@npm:^8.2.4, acorn@npm:^8.4.1": +"acorn@npm:^8.2.4, acorn@npm:^8.4.1, acorn@npm:^8.5.0": version: 8.5.0 resolution: "acorn@npm:8.5.0" bin: @@ -2701,18 +2753,6 @@ __metadata: languageName: node linkType: hard -"ajv@npm:^8.0.1": - version: 8.6.3 - resolution: "ajv@npm:8.6.3" - dependencies: - fast-deep-equal: ^3.1.1 - json-schema-traverse: ^1.0.0 - require-from-string: ^2.0.2 - uri-js: ^4.2.2 - checksum: 690ffb9408415fdab43686b3f92037ba0c8362f5d0709a123ba3fb546e6ad81414455f80a2b5cc432ce924afe9864671198f022bc331a19c072d4ede152ec3ca - languageName: node - linkType: hard - "ansi-colors@npm:^4.1.1": version: 4.1.1 resolution: "ansi-colors@npm:4.1.1" @@ -2866,6 +2906,13 @@ __metadata: languageName: node linkType: hard +"argparse@npm:^2.0.1": + version: 2.0.1 + resolution: "argparse@npm:2.0.1" + checksum: 83644b56493e89a254bae05702abf3a1101b4fa4d0ca31df1c9985275a5a5bd47b3c27b7fa0b71098d41114d8ca000e6ed90cad764b306f8a503665e4d517ced + languageName: node + linkType: hard + "argv-formatter@npm:~1.0.0": version: 1.0.0 resolution: "argv-formatter@npm:1.0.0" @@ -3999,7 +4046,7 @@ __metadata: languageName: node linkType: hard -"debug@npm:4, debug@npm:^4.0.0, debug@npm:^4.0.1, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1": +"debug@npm:4, debug@npm:^4.0.0, debug@npm:^4.1.0, debug@npm:^4.1.1, debug@npm:^4.3.1, debug@npm:^4.3.2": version: 4.3.2 resolution: "debug@npm:4.3.2" dependencies: @@ -4495,7 +4542,7 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-eslint-comments@npm:^3.1.2": +"eslint-plugin-eslint-comments@npm:^3.2.0": version: 3.2.0 resolution: "eslint-plugin-eslint-comments@npm:3.2.0" dependencies: @@ -4530,7 +4577,7 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-import@npm:^2.20.2": +"eslint-plugin-import@npm:^2.24.2": version: 2.24.2 resolution: "eslint-plugin-import@npm:2.24.2" dependencies: @@ -4572,19 +4619,19 @@ __metadata: "@types/jest": ^27.0.0 "@types/node": ^14.0.0 "@types/prettier": ^2.0.0 - "@typescript-eslint/eslint-plugin": ^4.0.1 - "@typescript-eslint/experimental-utils": ^4.0.1 - "@typescript-eslint/parser": ^4.0.1 + "@typescript-eslint/eslint-plugin": ^5.0.0-0 + "@typescript-eslint/experimental-utils": ^5.0.0-0 + "@typescript-eslint/parser": ^5.0.0-0 babel-jest: ^27.0.0 babel-plugin-replace-ts-export-assignment: ^0.0.2 dedent: ^0.7.0 - eslint: ^6.0.0 || ^7.0.0 + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0-0 eslint-config-prettier: ^8.3.0 - eslint-plugin-eslint-comments: ^3.1.2 + eslint-plugin-eslint-comments: ^3.2.0 eslint-plugin-eslint-config: ^2.0.0 eslint-plugin-eslint-plugin: ^3.5.3 - eslint-plugin-import: ^2.20.2 - eslint-plugin-node: ^11.0.0 + eslint-plugin-import: ^2.24.2 + eslint-plugin-node: ^11.1.0 eslint-plugin-prettier: ^3.4.1 husky: ^7.0.2 is-ci: ^3.0.0 @@ -4600,15 +4647,15 @@ __metadata: ts-node: ^10.2.1 typescript: ^4.4.0 peerDependencies: - "@typescript-eslint/eslint-plugin": ">= 4" - eslint: ">=6" + "@typescript-eslint/eslint-plugin": ^4.0.0 || ^5.0.0-0 + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0-0 peerDependenciesMeta: "@typescript-eslint/eslint-plugin": optional: true languageName: unknown linkType: soft -"eslint-plugin-node@npm:^11.0.0": +"eslint-plugin-node@npm:^11.1.0": version: 11.1.0 resolution: "eslint-plugin-node@npm:11.1.0" dependencies: @@ -4649,6 +4696,16 @@ __metadata: languageName: node linkType: hard +"eslint-scope@npm:^6.0.0": + version: 6.0.0 + resolution: "eslint-scope@npm:6.0.0" + dependencies: + esrecurse: ^4.3.0 + estraverse: ^5.2.0 + checksum: 3f1b3578f288c3820f68ad2aae102300e546be8a98a958f515405dc20cc2fe64fda583d364977628bb14fe3d4f96f37de5e9bc5d6eb26bc310da33ba2a677dc3 + languageName: node + linkType: hard + "eslint-utils@npm:^2.0.0, eslint-utils@npm:^2.1.0": version: 2.1.0 resolution: "eslint-utils@npm:2.1.0" @@ -4669,7 +4726,7 @@ __metadata: languageName: node linkType: hard -"eslint-visitor-keys@npm:^1.1.0, eslint-visitor-keys@npm:^1.3.0": +"eslint-visitor-keys@npm:^1.1.0": version: 1.3.0 resolution: "eslint-visitor-keys@npm:1.3.0" checksum: 37a19b712f42f4c9027e8ba98c2b06031c17e0c0a4c696cd429bd9ee04eb43889c446f2cd545e1ff51bef9593fcec94ecd2c2ef89129fcbbf3adadbef520376a @@ -4683,36 +4740,42 @@ __metadata: languageName: node linkType: hard -"eslint@npm:^6.0.0 || ^7.0.0": - version: 7.32.0 - resolution: "eslint@npm:7.32.0" +"eslint-visitor-keys@npm:^3.0.0": + version: 3.0.0 + resolution: "eslint-visitor-keys@npm:3.0.0" + checksum: 352607f367a2e0e2f9f234e40d6d9b34c39399345b8a9f204e1343749ddfae505d8343909cba6c4abc2ca03add4cdc0530af5e98f870ad7183fc2a89458669e5 + languageName: node + linkType: hard + +"eslint@npm:8.0.0-beta.2, eslint@npm:^6.0.0 || ^7.0.0 || ^8.0.0-0": + version: 8.0.0-beta.2 + resolution: "eslint@npm:8.0.0-beta.2" dependencies: - "@babel/code-frame": 7.12.11 - "@eslint/eslintrc": ^0.4.3 - "@humanwhocodes/config-array": ^0.5.0 + "@eslint/eslintrc": ^1.0.1 + "@humanwhocodes/config-array": ^0.6.0 ajv: ^6.10.0 chalk: ^4.0.0 cross-spawn: ^7.0.2 - debug: ^4.0.1 + debug: ^4.3.2 doctrine: ^3.0.0 enquirer: ^2.3.5 escape-string-regexp: ^4.0.0 - eslint-scope: ^5.1.1 - eslint-utils: ^2.1.0 - eslint-visitor-keys: ^2.0.0 - espree: ^7.3.1 + eslint-scope: ^6.0.0 + eslint-utils: ^3.0.0 + eslint-visitor-keys: ^3.0.0 + espree: ^9.0.0 esquery: ^1.4.0 esutils: ^2.0.2 fast-deep-equal: ^3.1.3 file-entry-cache: ^6.0.1 functional-red-black-tree: ^1.0.1 - glob-parent: ^5.1.2 + glob-parent: ^6.0.1 globals: ^13.6.0 ignore: ^4.0.6 import-fresh: ^3.0.0 imurmurhash: ^0.1.4 is-glob: ^4.0.0 - js-yaml: ^3.13.1 + js-yaml: ^4.1.0 json-stable-stringify-without-jsonify: ^1.0.1 levn: ^0.4.1 lodash.merge: ^4.6.2 @@ -4720,27 +4783,26 @@ __metadata: natural-compare: ^1.4.0 optionator: ^0.9.1 progress: ^2.0.0 - regexpp: ^3.1.0 + regexpp: ^3.2.0 semver: ^7.2.1 strip-ansi: ^6.0.0 strip-json-comments: ^3.1.0 - table: ^6.0.9 text-table: ^0.2.0 v8-compile-cache: ^2.0.3 bin: eslint: bin/eslint.js - checksum: cc85af9985a3a11085c011f3d27abe8111006d34cc274291b3c4d7bea51a4e2ff6135780249becd919ba7f6d6d1ecc38a6b73dacb6a7be08d38453b344dc8d37 + checksum: 720e4f0aa46ec09f1a7f9e7bcf75e817ffcebb9c74d91e42b7a1956a7cf153f700a209a41079dd78af3494be4ff0fa2bc03768dd42118f2733774b54f6114636 languageName: node linkType: hard -"espree@npm:^7.3.0, espree@npm:^7.3.1": - version: 7.3.1 - resolution: "espree@npm:7.3.1" +"espree@npm:^9.0.0": + version: 9.0.0 + resolution: "espree@npm:9.0.0" dependencies: - acorn: ^7.4.0 + acorn: ^8.5.0 acorn-jsx: ^5.3.1 - eslint-visitor-keys: ^1.3.0 - checksum: aa9b50dcce883449af2e23bc2b8d9abb77118f96f4cb313935d6b220f77137eaef7724a83c3f6243b96bc0e4ab14766198e60818caad99f9519ae5a336a39b45 + eslint-visitor-keys: ^3.0.0 + checksum: f313c642e35587ce62a419f57ceea47937a719b084c7b31f649d2ca15ed92bc2dde58e2ac4fc381a74364b0db0b97d9cdb2a5d1ca0ccd7483bde9b4b04fe23e8 languageName: node linkType: hard @@ -5380,6 +5442,15 @@ __metadata: languageName: node linkType: hard +"glob-parent@npm:^6.0.1": + version: 6.0.1 + resolution: "glob-parent@npm:6.0.1" + dependencies: + is-glob: ^4.0.1 + checksum: 0468cf300b8c7a483dbd8c031704fa1003331cbc65ded095f768328ed35eec78dd199c224c7436db997569863c0cbc0b7fd7c3cb45508e6134c502be9e691dc5 + languageName: node + linkType: hard + "glob@npm:*, glob@npm:^7.0.0, glob@npm:^7.1.1, glob@npm:^7.1.2, glob@npm:^7.1.3, glob@npm:^7.1.4, glob@npm:^7.1.6": version: 7.1.7 resolution: "glob@npm:7.1.7" @@ -6889,6 +6960,17 @@ __metadata: languageName: node linkType: hard +"js-yaml@npm:^4.1.0": + version: 4.1.0 + resolution: "js-yaml@npm:4.1.0" + dependencies: + argparse: ^2.0.1 + bin: + js-yaml: bin/js-yaml.js + checksum: c7830dfd456c3ef2c6e355cc5a92e6700ceafa1d14bba54497b34a99f0376cecbb3e9ac14d3e5849b426d5a5140709a66237a8c991c675431271c4ce5504151a + languageName: node + linkType: hard + "jsbn@npm:~0.1.0": version: 0.1.1 resolution: "jsbn@npm:0.1.1" @@ -6975,13 +7057,6 @@ __metadata: languageName: node linkType: hard -"json-schema-traverse@npm:^1.0.0": - version: 1.0.0 - resolution: "json-schema-traverse@npm:1.0.0" - checksum: 02f2f466cdb0362558b2f1fd5e15cce82ef55d60cd7f8fa828cf35ba74330f8d767fcae5c5c2adb7851fa811766c694b9405810879bc4e1ddd78a7c0e03658ad - languageName: node - linkType: hard - "json-schema@npm:0.2.3": version: 0.2.3 resolution: "json-schema@npm:0.2.3" @@ -7371,13 +7446,6 @@ __metadata: languageName: node linkType: hard -"lodash.clonedeep@npm:^4.5.0": - version: 4.5.0 - resolution: "lodash.clonedeep@npm:4.5.0" - checksum: 92c46f094b064e876a23c97f57f81fbffd5d760bf2d8a1c61d85db6d1e488c66b0384c943abee4f6af7debf5ad4e4282e74ff83177c9e63d8ff081a4837c3489 - languageName: node - linkType: hard - "lodash.debounce@npm:^4.0.8": version: 4.0.8 resolution: "lodash.debounce@npm:4.0.8" @@ -7420,13 +7488,6 @@ __metadata: languageName: node linkType: hard -"lodash.truncate@npm:^4.4.2": - version: 4.4.2 - resolution: "lodash.truncate@npm:4.4.2" - checksum: b463d8a382cfb5f0e71c504dcb6f807a7bd379ff1ea216669aa42c52fc28c54e404bfbd96791aa09e6df0de2c1d7b8f1b7f4b1a61f324d38fe98bc535aeee4f5 - languageName: node - linkType: hard - "lodash.uniqby@npm:^4.7.0": version: 4.7.0 resolution: "lodash.uniqby@npm:4.7.0" @@ -9188,7 +9249,7 @@ __metadata: languageName: node linkType: hard -"regexpp@npm:^3.0.0, regexpp@npm:^3.1.0": +"regexpp@npm:^3.0.0, regexpp@npm:^3.1.0, regexpp@npm:^3.2.0": version: 3.2.0 resolution: "regexpp@npm:3.2.0" checksum: a78dc5c7158ad9ddcfe01aa9144f46e192ddbfa7b263895a70a5c6c73edd9ce85faf7c0430e59ac38839e1734e275b9c3de5c57ee3ab6edc0e0b1bdebefccef8 @@ -9292,13 +9353,6 @@ __metadata: languageName: node linkType: hard -"require-from-string@npm:^2.0.2": - version: 2.0.2 - resolution: "require-from-string@npm:2.0.2" - checksum: a03ef6895445f33a4015300c426699bc66b2b044ba7b670aa238610381b56d3f07c686251740d575e22f4c87531ba662d06937508f0f3c0f1ddc04db3130560b - languageName: node - linkType: hard - "require-relative@npm:^0.8.7": version: 0.8.7 resolution: "require-relative@npm:0.8.7" @@ -10166,20 +10220,6 @@ __metadata: languageName: node linkType: hard -"table@npm:^6.0.9": - version: 6.7.1 - resolution: "table@npm:6.7.1" - dependencies: - ajv: ^8.0.1 - lodash.clonedeep: ^4.5.0 - lodash.truncate: ^4.4.2 - slice-ansi: ^4.0.0 - string-width: ^4.2.0 - strip-ansi: ^6.0.0 - checksum: 053b61fa4e8f8396c65ff7a95da90e85620370932652d501ff7a0a3ed7317f1cc549702bd2abf2bd9ed01e20757b73a8b57374f8a8a2ac02fbe0550276263fb6 - languageName: node - linkType: hard - "tar@npm:*, tar@npm:^6.0.2, tar@npm:^6.1.0, tar@npm:^6.1.2": version: 6.1.11 resolution: "tar@npm:6.1.11"