Skip to content

Commit

Permalink
feat: update for eslint v8
Browse files Browse the repository at this point in the history
  • Loading branch information
klassm committed Oct 28, 2021
1 parent 5bdbb74 commit 6891e41
Show file tree
Hide file tree
Showing 9 changed files with 11,480 additions and 26,286 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Expand Up @@ -47,6 +47,7 @@ module.exports = {
{ devDependencies: true }
],
"no-console": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-non-null-assertion": "off" // Tests should throw errors, jest will catch them
}
},
Expand Down
1 change: 0 additions & 1 deletion lib/rules/expect-expect.ts
Expand Up @@ -35,7 +35,6 @@ export default createRule({
},
docs: {
description: "Ensure tests have at least one expect",
category: "Best Practices",
recommended: "error"
},
schema: []
Expand Down
1 change: 0 additions & 1 deletion lib/rules/no-debug.ts
Expand Up @@ -23,7 +23,6 @@ export default createRule({
docs: {
description:
"Don't allow `t.debug()` to be committed to the repository. ",
category: "Best Practices",
recommended: "error"
},
schema: []
Expand Down
1 change: 0 additions & 1 deletion lib/rules/no-identical-title.ts
Expand Up @@ -60,7 +60,6 @@ export default createRule({
},
docs: {
description: "Don't use identical titles for your tests",
category: "Best Practices",
recommended: "error"
},
schema: []
Expand Down
1 change: 0 additions & 1 deletion lib/rules/no-only.ts
Expand Up @@ -21,7 +21,6 @@ export default createRule({
docs: {
description:
"Don't allow `test.only` to be added to the repository",
category: "Best Practices",
recommended: "error"
},
schema: []
Expand Down
3 changes: 1 addition & 2 deletions lib/rules/no-skip.ts
Expand Up @@ -17,11 +17,10 @@ export default createRule({
messages: {
noSkip: "Do not use the `.skip` hook."
},
type: "suggestion",
type: "problem",
docs: {
description:
"Don't allow `test.skip` or `fixture.skip` to be added to the repository",
category: "Best Practices",
recommended: "warn"
},
schema: []
Expand Down

0 comments on commit 6891e41

Please sign in to comment.