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