Skip to content

Commit

Permalink
feat(no-debugging-utils): warn instead of error in all configs (#662)
Browse files Browse the repository at this point in the history
  • Loading branch information
skovy authored and MichaelDeBoey committed Oct 4, 2022
1 parent 8dfe155 commit 8063f8f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion lib/configs/angular.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export = {
'testing-library/await-async-utils': 'error',
'testing-library/no-await-sync-query': 'error',
'testing-library/no-container': 'error',
'testing-library/no-debugging-utils': 'error',
'testing-library/no-debugging-utils': 'warn',
'testing-library/no-dom-import': ['error', 'angular'],
'testing-library/no-global-regexp-flag-in-query': 'error',
'testing-library/no-node-access': 'error',
Expand Down
2 changes: 1 addition & 1 deletion lib/configs/marko.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export = {
'testing-library/await-async-utils': 'error',
'testing-library/no-await-sync-query': 'error',
'testing-library/no-container': 'error',
'testing-library/no-debugging-utils': 'error',
'testing-library/no-debugging-utils': 'warn',
'testing-library/no-dom-import': ['error', 'marko'],
'testing-library/no-global-regexp-flag-in-query': 'error',
'testing-library/no-node-access': 'error',
Expand Down
2 changes: 1 addition & 1 deletion lib/configs/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export = {
'testing-library/await-async-utils': 'error',
'testing-library/no-await-sync-query': 'error',
'testing-library/no-container': 'error',
'testing-library/no-debugging-utils': 'error',
'testing-library/no-debugging-utils': 'warn',
'testing-library/no-dom-import': ['error', 'react'],
'testing-library/no-global-regexp-flag-in-query': 'error',
'testing-library/no-manual-cleanup': 'error',
Expand Down
2 changes: 1 addition & 1 deletion lib/configs/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export = {
'testing-library/await-async-utils': 'error',
'testing-library/no-await-sync-query': 'error',
'testing-library/no-container': 'error',
'testing-library/no-debugging-utils': 'error',
'testing-library/no-debugging-utils': 'warn',
'testing-library/no-dom-import': ['error', 'vue'],
'testing-library/no-global-regexp-flag-in-query': 'error',
'testing-library/no-manual-cleanup': 'error',
Expand Down
8 changes: 4 additions & 4 deletions lib/rules/no-debugging-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ export default createTestingLibraryRule<Options, MessageIds>({
description: 'Disallow the use of debugging utilities like `debug`',
recommendedConfig: {
dom: false,
angular: 'error',
react: 'error',
vue: 'error',
marko: 'error',
angular: 'warn',
react: 'warn',
vue: 'warn',
marko: 'warn',
},
},
messages: {
Expand Down
8 changes: 4 additions & 4 deletions tests/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Object {
"testing-library/await-async-utils": "error",
"testing-library/no-await-sync-query": "error",
"testing-library/no-container": "error",
"testing-library/no-debugging-utils": "error",
"testing-library/no-debugging-utils": "warn",
"testing-library/no-dom-import": Array [
"error",
"angular",
Expand Down Expand Up @@ -82,7 +82,7 @@ Object {
"testing-library/await-async-utils": "error",
"testing-library/no-await-sync-query": "error",
"testing-library/no-container": "error",
"testing-library/no-debugging-utils": "error",
"testing-library/no-debugging-utils": "warn",
"testing-library/no-dom-import": Array [
"error",
"marko",
Expand Down Expand Up @@ -118,7 +118,7 @@ Object {
"testing-library/await-async-utils": "error",
"testing-library/no-await-sync-query": "error",
"testing-library/no-container": "error",
"testing-library/no-debugging-utils": "error",
"testing-library/no-debugging-utils": "warn",
"testing-library/no-dom-import": Array [
"error",
"react",
Expand Down Expand Up @@ -158,7 +158,7 @@ Object {
"testing-library/await-async-utils": "error",
"testing-library/no-await-sync-query": "error",
"testing-library/no-container": "error",
"testing-library/no-debugging-utils": "error",
"testing-library/no-debugging-utils": "warn",
"testing-library/no-dom-import": Array [
"error",
"vue",
Expand Down

0 comments on commit 8063f8f

Please sign in to comment.