Skip to content

Commit 634f243

Browse files
committed
Add deprecation linting rules
Signed-off-by: Andrew W. Harn <[email protected]>
1 parent 268877a commit 634f243

File tree

3 files changed

+271
-2
lines changed

3 files changed

+271
-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: 266 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
@@ -57,6 +57,7 @@
5757
"chalk": "^2.4.1",
5858
"env-cmd": "^8.0.2",
5959
"eslint": "^7.32.0",
60+
"eslint-plugin-deprecation": "^1.5.0",
6061
"eslint-plugin-jest": "^24.4.0",
6162
"eslint-plugin-unused-imports": "^1.1.2",
6263
"expect": "^24.8.0",

0 commit comments

Comments
 (0)