Skip to content

Commit

Permalink
chore: eslint mocha plugin, disallow exclusive tests, warn on skip (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Walther authored Mar 15, 2023
1 parent 90c39a6 commit 6489160
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": [".eslintrc.autogenerated.js"],
"plugins": ["unused-imports"],
"plugins": ["unused-imports", "mocha"],
"ignorePatterns": ["*.d.ts*"],
"rules": {
"@typescript-eslint/no-floating-promises": "warn",
Expand Down Expand Up @@ -31,6 +31,8 @@
"ignoreTemplateLiterals": true
}
],
"mocha/no-skipped-tests": "warn",
"mocha/no-exclusive-tests": "error",
"unused-imports/no-unused-imports": "error"
}
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"eslint": "^8.33.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-jsdoc": "^39.7.5",
"eslint-plugin-mocha": "^10.1.0",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-unused-imports": "^2.0.0",
Expand Down Expand Up @@ -100,4 +101,4 @@
"plugins/*",
"sdk"
]
}
}
13 changes: 13 additions & 0 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6489160

Please sign in to comment.