Skip to content

Commit 69e0c7a

Browse files
committed
Add deprecation rule
1 parent 0b670e4 commit 69e0c7a

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

.eslintrc.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ module.exports = deepMerge.all([{
2626
require("./linting/.unicorn.cjs"),
2727
require("./linting/.sonarjs.cjs"),
2828
require("./linting/.jsxa11y.cjs"),
29+
require("./linting/.deprecation.cjs"),
2930
]);

linting/.deprecation.cjs

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
"plugins": [
3+
"deprecation"
4+
],
5+
"rules": {
6+
"deprecation/deprecation": "warn",
7+
}
8+
}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"eslint-config-react-app": "^7.0.1",
4545
"eslint-import-resolver-typescript": "^3.2.0",
4646
"eslint-plugin-align-import": "^1.0.0",
47+
"eslint-plugin-deprecation": "^1.3.2",
4748
"eslint-plugin-import": "^2.26.0",
4849
"eslint-plugin-jest": "^26.5.3",
4950
"eslint-plugin-jest-formatting": "^3.1.0",

yarn.lock

+10-1
Original file line numberDiff line numberDiff line change
@@ -5054,6 +5054,15 @@ eslint-plugin-align-import@^1.0.0:
50545054
resolved "https://registry.yarnpkg.com/eslint-plugin-align-import/-/eslint-plugin-align-import-1.0.0.tgz#3fcc92f87c3d20acfa39da9c8834c899548cd153"
50555055
integrity sha512-bUUcAssxWgsmIvDnREgBrIOtNkLcr2QfZf/zjZDtq8LqxKm9krFt2eSRKNTqIoEnEy8EQ4k8qBkm8azQxyC98Q==
50565056

5057+
eslint-plugin-deprecation@^1.3.2:
5058+
version "1.3.2"
5059+
resolved "https://registry.yarnpkg.com/eslint-plugin-deprecation/-/eslint-plugin-deprecation-1.3.2.tgz#a8125d28c56158cdfa1a685197e6be8ed86f189e"
5060+
integrity sha512-z93wbx9w7H/E3ogPw6AZMkkNJ6m51fTZRNZPNQqxQLmx+KKt7aLkMU9wN67s71i+VVHN4tLOZ3zT3QLbnlC0Mg==
5061+
dependencies:
5062+
"@typescript-eslint/experimental-utils" "^5.0.0"
5063+
tslib "^2.3.1"
5064+
tsutils "^3.21.0"
5065+
50575066
eslint-plugin-flowtype@^8.0.3:
50585067
version "8.0.3"
50595068
resolved "https://registry.yarnpkg.com/eslint-plugin-flowtype/-/eslint-plugin-flowtype-8.0.3.tgz#e1557e37118f24734aa3122e7536a038d34a4912"
@@ -10640,7 +10649,7 @@ tslib@^1.8.1:
1064010649
resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00"
1064110650
integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==
1064210651

10643-
tslib@^2.0.3, tslib@^2.1.0, tslib@^2.4.0:
10652+
tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.1, tslib@^2.4.0:
1064410653
version "2.4.0"
1064510654
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3"
1064610655
integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==

0 commit comments

Comments
 (0)