From 8babf3a150e8551437a053d78584d5440596fab7 Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Sat, 4 Jul 2020 14:14:42 +0200 Subject: [PATCH] Update dependencies --- package.json | 14 +++++++------- test/assertion-arguments.js | 6 +++--- test/create-ava-rule.js | 6 +++--- test/hooks-order.js | 8 ++++---- test/max-asserts.js | 6 +++--- test/no-async-fn-without-await.js | 6 +++--- test/no-cb-test.js | 6 +++--- test/no-duplicate-modifiers.js | 6 +++--- test/no-identical-title.js | 6 +++--- test/no-ignored-test-files.js | 10 +++++----- test/no-import-test-files.js | 10 +++++----- test/no-incorrect-deep-equal.js | 6 +++--- test/no-inline-assertions.js | 6 +++--- test/no-invalid-end.js | 6 +++--- test/no-nested-tests.js | 6 +++--- test/no-only-test.js | 6 +++--- test/no-skip-assert.js | 6 +++--- test/no-skip-test.js | 6 +++--- test/no-statement-after-end.js | 6 +++--- test/no-todo-implementation.js | 6 +++--- test/no-todo-test.js | 6 +++--- test/no-unknown-modifiers.js | 6 +++--- test/package.js | 10 +++++----- test/prefer-async-await.js | 6 +++--- test/prefer-power-assert.js | 8 ++++---- test/prefer-t-regex.js | 6 +++--- test/test-ended.js | 6 +++--- test/test-title-format.js | 6 +++--- test/test-title.js | 6 +++--- test/use-t-throws-async-well.js | 6 +++--- test/use-t-well.js | 6 +++--- test/use-t.js | 6 +++--- test/use-test.js | 6 +++--- test/use-true-false.js | 6 +++--- test/util.js | 6 +++--- 35 files changed, 117 insertions(+), 117 deletions(-) diff --git a/package.json b/package.json index d9f0660c..5c954359 100644 --- a/package.json +++ b/package.json @@ -40,21 +40,21 @@ "resolve-from": "^5.0.0" }, "devDependencies": { - "ava": "^2.3.0", - "babel-eslint": "^10.0.2", + "ava": "^3.9.0", + "babel-eslint": "^10.1.0", "c8": "^7.2.0", "chalk": "^4.1.0", - "del": "^5.0.0", + "del": "^5.1.0", "eslint": "6.2.0", "eslint-ava-rule-tester": "^4.0.0", - "eslint-plugin-eslint-plugin": "^2.2.2", + "eslint-plugin-eslint-plugin": "^2.3.0", "execa": "^4.0.2", - "js-combinatorics": "^0.5.4", + "js-combinatorics": "^0.6.1", "listr": "^0.14.3", - "outdent": "^0.7.0", + "outdent": "^0.7.1", "pify": "^5.0.0", "tempy": "^0.5.0", - "xo": "^0.32.0" + "xo": "^0.32.1" }, "peerDependencies": { "eslint": ">=6.2.0" diff --git a/test/assertion-arguments.js b/test/assertion-arguments.js index 1bd446bc..05cb0332 100644 --- a/test/assertion-arguments.js +++ b/test/assertion-arguments.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/assertion-arguments'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/assertion-arguments'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/create-ava-rule.js b/test/create-ava-rule.js index dd101fda..897a2752 100644 --- a/test/create-ava-rule.js +++ b/test/create-ava-rule.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import createAvaRule from '../create-ava-rule'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const createAvaRule = require('../create-ava-rule'); const rule = { create: context => { diff --git a/test/hooks-order.js b/test/hooks-order.js index f91d8586..e0f9b63d 100644 --- a/test/hooks-order.js +++ b/test/hooks-order.js @@ -1,7 +1,7 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import {outdent} from 'outdent'; -import rule from '../rules/hooks-order'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const {outdent} = require('outdent'); +const rule = require('../rules/hooks-order'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/max-asserts.js b/test/max-asserts.js index 28b8feb5..85b995f7 100644 --- a/test/max-asserts.js +++ b/test/max-asserts.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/max-asserts'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/max-asserts'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-async-fn-without-await.js b/test/no-async-fn-without-await.js index cd0aecc7..eccafa47 100644 --- a/test/no-async-fn-without-await.js +++ b/test/no-async-fn-without-await.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-async-fn-without-await'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-async-fn-without-await'); const ruleId = 'no-async-fn-without-await'; const message = 'Function was declared as `async` but doesn\'t use `await`.'; diff --git a/test/no-cb-test.js b/test/no-cb-test.js index a6b9da73..65713a8b 100644 --- a/test/no-cb-test.js +++ b/test/no-cb-test.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-cb-test'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-cb-test'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-duplicate-modifiers.js b/test/no-duplicate-modifiers.js index aba4c324..7a167cf1 100644 --- a/test/no-duplicate-modifiers.js +++ b/test/no-duplicate-modifiers.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-duplicate-modifiers'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-duplicate-modifiers'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-identical-title.js b/test/no-identical-title.js index a52b4a8b..2d0a7259 100644 --- a/test/no-identical-title.js +++ b/test/no-identical-title.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-identical-title'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-identical-title'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-ignored-test-files.js b/test/no-ignored-test-files.js index 8a7ede82..caedbd0e 100644 --- a/test/no-ignored-test-files.js +++ b/test/no-ignored-test-files.js @@ -1,8 +1,8 @@ -import path from 'path'; -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import util from '../util'; -import rule from '../rules/no-ignored-test-files'; +const path = require('path'); +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const util = require('../util'); +const rule = require('../rules/no-ignored-test-files'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-import-test-files.js b/test/no-import-test-files.js index 54291880..80e70d97 100644 --- a/test/no-import-test-files.js +++ b/test/no-import-test-files.js @@ -1,8 +1,8 @@ -import path from 'path'; -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import util from '../util'; -import rule from '../rules/no-import-test-files'; +const path = require('path'); +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const util = require('../util'); +const rule = require('../rules/no-import-test-files'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-incorrect-deep-equal.js b/test/no-incorrect-deep-equal.js index f52f5ed9..d4476ace 100644 --- a/test/no-incorrect-deep-equal.js +++ b/test/no-incorrect-deep-equal.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-incorrect-deep-equal'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-incorrect-deep-equal'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-inline-assertions.js b/test/no-inline-assertions.js index 834aacfc..a4a396ee 100644 --- a/test/no-inline-assertions.js +++ b/test/no-inline-assertions.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-inline-assertions'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-inline-assertions'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-invalid-end.js b/test/no-invalid-end.js index 02c4a613..60f64c10 100644 --- a/test/no-invalid-end.js +++ b/test/no-invalid-end.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-invalid-end'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-invalid-end'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-nested-tests.js b/test/no-nested-tests.js index 7d23e1ea..dffc58a4 100644 --- a/test/no-nested-tests.js +++ b/test/no-nested-tests.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-nested-tests'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-nested-tests'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-only-test.js b/test/no-only-test.js index 6edfa84d..2b6da26a 100644 --- a/test/no-only-test.js +++ b/test/no-only-test.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-only-test'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-only-test'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-skip-assert.js b/test/no-skip-assert.js index 18b836fe..7b6a7720 100644 --- a/test/no-skip-assert.js +++ b/test/no-skip-assert.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-skip-assert'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-skip-assert'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-skip-test.js b/test/no-skip-test.js index 79e74ecc..f3b6e499 100644 --- a/test/no-skip-test.js +++ b/test/no-skip-test.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-skip-test'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-skip-test'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-statement-after-end.js b/test/no-statement-after-end.js index 49b87731..90b48bd5 100644 --- a/test/no-statement-after-end.js +++ b/test/no-statement-after-end.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-statement-after-end'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-statement-after-end'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-todo-implementation.js b/test/no-todo-implementation.js index 000dac07..ae94fe72 100644 --- a/test/no-todo-implementation.js +++ b/test/no-todo-implementation.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-todo-implementation'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-todo-implementation'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-todo-test.js b/test/no-todo-test.js index 2788153e..d97a6c94 100644 --- a/test/no-todo-test.js +++ b/test/no-todo-test.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-todo-test'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-todo-test'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/no-unknown-modifiers.js b/test/no-unknown-modifiers.js index 098d201d..e3523dbc 100644 --- a/test/no-unknown-modifiers.js +++ b/test/no-unknown-modifiers.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/no-unknown-modifiers'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/no-unknown-modifiers'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/package.js b/test/package.js index 8d701636..78c7ef6f 100644 --- a/test/package.js +++ b/test/package.js @@ -1,8 +1,8 @@ -import fs from 'fs'; -import path from 'path'; -import test from 'ava'; -import pify from 'pify'; -import index from '..'; +const fs = require('fs'); +const path = require('path'); +const test = require('ava'); +const pify = require('pify'); +const index = require('..'); let ruleFiles; diff --git a/test/prefer-async-await.js b/test/prefer-async-await.js index 5d3a1619..bb18c187 100644 --- a/test/prefer-async-await.js +++ b/test/prefer-async-await.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/prefer-async-await'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/prefer-async-await'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/prefer-power-assert.js b/test/prefer-power-assert.js index 505500c5..40ba38b1 100644 --- a/test/prefer-power-assert.js +++ b/test/prefer-power-assert.js @@ -1,7 +1,7 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import {permutationCombination} from 'js-combinatorics'; -import rule from '../rules/prefer-power-assert'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const {permutationCombination} = require('js-combinatorics'); +const rule = require('../rules/prefer-power-assert'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/prefer-t-regex.js b/test/prefer-t-regex.js index 81febe84..aa495a7e 100644 --- a/test/prefer-t-regex.js +++ b/test/prefer-t-regex.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/prefer-t-regex'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/prefer-t-regex'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/test-ended.js b/test/test-ended.js index 1552ff25..df9523eb 100644 --- a/test/test-ended.js +++ b/test/test-ended.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/test-ended'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/test-ended'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/test-title-format.js b/test/test-title-format.js index 3b7fa96e..8cd3ae6d 100644 --- a/test/test-title-format.js +++ b/test/test-title-format.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/test-title-format'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/test-title-format'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/test-title.js b/test/test-title.js index 5e361ad4..2049608d 100644 --- a/test/test-title.js +++ b/test/test-title.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/test-title'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/test-title'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/use-t-throws-async-well.js b/test/use-t-throws-async-well.js index 808da56b..0f3bad01 100644 --- a/test/use-t-throws-async-well.js +++ b/test/use-t-throws-async-well.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/use-t-throws-async-well'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/use-t-throws-async-well'); const ruleTester = avaRuleTester(test, { parserOptions: { diff --git a/test/use-t-well.js b/test/use-t-well.js index 654851eb..f4fe4f38 100644 --- a/test/use-t-well.js +++ b/test/use-t-well.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/use-t-well'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/use-t-well'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/use-t.js b/test/use-t.js index c850028b..6e4e69ec 100644 --- a/test/use-t.js +++ b/test/use-t.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/use-t'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/use-t'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/use-test.js b/test/use-test.js index efc077dd..6b54be8d 100644 --- a/test/use-test.js +++ b/test/use-test.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/use-test'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/use-test'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/use-true-false.js b/test/use-true-false.js index 0c8f666b..69594243 100644 --- a/test/use-true-false.js +++ b/test/use-true-false.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import avaRuleTester from 'eslint-ava-rule-tester'; -import rule from '../rules/use-true-false'; +const test = require('ava'); +const avaRuleTester = require('eslint-ava-rule-tester'); +const rule = require('../rules/use-true-false'); const ruleTester = avaRuleTester(test, { env: { diff --git a/test/util.js b/test/util.js index 9ddf619f..6e5ea265 100644 --- a/test/util.js +++ b/test/util.js @@ -1,6 +1,6 @@ -import test from 'ava'; -import util from '../util'; -import packageJson from '../package'; +const test = require('ava'); +const util = require('../util'); +const packageJson = require('../package'); test('returns the URL of the a named rule\'s documentation', t => { const url = `https://github.com/avajs/eslint-plugin-ava/blob/v${packageJson.version}/docs/rules/foo.md`;