File tree 4 files changed +12
-17
lines changed
packages/public-docsite-setup
4 files changed +12
-17
lines changed Original file line number Diff line number Diff line change 59
59
"@dnd-kit/core" : " ^6.0.8" ,
60
60
"@dnd-kit/sortable" : " ^7.0.2" ,
61
61
"@dnd-kit/utilities" : " ^3.2.1" ,
62
- "@floating-ui/dom " : " 1.6.12 " ,
62
+ "@eslint/compat " : " 1.1.1 " ,
63
63
"@eslint/js" : " 9.17.0" ,
64
+ "@floating-ui/dom" : " 1.6.12" ,
64
65
"@fluentui/react-icons" : " ^2.0.245" ,
65
66
"@griffel/babel-preset" : " 1.5.8" ,
66
67
"@griffel/eslint-plugin" : " ^2.0.0" ,
227
228
"esbuild-loader" : " 4.1.0" ,
228
229
"eslint" : " 9.17.0" ,
229
230
"eslint-config-airbnb" : " 18.2.1" ,
230
- "eslint-plugin-compat" : " 6.0.2" ,
231
231
"eslint-config-prettier" : " 9.1.0" ,
232
232
"eslint-import-resolver-typescript" : " 3.7.0" ,
233
+ "eslint-plugin-compat" : " 6.0.2" ,
233
234
"eslint-plugin-es" : " 4.1.0" ,
234
235
"eslint-plugin-import" : " 2.31.0" ,
235
236
"eslint-plugin-jest" : " 28.10.0" ,
Original file line number Diff line number Diff line change 1
- const es = require ( 'eslint-plugin-es' ) ;
2
1
const js = require ( '@eslint/js' ) ;
2
+ const { fixupConfigRules } = require ( '@eslint/compat' ) ;
3
3
4
4
const { FlatCompat } = require ( '@eslint/eslintrc' ) ;
5
5
@@ -12,22 +12,16 @@ const compat = new FlatCompat({
12
12
module . exports = [
13
13
...compat . extends ( 'plugin:@fluentui/eslint-plugin/react--legacy' ) ,
14
14
{
15
- files : [ 'bin/*.js' , 'src/loadSite.ts' ] ,
16
-
15
+ files : [ 'bin/*.js' , 'scripts/*.js' ] ,
17
16
rules : {
18
- 'no-console' : 'off' ,
19
- 'no-restricted-globals' : 'off' ,
17
+ ...fixupConfigRules ( compat . extends ( 'plugin:es/restrict-to-es2017' ) ) . rules ,
20
18
} ,
21
19
} ,
22
- ...compat . extends ( 'plugin:es/restrict-to-es2017' ) . map ( config => ( {
23
- ...config ,
24
- files : [ 'bin/*.js' , 'scripts/*.js' ] ,
25
- } ) ) ,
26
20
{
27
- files : [ 'bin/*.js' , 'scripts/*.js ' ] ,
28
-
29
- plugins : {
30
- es ,
21
+ files : [ 'bin/*.js' , 'src/loadSite.ts ' ] ,
22
+ rules : {
23
+ 'no-console' : 'off' ,
24
+ 'no-restricted-globals' : 'off' ,
31
25
} ,
32
26
} ,
33
27
] ;
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ function getLoadSiteConfig(options) {
26
26
let copyPlugin ;
27
27
try {
28
28
copyPlugin = new CopyWebpackPlugin ( { patterns : copyPatterns } ) ;
29
- } catch ( err ) {
29
+ } catch {
30
30
// copy-webpack-plugin >= 6 requires Node 10+ and takes an object containing patterns.
31
31
// Fabric 5 and 6 still support Node 8, so they need to use copy-webpack-plugin@5 which
32
32
// takes the patterns themselves as the first parameter.
Original file line number Diff line number Diff line change 1847
1847
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.12.1.tgz#cfc6cffe39df390a3841cde2abccf92eaa7ae0e0"
1848
1848
integrity sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==
1849
1849
1850
- "@eslint/compat@^1.1.1":
1850
+ "@eslint/compat@1.1.1", "@eslint/compat@ ^1.1.1":
1851
1851
version "1.1.1"
1852
1852
resolved "https://registry.yarnpkg.com/@eslint/compat/-/compat-1.1.1.tgz#5736523f5105c94dfae5f35e31debc38443722cd"
1853
1853
integrity sha512-lpHyRyplhGPL5mGEh6M9O5nnKk0Gz4bFI+Zu6tKlPpDUN7XshWvH9C/px4UVm87IAANE0W81CEsNGbS1KlzXpA==
You can’t perform that action at this time.
0 commit comments