@@ -4,7 +4,7 @@ const path = require('node:path')
44
55const {
66 convertIgnorePatternToMinimatch,
7- includeIgnoreFile
7+ includeIgnoreFile,
88} = require ( '@eslint/compat' )
99const js = require ( '@eslint/js' )
1010const importXPlugin = require ( 'eslint-plugin-import-x' )
@@ -23,7 +23,7 @@ const gitignorePath = path.join(rootPath, GITIGNORE)
2323
2424const biomeConfig = require ( biomeConfigPath )
2525const nodeGlobalsConfig = Object . fromEntries (
26- Object . entries ( globals . node ) . map ( ( [ k ] ) => [ k , 'readonly' ] )
26+ Object . entries ( globals . node ) . map ( ( [ k ] ) => [ k , 'readonly' ] ) ,
2727)
2828
2929module . exports = [
@@ -32,7 +32,7 @@ module.exports = [
3232 name : 'Imported biome.json ignore patterns' ,
3333 ignores : biomeConfig . files . includes
3434 . filter ( p => p . startsWith ( '!' ) )
35- . map ( p => convertIgnorePatternToMinimatch ( p . slice ( 1 ) ) )
35+ . map ( p => convertIgnorePatternToMinimatch ( p . slice ( 1 ) ) ) ,
3636 } ,
3737 {
3838 ...js . configs . recommended ,
@@ -48,22 +48,22 @@ module.exports = [
4848 ...importXPlugin . flatConfigs . recommended . languageOptions ?. globals ,
4949 ...nodePlugin . configs [ 'flat/recommended-script' ] . languageOptions
5050 ?. globals ,
51- ...nodeGlobalsConfig
51+ ...nodeGlobalsConfig ,
5252 } ,
53- sourceType : 'script'
53+ sourceType : 'script' ,
5454 } ,
5555 linterOptions : {
5656 ...js . configs . recommended . linterOptions ,
5757 ...importXPlugin . flatConfigs . recommended . linterOptions ,
5858 ...nodePlugin . configs [ 'flat/recommended-script' ] . linterOptions ,
59- reportUnusedDisableDirectives : 'off'
59+ reportUnusedDisableDirectives : 'off' ,
6060 } ,
6161 plugins : {
6262 ...js . configs . recommended . plugins ,
6363 ...importXPlugin . flatConfigs . recommended . plugins ,
6464 ...nodePlugin . configs [ 'flat/recommended-script' ] . plugins ,
6565 'sort-destructure-keys' : sortDestructureKeysPlugin ,
66- unicorn : unicornPlugin
66+ unicorn : unicornPlugin ,
6767 } ,
6868 rules : {
6969 ...js . configs . recommended . rules ,
@@ -76,8 +76,8 @@ module.exports = [
7676 cjs : 'ignorePackages' ,
7777 js : 'ignorePackages' ,
7878 json : 'always' ,
79- mjs : 'ignorePackages'
80- }
79+ mjs : 'ignorePackages' ,
80+ } ,
8181 ] ,
8282 'import-x/no-named-as-default-member' : 'off' ,
8383 'import-x/no-unresolved' : [ 'error' , { commonjs : true } ] ,
@@ -89,20 +89,20 @@ module.exports = [
8989 'external' ,
9090 'internal' ,
9191 [ 'parent' , 'sibling' , 'index' ] ,
92- 'type'
92+ 'type' ,
9393 ] ,
9494 pathGroups : [
9595 {
9696 pattern : '@socket{registry,security}/**' ,
97- group : 'internal'
98- }
97+ group : 'internal' ,
98+ } ,
9999 ] ,
100100 pathGroupsExcludedImportTypes : [ 'type' ] ,
101101 'newlines-between' : 'always' ,
102102 alphabetize : {
103- order : 'asc'
104- }
105- }
103+ order : 'asc' ,
104+ } ,
105+ } ,
106106 ] ,
107107 'n/exports-style' : [ 'error' , 'module.exports' ] ,
108108 // The n/no-unpublished-bin rule does does not support non-trivial glob
@@ -116,8 +116,8 @@ module.exports = [
116116 {
117117 ignores : [ 'test' , 'test.describe' ] ,
118118 // Lazily access constants.maintainedNodeVersions.
119- version : constants . maintainedNodeVersions . current
120- }
119+ version : constants . maintainedNodeVersions . current ,
120+ } ,
121121 ] ,
122122 'n/prefer-node-protocol' : 'error' ,
123123 'unicorn/consistent-function-scoping' : 'error' ,
@@ -133,20 +133,20 @@ module.exports = [
133133 {
134134 argsIgnorePattern : '^_|^this$' ,
135135 ignoreRestSiblings : true ,
136- varsIgnorePattern : '^_'
137- }
136+ varsIgnorePattern : '^_' ,
137+ } ,
138138 ] ,
139139 'no-var' : 'error' ,
140140 'no-warning-comments' : [ 'warn' , { terms : [ 'fixme' ] } ] ,
141141 'prefer-const' : 'error' ,
142142 'sort-destructure-keys/sort-destructure-keys' : 'error' ,
143- 'sort-imports' : [ 'error' , { ignoreDeclarationSort : true } ]
144- }
143+ 'sort-imports' : [ 'error' , { ignoreDeclarationSort : true } ] ,
144+ } ,
145145 } ,
146146 {
147147 files : [ '**/*.mjs' ] ,
148148 languageOptions : {
149- sourceType : 'module'
150- }
151- }
149+ sourceType : 'module' ,
150+ } ,
151+ } ,
152152]
0 commit comments