Skip to content

Commit 68f2c40

Browse files
committed
Add eslint plugin to report usage of deprecated code
1 parent a320866 commit 68f2c40

3 files changed

Lines changed: 66 additions & 0 deletions

File tree

.eslintrc.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@
3333
"files": ["*.spec.ts"],
3434
"plugins": ["jest"],
3535
"extends": ["plugin:jest/recommended"]
36+
},
37+
{
38+
"files": ["*.ts"],
39+
"parserOptions": {
40+
"project": ["./tsconfig.json"]
41+
},
42+
"plugins": ["deprecation"],
43+
"rules": {
44+
"deprecation/deprecation": "warn"
45+
}
3646
}
3747
]
3848
}

package-lock.json

Lines changed: 55 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
@@ -78,6 +78,7 @@
7878
"eslint-config-prettier": "^8.5.0",
7979
"eslint-plugin-import": "^2.26.0",
8080
"eslint-plugin-jest": "^27.0.4",
81+
"eslint-plugin-deprecation": "^1.3.2",
8182
"eslint-plugin-prettier": "^4.0.0",
8283
"eslint-plugin-simple-import-sort": "^8.0.0",
8384
"jest": "^28.1.3",

0 commit comments

Comments
 (0)