File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change 1
1
import globals from "globals" ;
2
- import path from "node:path" ;
3
- import { fileURLToPath } from "node:url" ;
4
2
import js from "@eslint/js" ;
5
- import { FlatCompat } from "@eslint/eslintrc" ;
6
-
7
- const __filename = fileURLToPath ( import . meta. url ) ;
8
- const __dirname = path . dirname ( __filename ) ;
9
- const compat = new FlatCompat ( {
10
- baseDirectory : __dirname ,
11
- recommendedConfig : js . configs . recommended ,
12
- allConfig : js . configs . all
13
- } ) ;
3
+ import google from "eslint-config-google" ;
14
4
15
5
export default [ {
16
6
ignores : [ "**/site/" ] ,
17
- } , ... compat . extends ( "eslint: recommended" , " google" ) , {
7
+ } , js . configs . recommended , google , {
18
8
plugins : { } ,
19
9
20
10
languageOptions : {
@@ -52,6 +42,9 @@ export default [{
52
42
"comma-dangle" : "off" ,
53
43
"no-tabs" : "off" ,
54
44
"no-console" : "off" , // scripts use console.log to print out
45
+ // This rule must be disabled as of ESLint 9.
46
+ // It's removed and causes issues when present
47
+ // https://eslint.org/docs/latest/rules/valid-jsdoc
55
48
"valid-jsdoc" : 0 ,
56
- } ,
49
+ }
57
50
} ] ;
You can’t perform that action at this time.
0 commit comments