Setup lint for browser and js files
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
{
|
||||
"globals": {},
|
||||
"globals": {
|
||||
"Qs": "readonly"
|
||||
},
|
||||
"env": {
|
||||
"commonjs": true,
|
||||
"es2021": true,
|
||||
"node": true
|
||||
"node": true,
|
||||
"browser": true
|
||||
},
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"plugins": [
|
||||
|
||||
@@ -45,6 +45,9 @@
|
||||
"eslint --cache --fix",
|
||||
"yarn generate:types",
|
||||
"git add src/payload-types.ts"
|
||||
],
|
||||
"*.js": [
|
||||
"eslint --cache --fix"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user