Skip to content

Commit

Permalink
Merge branch 'klassm-fork/eslint8' into eslint8
Browse files Browse the repository at this point in the history
  • Loading branch information
codejedi365 committed Oct 30, 2021
2 parents 78e9049 + cadf662 commit 8717cc3
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
1 change: 0 additions & 1 deletion tests/lib/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ describe("Rule Definitions", () => {
const rule = rulebook.rules[ruleName];
expect(rule).toHaveProperty("create", expect.any(Function));
expect(rule.meta.docs?.url).not.toBeEmpty();
expect(rule.meta.docs?.category).toBe("Best Practices");
expect(rule.meta.docs?.description).not.toBeEmpty();
}
);
Expand Down

0 comments on commit 8717cc3

Please sign in to comment.