11import eslintConfigPrettier from "eslint-config-prettier" ;
2- import markdown from "@eslint/markdown" ;
3- import json from "@eslint/json" ;
2+ import markdown from "@eslint/markdown" ; // eslint-disable-line
3+ import json from "@eslint/json" ; // eslint-disable-line
44import js from "@eslint/js" ;
55import globals from "globals" ;
66import noOnlyTests from "eslint-plugin-no-only-tests" ;
7+ import importPlugin from "eslint-plugin-import" ;
78
89export default [
10+ importPlugin . flatConfigs . recommended ,
911 {
1012 // https://github.com/eslint/eslint/discussions/18304#discussioncomment-9069706
1113 ignores : [
@@ -27,13 +29,18 @@ export default [
2729 ...globals . mocha ,
2830 ...globals . chai ,
2931 ...globals . node ,
32+ globalThis : "writeable" ,
3033 } ,
3134 } ,
3235 rules : {
3336 ...js . configs . recommended . rules ,
3437 // turn this off for Prettier
3538 "no-irregular-whitespace" : "off" ,
3639 "no-only-tests/no-only-tests" : "error" ,
40+ "import/named" : "off" ,
41+ "import/namespace" : "off" ,
42+ "import/no-unresolved" : "off" ,
43+ "import/enforce-node-protocol-usage" : [ "error" , "always" ] ,
3744 } ,
3845 plugins : {
3946 "no-only-tests" : noOnlyTests ,
0 commit comments