Skip to content

Commit 1388fcb

Browse files
committed
Add eslint-plugin-deprecation
1 parent 4fd03a8 commit 1388fcb

File tree

3 files changed

+163
-159
lines changed

3 files changed

+163
-159
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module.exports = {
22
parser: '@typescript-eslint/parser',
33
plugins: [
44
'@typescript-eslint',
5+
'deprecation',
56
],
67
settings: {
78
'import/parsers': {
@@ -18,6 +19,7 @@ module.exports = {
1819
],
1920
rules: {
2021
'brace-style': 'off',
22+
'deprecation/deprecation': 'warn',
2123
'func-call-spacing': 'off',
2224
'no-shadow': 'off',
2325
'no-use-before-define': 'off',

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"eslint-config-airbnb": "^18.2.1",
2626
"eslint-config-airbnb-base": "^14.2.1",
2727
"eslint-plugin-babel": "^5.3.1",
28+
"eslint-plugin-deprecation": "^1.2.1",
2829
"eslint-plugin-eslint-comments": "^3.2.0",
2930
"eslint-plugin-import": "^2.22.1",
3031
"eslint-plugin-jest": "^24.3.6",
@@ -40,7 +41,8 @@
4041
},
4142
"peerDependencies": {
4243
"@typescript-eslint/eslint-plugin": ">=4.5.0",
43-
"@typescript-eslint/parser": ">=4.5.0"
44+
"@typescript-eslint/parser": ">=4.5.0",
45+
"eslint-plugin-deprecation": ">=1.2.1"
4446
},
4547
"private": false
4648
}

0 commit comments

Comments
 (0)