Skip to content

Commit 86c6e2b

Browse files
authored
Merge pull request #502 from abraham/eslint
Add eslint-plugin-deprecation
2 parents efbc1ae + a51ec5b commit 86c6e2b

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,15 @@
3737
},
3838
"homepage": "https://github.com/abraham/remotedata#readme",
3939
"devDependencies": {
40-
"pkg-ok": "^3.0.0",
4140
"@types/jest": "^29.0.0",
4241
"@typescript-eslint/eslint-plugin": "^8.0.0",
4342
"@typescript-eslint/parser": "^8.0.0",
4443
"eslint": "^8.0.0",
44+
"eslint-plugin-deprecation": "^3.0.0",
4545
"eslint-plugin-import": "^2.0.0",
4646
"eslint-plugin-jest": "^28.0.0",
4747
"jest": "^29.0.0",
48+
"pkg-ok": "^3.0.0",
4849
"prettier": "3.3.3",
4950
"ts-jest": "^29.0.0",
5051
"typescript": "^5.0.0"
@@ -80,6 +81,11 @@
8081
"eslintConfig": {
8182
"root": true,
8283
"parser": "@typescript-eslint/parser",
84+
"parserOptions": {
85+
"ecmaVersion": "latest",
86+
"sourceType": "module",
87+
"project": "./tsconfig.lint.json"
88+
},
8389
"plugins": [
8490
"@typescript-eslint",
8591
"jest"
@@ -90,7 +96,8 @@
9096
"plugin:@typescript-eslint/recommended",
9197
"plugin:jest/recommended",
9298
"plugin:import/errors",
93-
"plugin:import/typescript"
99+
"plugin:import/typescript",
100+
"plugin:deprecation/recommended"
94101
]
95102
},
96103
"prettier": {

tsconfig.lint.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"include": ["src"],
4+
"exclude": []
5+
}

0 commit comments

Comments
 (0)