Setup lint for browser and js files

This commit is contained in:
2022-07-25 00:52:43 +00:00
parent 909cd08275
commit 1b52f6bea3
2 changed files with 9 additions and 3 deletions

View File

@@ -1,9 +1,12 @@
{
"globals": {},
"globals": {
"Qs": "readonly"
},
"env": {
"commonjs": true,
"es2021": true,
"node": true
"node": true,
"browser": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
@@ -39,4 +42,4 @@
}
]
}
}
}

View File

@@ -45,6 +45,9 @@
"eslint --cache --fix",
"yarn generate:types",
"git add src/payload-types.ts"
],
"*.js": [
"eslint --cache --fix"
]
}
}