build(frontend): only lint frontend/src files to avoid ignored ignore-patterns
This commit is contained in:
parent
6168349ed2
commit
453c283438
@ -5,7 +5,7 @@ import babelParser from "@babel/eslint-parser";
|
|||||||
export default [
|
export default [
|
||||||
js.configs.recommended,
|
js.configs.recommended,
|
||||||
{
|
{
|
||||||
files: ["**/*.js"],
|
files: ["frontend/src/**/*.js"],
|
||||||
plugins: {},
|
plugins: {},
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
ecmaVersion: 2018,
|
ecmaVersion: 2018,
|
||||||
|
|||||||
@ -90,7 +90,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "node esbuild.config.mjs",
|
"build": "node esbuild.config.mjs",
|
||||||
"start": "node esbuild.config.mjs --watch",
|
"start": "node esbuild.config.mjs --watch",
|
||||||
"lint": "eslint --ignore-pattern .stack/* --ignore-pattern webpack.config.cjs --ignore-pattern static/* --color .",
|
"lint": "eslint --config eslint.config.mjs --color frontend/src",
|
||||||
"lintfix": "eslint --ignore-pattern .stack/* --ignore-pattern webpack.config.cjs --ignore-pattern static/* --color --fix ."
|
"lintfix": "eslint --config eslint.config.mjs --color --fix frontend/src"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user