migrate from jshint to eslint

This commit is contained in:
Daniel Micay
2020-11-09 15:25:12 -05:00
parent 34c11b36d3
commit b4336a84b7
5 changed files with 600 additions and 226 deletions
+29
View 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
View File
@@ -1,11 +0,0 @@
{
"browser": true,
"module": true,
"curly": true,
"devel": true,
"esversion": 6,
"freeze": true,
"futurehostile": true,
"strict": "global",
"varstmt": true
}
+569 -213
View File
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,8 +1,8 @@
{
"dependencies": {
"csso-cli": "^3.0.0",
"eslint": "^7.13.0",
"html-minifier": "^4.0.0",
"jshint": "^2.11.1",
"stylelint": "^13.6.1",
"stylelint-config-standard": "^20.0.0",
"terser": "^4.8.0"
+1 -1
View File
@@ -7,6 +7,6 @@ export PATH="$PWD/node_modules/.bin:$PATH"
json_verify < static/manifest.webmanifest >/dev/null
xmllint --noout static/**/*.@(html|svg|xml)
jshint --verbose static/**/*.js
eslint static/**/*.js
stylelint static/**/*.css
validatornu --Werror --also-check-css --also-check-svg static/**/*.@(css|html|svg)