File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11import eslintPluginJs from '@eslint/js'
2+ import globals from 'globals'
23import eslintTypescript from 'typescript-eslint'
34
45export default eslintTypescript . config (
56 {
67 languageOptions : {
8+ globals : { ...globals . node } ,
79 parser : eslintTypescript . parser ,
810 ecmaVersion : 2018 ,
911 sourceType : 'module' ,
@@ -12,9 +14,9 @@ export default eslintTypescript.config(
1214 } ,
1315 eslintPluginJs . configs . recommended ,
1416 eslintTypescript . configs . recommended ,
15- { rules : { 'newline-before-return' : 'error' } } ,
1617 {
1718 rules : {
19+ 'newline-before-return' : 'error' ,
1820 '@typescript-eslint/no-unused-vars' : [
1921 'error' ,
2022 { argsIgnorePattern : '^_' }
Original file line number Diff line number Diff line change 4545 "@types/validator" : " ^13.12.2" ,
4646 "eslint" : " ^9.20.1" ,
4747 "eslint-formatter-mo" : " ^2.2.0" ,
48+ "globals" : " ^15.15.0" ,
4849 "husky" : " ^9.1.7" ,
4950 "jiti" : " ^2.4.2" ,
5051 "lint-staged" : " ^15.4.3" ,
Original file line number Diff line number Diff line change @@ -2166,6 +2166,11 @@ globals@^14.0.0:
21662166 resolved "https://registry.yarnpkg.com/globals/-/globals-14.0.0.tgz#898d7413c29babcf6bafe56fcadded858ada724e"
21672167 integrity sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==
21682168
2169+ globals@^15.15.0 :
2170+ version "15.15.0"
2171+ resolved "https://registry.yarnpkg.com/globals/-/globals-15.15.0.tgz#7c4761299d41c32b075715a4ce1ede7897ff72a8"
2172+ integrity sha512-7ACyT3wmyp3I61S4fG682L0VA2RGD9otkqGJIwNUMF1SWUombIIk+af1unuDYgMm082aHYwD+mzJvv9Iu8dsgg==
2173+
21692174google-auth-library@^9.15.1 :
21702175 version "9.15.1"
21712176 resolved "https://registry.yarnpkg.com/google-auth-library/-/google-auth-library-9.15.1.tgz#0c5d84ed1890b2375f1cd74f03ac7b806b392928"
You can’t perform that action at this time.
0 commit comments