Skip to content

Commit ab40067

Browse files
committed
chore: update packages .eslintrc files
1 parent 55efaf9 commit ab40067

File tree

15 files changed

+34
-27
lines changed

15 files changed

+34
-27
lines changed

apps/chart-docsite/.eslintrc.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44
"rules": {
55
"@typescript-eslint/no-explicit-any": "off",
66
"@typescript-eslint/jsx-no-bind": "off",
7-
"@typescript-eslint/no-deprecated": "off",
8-
"import/no-extraneous-dependencies": ["error", { "packageDir": [".", "../.."] }]
7+
"import/no-extraneous-dependencies": ["error", { "packageDir": [".", "../.."] }],
8+
"overrides": [
9+
{
10+
"files": ["src/**/*.{tsx,ts}"],
11+
"rules": {
12+
"@typescript-eslint/no-deprecated": "off"
13+
}
14+
}
15+
]
916
}
1017
}

apps/public-docsite-resources/.eslintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"@typescript-eslint/no-explicit-any": "off",
66
"@typescript-eslint/explicit-member-accessibility": "off",
77
"@typescript-eslint/member-ordering": "off",
8-
"@typescript-eslint/no-deprecated": "off",
98
"no-restricted-globals": "off"
109
}
1110
}

apps/public-docsite-v9/.eslintrc.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44
"rules": {
55
"@typescript-eslint/no-explicit-any": "off",
66
"@typescript-eslint/jsx-no-bind": "off",
7-
"@typescript-eslint/no-deprecated": "off",
87
"import/no-extraneous-dependencies": ["error", { "packageDir": [".", "../.."] }]
9-
}
8+
},
9+
"overrides": [
10+
{
11+
"files": ["src/**/*.{tsx,ts}"],
12+
"rules": {
13+
"@typescript-eslint/no-deprecated": "off"
14+
}
15+
}
16+
]
1017
}

apps/public-docsite/.eslintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"root": true,
44
"rules": {
55
"@typescript-eslint/no-explicit-any": "off",
6-
"@typescript-eslint/no-deprecated": "off",
76
"import/no-webpack-loader-syntax": "off",
87
"prefer-const": "off",
98
"react/jsx-no-bind": "off",

apps/theming-designer/.eslintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"root": true,
44
"rules": {
55
"@typescript-eslint/no-explicit-any": "off",
6-
"@typescript-eslint/no-deprecated": "off",
76
"prefer-const": "off",
87
"no-restricted-globals": "off"
98
}

apps/vr-tests-react-components/.eslintrc.json

+9-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@
77
"@typescript-eslint/no-explicit-any": "off",
88
"@typescript-eslint/naming-convention": "off",
99
"@typescript-eslint/jsx-no-bind": "off",
10-
"@typescript-eslint/no-deprecated": "off",
1110
"import/no-extraneous-dependencies": ["error", { "packageDir": [".", "../.."] }],
1211
"@nx/workspace-no-restricted-globals": "off"
13-
}
12+
},
13+
"overrides": [
14+
{
15+
"files": ["**/*.{ts,tsx}"],
16+
"rules": {
17+
"@typescript-eslint/no-deprecated": "off"
18+
}
19+
}
20+
]
1421
}

apps/vr-tests/.eslintrc.json

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
"rules": {
55
"@typescript-eslint/no-explicit-any": "off",
66
"@typescript-eslint/jsx-no-bind": "off",
7-
"@typescript-eslint/no-deprecated": "warn",
8-
"@typescript-eslint/no-deprecated": "off",
97
"import/no-extraneous-dependencies": ["error", { "packageDir": [".", "../.."] }],
108
"no-restricted-globals": "off"
119
}

packages/eslint-plugin/src/configs/react-legacy.js

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ module.exports = {
1313
'no-restricted-globals': restrictedGlobals,
1414
},
1515
overrides: [
16+
{
17+
files: ['**/*.{ts,tsx}'],
18+
rules: {
19+
'@typescript-eslint/no-deprecated': 'off',
20+
},
21+
},
1622
{
1723
// Test overrides
1824
files: [...configHelpers.testFiles, '**/*.stories.tsx'],

packages/react-cards/.eslintrc.json

+1-10
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,5 @@
33
"root": true,
44
"rules": {
55
"@typescript-eslint/no-explicit-any": "off"
6-
},
7-
"overrides": [
8-
{
9-
"files": "**/*.{ts,tsx}",
10-
"rules": {
11-
// The components in this package are all deprecated
12-
"@typescript-eslint/no-deprecated": "off"
13-
}
14-
}
15-
]
6+
}
167
}

packages/react-docsite-components/.eslintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": ["plugin:@fluentui/eslint-plugin/react--legacy"],
33
"root": true,
44
"rules": {
5-
"@typescript-eslint/no-deprecated": "off",
65
"no-restricted-globals": "off"
76
}
87
}

packages/react-examples/.eslintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"rules": {
55
"import/no-webpack-loader-syntax": "off",
66
"@typescript-eslint/no-explicit-any": "off",
7-
"@typescript-eslint/no-deprecated": "warn",
87
"no-alert": "off",
98
"no-restricted-globals": "off"
109
}

packages/react-experiments/.eslintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"root": true,
44
"rules": {
55
"@typescript-eslint/no-explicit-any": "off",
6-
"@typescript-eslint/no-deprecated": "off",
76
"no-restricted-globals": "off"
87
}
98
}

packages/react-monaco-editor/.eslintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"rules": {
55
"import/no-webpack-loader-syntax": "off", // ok in this project
66
"no-restricted-globals": "off",
7-
"@typescript-eslint/no-deprecated": "off",
87
"react-hooks/rules-of-hooks": "warn"
98
}
109
}

packages/set-version/.eslintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"extends": ["plugin:@fluentui/eslint-plugin/react--legacy"],
33
"root": true,
44
"rules": {
5-
"@typescript-eslint/no-deprecated": "off",
65
"prefer-const": "off",
76
"no-restricted-globals": "off"
87
}

packages/webpack-utilities/.eslintrc.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"root": true,
44
"rules": {
55
"@typescript-eslint/no-explicit-any": "off",
6-
"@typescript-eslint/no-deprecated": "off",
76
"prefer-arrow-callback": "off"
87
}
98
}

0 commit comments

Comments
 (0)