Skip to content

Commit 52d1c4d

Browse files
committed
config
1 parent 5016445 commit 52d1c4d

File tree

15 files changed

+142
-7
lines changed

15 files changed

+142
-7
lines changed

common/build/eslint-config-fluid/base.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,20 @@ module.exports = {
135135
},
136136
],
137137

138+
// eslint-plugin-depend
139+
"depend/ban-dependencies": [
140+
"error",
141+
{
142+
allowed: [
143+
// axios replacement with fetch is ongoing: https://github.com/microsoft/FluidFramework/pull/25592
144+
"axios",
145+
146+
// fs-extra is well-maintained and provides a useful readJson/writeJson API which is what we mainly use.
147+
"fs-extra",
148+
],
149+
},
150+
],
151+
138152
// #region eslint-plugin-import-x
139153

140154
"import-x/no-default-export": "error",

common/build/eslint-config-fluid/pnpm-lock.yaml

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/build/eslint-config-fluid/printed-configs/default.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,13 @@
10721072
"error"
10731073
],
10741074
"depend/ban-dependencies": [
1075-
"error"
1075+
"error",
1076+
{
1077+
"allowed": [
1078+
"axios",
1079+
"fs-extra"
1080+
]
1081+
}
10761082
],
10771083
"dot-location": [
10781084
"off"

common/build/eslint-config-fluid/printed-configs/minimal.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,13 @@
10531053
"error"
10541054
],
10551055
"depend/ban-dependencies": [
1056-
"error"
1056+
"error",
1057+
{
1058+
"allowed": [
1059+
"axios",
1060+
"fs-extra"
1061+
]
1062+
}
10571063
],
10581064
"dot-location": [
10591065
"off"

common/build/eslint-config-fluid/printed-configs/react.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,13 @@
10741074
"error"
10751075
],
10761076
"depend/ban-dependencies": [
1077-
"error"
1077+
"error",
1078+
{
1079+
"allowed": [
1080+
"axios",
1081+
"fs-extra"
1082+
]
1083+
}
10781084
],
10791085
"dot-location": [
10801086
"off"

common/build/eslint-config-fluid/printed-configs/recommended.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1072,7 +1072,13 @@
10721072
"error"
10731073
],
10741074
"depend/ban-dependencies": [
1075-
"error"
1075+
"error",
1076+
{
1077+
"allowed": [
1078+
"axios",
1079+
"fs-extra"
1080+
]
1081+
}
10761082
],
10771083
"dot-location": [
10781084
"off"

common/build/eslint-config-fluid/printed-configs/strict-biome.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,13 @@
11451145
"off"
11461146
],
11471147
"depend/ban-dependencies": [
1148-
"error"
1148+
"error",
1149+
{
1150+
"allowed": [
1151+
"axios",
1152+
"fs-extra"
1153+
]
1154+
}
11491155
],
11501156
"dot-location": [
11511157
"off"

common/build/eslint-config-fluid/printed-configs/strict.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,13 @@
10821082
"error"
10831083
],
10841084
"depend/ban-dependencies": [
1085-
"error"
1085+
"error",
1086+
{
1087+
"allowed": [
1088+
"axios",
1089+
"fs-extra"
1090+
]
1091+
}
10861092
],
10871093
"dot-location": [
10881094
"off"

common/build/eslint-config-fluid/printed-configs/test.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,13 @@
10631063
"error"
10641064
],
10651065
"depend/ban-dependencies": [
1066-
"error"
1066+
"error",
1067+
{
1068+
"allowed": [
1069+
"axios",
1070+
"fs-extra"
1071+
]
1072+
}
10671073
],
10681074
"dot-location": [
10691075
"off"

examples/external-data/.eslintrc.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ module.exports = {
1919
// TODO: AB#18875 - Re-enable react/no-deprecated once we replace uses of the deprecated ReactDOM.render()
2020
// with the new React 18 createRoot().
2121
"react/no-deprecated": "off",
22+
23+
"depend/ban-dependencies": [
24+
"error",
25+
{
26+
allowed: [
27+
"lodash.isequal",
28+
],
29+
},
30+
],
2231
},
2332
overrides: [
2433
{

0 commit comments

Comments
 (0)