Skip to content

Commit

Permalink
chore: change old deprecation/deprecation rules to ts-eslint/no-depre…
Browse files Browse the repository at this point in the history
…cated
  • Loading branch information
mainframev committed Jan 10, 2025
1 parent 7acb834 commit fc5293e
Show file tree
Hide file tree
Showing 12 changed files with 93 additions and 22 deletions.
11 changes: 9 additions & 2 deletions apps/chart-docsite/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/jsx-no-bind": "off",
"deprecation/deprecation": "off",
"import/no-extraneous-dependencies": ["error", { "packageDir": [".", "../.."] }]
}
},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"rules": {
"@typescript-eslint/no-deprecated": "off"
}
}
]
}
11 changes: 9 additions & 2 deletions apps/public-docsite-resources/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/member-ordering": "off",
"deprecation/deprecation": "off",
"no-restricted-globals": "off"
}
},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"rules": {
"@typescript-eslint/no-deprecated": "off"
}
}
]
}
11 changes: 9 additions & 2 deletions apps/public-docsite-v9/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,14 @@
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/jsx-no-bind": "off",
"deprecation/deprecation": "off",
"import/no-extraneous-dependencies": ["error", { "packageDir": [".", "../.."] }]
}
},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"rules": {
"@typescript-eslint/no-deprecated": "off"
}
}
]
}
11 changes: 9 additions & 2 deletions apps/public-docsite/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@
"root": true,
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"deprecation/deprecation": "off",
"import/no-webpack-loader-syntax": "off", // ok in this project
"prefer-const": "off",
"react/jsx-no-bind": "off",
"no-restricted-globals": "off"
}
},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"rules": {
"@typescript-eslint/no-deprecated": "off"
}
}
]
}
11 changes: 9 additions & 2 deletions apps/theming-designer/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@
"root": true,
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"deprecation/deprecation": "off",
"prefer-const": "off",
"no-restricted-globals": "off"
}
},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"rules": {
"@typescript-eslint/no-deprecated": "off"
}
}
]
}
11 changes: 9 additions & 2 deletions apps/vr-tests-react-components/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/naming-convention": "off",
"@typescript-eslint/jsx-no-bind": "off",
"deprecation/deprecation": "off",
"import/no-extraneous-dependencies": ["error", { "packageDir": [".", "../.."] }],
"@nx/workspace-no-restricted-globals": "off"
}
},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"rules": {
"@typescript-eslint/no-deprecated": "off"
}
}
]
}
11 changes: 9 additions & 2 deletions apps/vr-tests/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,15 @@
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/jsx-no-bind": "off",
"deprecation/deprecation": "off",
"import/no-extraneous-dependencies": ["error", { "packageDir": [".", "../.."] }],
"no-restricted-globals": "off"
}
},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"rules": {
"@typescript-eslint/no-deprecated": "off"
}
}
]
}
2 changes: 1 addition & 1 deletion packages/codemods/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/naming-convention": "off",
"import/no-extraneous-dependencies": "off",
"deprecation/deprecation": "off"
"@typescript-eslint/no-deprecated": "off"
}
}
]
Expand Down
2 changes: 1 addition & 1 deletion packages/react-cards/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"files": "**/*.{ts,tsx}",
"rules": {
// The components in this package are all deprecated
"deprecation/deprecation": "off"
"@typescript-eslint/no-deprecated": "off"
}
}
]
Expand Down
12 changes: 10 additions & 2 deletions packages/react-docsite-components/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
"extends": ["plugin:@fluentui/eslint-plugin/react--legacy"],
"root": true,
"rules": {
"deprecation/deprecation": "off",
"no-restricted-globals": "off"
}
},
"overrides": [
{
"files": "**/*.{ts,tsx}",
"rules": {
// The components in this package are all deprecated
"@typescript-eslint/no-deprecated": "off"
}
}
]
}
11 changes: 9 additions & 2 deletions packages/set-version/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@
"extends": ["plugin:@fluentui/eslint-plugin/react--legacy"],
"root": true,
"rules": {
"deprecation/deprecation": "off",
"prefer-const": "off",
"no-restricted-globals": "off"
}
},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"rules": {
"@typescript-eslint/no-deprecated": "off"
}
}
]
}
11 changes: 9 additions & 2 deletions packages/webpack-utilities/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
"root": true,
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"deprecation/deprecation": "off",
"prefer-arrow-callback": "off"
}
},
"overrides": [
{
"files": ["**/*.{ts,tsx}"],
"rules": {
"@typescript-eslint/no-deprecated": "off"
}
}
]
}

0 comments on commit fc5293e

Please sign in to comment.