migrate from jshint to eslint
This commit is contained in:
parent
34c11b36d3
commit
b4336a84b7
29
.eslintrc.json
Normal file
29
.eslintrc.json
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"browser": true,
|
||||||
|
"es2021": true
|
||||||
|
},
|
||||||
|
"extends": "eslint:recommended",
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 12,
|
||||||
|
"sourceType": "module"
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"indent": [
|
||||||
|
"error",
|
||||||
|
4
|
||||||
|
],
|
||||||
|
"linebreak-style": [
|
||||||
|
"error",
|
||||||
|
"unix"
|
||||||
|
],
|
||||||
|
"quotes": [
|
||||||
|
"error",
|
||||||
|
"double"
|
||||||
|
],
|
||||||
|
"semi": [
|
||||||
|
"error",
|
||||||
|
"always"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
11
.jshintrc
11
.jshintrc
@ -1,11 +0,0 @@
|
|||||||
{
|
|
||||||
"browser": true,
|
|
||||||
"module": true,
|
|
||||||
"curly": true,
|
|
||||||
"devel": true,
|
|
||||||
"esversion": 6,
|
|
||||||
"freeze": true,
|
|
||||||
"futurehostile": true,
|
|
||||||
"strict": "global",
|
|
||||||
"varstmt": true
|
|
||||||
}
|
|
782
package-lock.json
generated
782
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"csso-cli": "^3.0.0",
|
"csso-cli": "^3.0.0",
|
||||||
|
"eslint": "^7.13.0",
|
||||||
"html-minifier": "^4.0.0",
|
"html-minifier": "^4.0.0",
|
||||||
"jshint": "^2.11.1",
|
|
||||||
"stylelint": "^13.6.1",
|
"stylelint": "^13.6.1",
|
||||||
"stylelint-config-standard": "^20.0.0",
|
"stylelint-config-standard": "^20.0.0",
|
||||||
"terser": "^4.8.0"
|
"terser": "^4.8.0"
|
||||||
|
@ -7,6 +7,6 @@ export PATH="$PWD/node_modules/.bin:$PATH"
|
|||||||
|
|
||||||
json_verify < static/manifest.webmanifest >/dev/null
|
json_verify < static/manifest.webmanifest >/dev/null
|
||||||
xmllint --noout static/**/*.@(html|svg|xml)
|
xmllint --noout static/**/*.@(html|svg|xml)
|
||||||
jshint --verbose static/**/*.js
|
eslint static/**/*.js
|
||||||
stylelint static/**/*.css
|
stylelint static/**/*.css
|
||||||
validatornu --Werror --also-check-css --also-check-svg static/**/*.@(css|html|svg)
|
validatornu --Werror --also-check-css --also-check-svg static/**/*.@(css|html|svg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user