diff --git a/apps/chart-docsite/.eslintrc.json b/apps/chart-docsite/.eslintrc.json index 45462ffe5954dc..e0d37d372c2505 100644 --- a/apps/chart-docsite/.eslintrc.json +++ b/apps/chart-docsite/.eslintrc.json @@ -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" + } + } + ] } diff --git a/apps/public-docsite-resources/.eslintrc.json b/apps/public-docsite-resources/.eslintrc.json index b9cc959897e9b2..51673ef9ca1f23 100644 --- a/apps/public-docsite-resources/.eslintrc.json +++ b/apps/public-docsite-resources/.eslintrc.json @@ -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" + } + } + ] } diff --git a/apps/public-docsite-v9/.eslintrc.json b/apps/public-docsite-v9/.eslintrc.json index 45462ffe5954dc..e0d37d372c2505 100644 --- a/apps/public-docsite-v9/.eslintrc.json +++ b/apps/public-docsite-v9/.eslintrc.json @@ -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" + } + } + ] } diff --git a/apps/public-docsite/.eslintrc.json b/apps/public-docsite/.eslintrc.json index 4a1010d7c11d98..afd4068a4dd823 100644 --- a/apps/public-docsite/.eslintrc.json +++ b/apps/public-docsite/.eslintrc.json @@ -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" + } + } + ] } diff --git a/apps/theming-designer/.eslintrc.json b/apps/theming-designer/.eslintrc.json index 0d9ca4c10f823d..16cefd7e3576dd 100644 --- a/apps/theming-designer/.eslintrc.json +++ b/apps/theming-designer/.eslintrc.json @@ -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" + } + } + ] } diff --git a/apps/vr-tests-react-components/.eslintrc.json b/apps/vr-tests-react-components/.eslintrc.json index 3301180702eb44..636b1b1643fdf9 100644 --- a/apps/vr-tests-react-components/.eslintrc.json +++ b/apps/vr-tests-react-components/.eslintrc.json @@ -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" + } + } + ] } diff --git a/apps/vr-tests/.eslintrc.json b/apps/vr-tests/.eslintrc.json index 54ac641d7b3bfc..602e567f2baeb5 100644 --- a/apps/vr-tests/.eslintrc.json +++ b/apps/vr-tests/.eslintrc.json @@ -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" + } + } + ] } diff --git a/packages/codemods/.eslintrc.json b/packages/codemods/.eslintrc.json index 3659e1a174fbb0..554b7ea5d198a2 100644 --- a/packages/codemods/.eslintrc.json +++ b/packages/codemods/.eslintrc.json @@ -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" } } ] diff --git a/packages/react-cards/.eslintrc.json b/packages/react-cards/.eslintrc.json index fcffc3d29ca9e6..4c0d4b83a6d43a 100644 --- a/packages/react-cards/.eslintrc.json +++ b/packages/react-cards/.eslintrc.json @@ -9,7 +9,7 @@ "files": "**/*.{ts,tsx}", "rules": { // The components in this package are all deprecated - "deprecation/deprecation": "off" + "@typescript-eslint/no-deprecated": "off" } } ] diff --git a/packages/react-docsite-components/.eslintrc.json b/packages/react-docsite-components/.eslintrc.json index ec2a316fd41b8f..99f51edd9d841a 100644 --- a/packages/react-docsite-components/.eslintrc.json +++ b/packages/react-docsite-components/.eslintrc.json @@ -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" + } + } + ] } diff --git a/packages/set-version/.eslintrc.json b/packages/set-version/.eslintrc.json index 1aa83ab0565376..905bf718151d3a 100644 --- a/packages/set-version/.eslintrc.json +++ b/packages/set-version/.eslintrc.json @@ -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" + } + } + ] } diff --git a/packages/webpack-utilities/.eslintrc.json b/packages/webpack-utilities/.eslintrc.json index 9f62e5a326378a..a563e7abd8369c 100644 --- a/packages/webpack-utilities/.eslintrc.json +++ b/packages/webpack-utilities/.eslintrc.json @@ -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" + } + } + ] }