Skip to content

Commit 5b03edb

Browse files
feat: support ESLint v8 (#465)
* feat: support ESLint 8.x * feat: support ESLint 8.x * chore: downgrade ESLint to v7 in dev deps * ci: force deps installation for running tests Co-authored-by: Mario Beltrán Alarcón <[email protected]>
1 parent e3ebef8 commit 5b03edb

29 files changed

+12
-37
lines changed

.github/workflows/pipeline.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
strategy:
5353
matrix:
5454
node: [12.22.0, 12, 14.17.0, 14, '16.0', 16]
55-
eslint: [7.5, 7]
55+
eslint: [7.5, 7, 8]
5656

5757
steps:
5858
- name: Cancel Previous Runs
@@ -72,7 +72,9 @@ jobs:
7272
useLockFile: false
7373

7474
- name: Install ESLint v${{ matrix.eslint }}
75-
run: npm install --no-save eslint@${{ matrix.eslint }}
75+
# force installation for now until we get ESLint and all plugins updated
76+
# in dev dependencies
77+
run: npm install --no-save --force eslint@${{ matrix.eslint }}
7678

7779
- name: Run tests
7880
run: npm run test:ci

lib/rules/await-async-query.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export default createTestingLibraryRule<Options, MessageIds>({
2020
type: 'problem',
2121
docs: {
2222
description: 'Enforce promises from async queries to be handled',
23-
category: 'Best Practices',
2423
recommendedConfig: {
2524
dom: 'error',
2625
angular: 'error',

lib/rules/await-async-utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export default createTestingLibraryRule<Options, MessageIds>({
1919
type: 'problem',
2020
docs: {
2121
description: 'Enforce promises from async utils to be awaited properly',
22-
category: 'Best Practices',
2322
recommendedConfig: {
2423
dom: 'error',
2524
angular: 'error',

lib/rules/await-fire-event.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export default createTestingLibraryRule<Options, MessageIds>({
1919
type: 'problem',
2020
docs: {
2121
description: 'Enforce promises from `fireEvent` methods to be handled',
22-
category: 'Best Practices',
2322
recommendedConfig: {
2423
dom: false,
2524
angular: false,

lib/rules/consistent-data-testid.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export default createTestingLibraryRule<Options, MessageIds>({
1818
type: 'suggestion',
1919
docs: {
2020
description: 'Ensures consistent usage of `data-testid`',
21-
category: 'Best Practices',
2221
recommendedConfig: {
2322
dom: false,
2423
angular: false,

lib/rules/no-await-sync-events.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ export default createTestingLibraryRule<Options, MessageIds>({
2121
type: 'problem',
2222
docs: {
2323
description: 'Disallow unnecessary `await` for sync events',
24-
category: 'Best Practices',
2524
recommendedConfig: {
2625
dom: false,
2726
angular: false,

lib/rules/no-await-sync-query.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export default createTestingLibraryRule<Options, MessageIds>({
1313
type: 'problem',
1414
docs: {
1515
description: 'Disallow unnecessary `await` for sync queries',
16-
category: 'Best Practices',
1716
recommendedConfig: {
1817
dom: 'error',
1918
angular: 'error',

lib/rules/no-container.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ export default createTestingLibraryRule<Options, MessageIds>({
2020
type: 'problem',
2121
docs: {
2222
description: 'Disallow the use of `container` methods',
23-
category: 'Best Practices',
2423
recommendedConfig: {
2524
dom: false,
2625
angular: 'error',

lib/rules/no-debugging-utils.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export default createTestingLibraryRule<Options, MessageIds>({
3131
type: 'problem',
3232
docs: {
3333
description: 'Disallow the use of debugging utilities like `debug`',
34-
category: 'Best Practices',
3534
recommendedConfig: {
3635
dom: false,
3736
angular: 'error',

lib/rules/no-dom-import.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export default createTestingLibraryRule<Options, MessageIds>({
1818
type: 'problem',
1919
docs: {
2020
description: 'Disallow importing from DOM Testing Library',
21-
category: 'Best Practices',
2221
recommendedConfig: {
2322
dom: false,
2423
angular: ['error', 'angular'],

0 commit comments

Comments
 (0)