Skip to content

Commit 4daee03

Browse files
committed
Add deprecation linting rules
Signed-off-by: Andrew W. Harn <[email protected]>
1 parent 5d5205c commit 4daee03

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

.eslintrc.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ module.exports = {
1414
"overrides": [
1515
{
1616
"extends": [
17-
"plugin:jest/recommended"
17+
"plugin:jest/recommended",
18+
"plugin:deprecation/recommended"
1819
],
1920
"files": [
2021
"**/__tests__/**/*.ts"
@@ -34,7 +35,8 @@ module.exports = {
3435
"parser": "@typescript-eslint/parser",
3536
"parserOptions": {
3637
"ecmaVersion": 12,
37-
"sourceType": "module"
38+
"sourceType": "module",
39+
"project": ["./tsconfig.json", "./__tests__/test-tsconfig.json"]
3840
},
3941
"plugins": [
4042
"@typescript-eslint",

npm-shrinkwrap.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"chalk": "^4.1.2",
5151
"env-cmd": "^10.1.0",
5252
"eslint": "^8.57.0",
53+
"eslint-plugin-deprecation": "^3.0.0",
5354
"eslint-plugin-jest": "^27.9.0",
5455
"eslint-plugin-unused-imports": "^3.1.0",
5556
"glob": "^7.1.6",

0 commit comments

Comments
 (0)