1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2026-06-12 07:35:28 -04:00

Switch to xo for linting

This commit is contained in:
XhmikosR
2023-05-16 21:22:45 +03:00
parent 0bfb798db8
commit 1e4307eaf9
5 changed files with 8345 additions and 29 deletions
+35 -4
View File
@@ -35,12 +35,12 @@
},
"devDependencies": {
"bin-check": "^4.1.0",
"eslint": "^8.40.0",
"uvu": "^0.5.6"
"uvu": "^0.5.6",
"xo": "^0.54.2"
},
"scripts": {
"lint": "eslint .",
"fix": "npm run lint -- --fix",
"lint": "xo",
"fix": "xo --fix",
"uvu": "uvu test",
"test": "npm run lint && npm run uvu",
"postinstall": "node lib/install.js"
@@ -52,5 +52,36 @@
],
"engines": {
"node": "^14.14.0 || >=16.0.0"
},
"xo": {
"space": true,
"rules": {
"arrow-body-style": "off",
"camelcase": [
"error",
{
"properties": "never"
}
],
"capitalized-comments": "off",
"comma-dangle": [
"error",
"never"
],
"operator-linebreak": [
"error",
"after"
],
"object-curly-spacing": [
"error",
"always"
],
"space-before-function-paren": [
"error",
"never"
],
"unicorn/prefer-top-level-await": "off",
"unicorn/prevent-abbreviations": "off"
}
}
}