Add eslint for CI in package.json

This commit is contained in:
Jérémy Munsch 2022-08-25 18:26:52 +02:00
parent 847a543dab
commit b5663d19ce
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC
2 changed files with 5 additions and 2 deletions

View file

@ -35,6 +35,7 @@
"linebreak-style": ["error", "unix"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"vue/script-indent": ["error", 2, { "baseIndent": 0 }]
"vue/script-indent": ["error", 2, { "baseIndent": 0 }],
"vue/one-component-per-file": "off"
}
}

View file

@ -8,7 +8,9 @@
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"production": "npm run clear-manifest && mix --production",
"prod": "npm run production"
"prod": "npm run production",
"eslint": "node ./node_modules/.bin/eslint -c .eslintrc.json ./resources",
"eslint-ci": "node ./node_modules/.bin/eslint -c .eslintrc.json ./resources -f junit"
},
"devDependencies": {
"@fortawesome/fontawesome-svg-core": "^6.1.2",