1
mirror of https://github.com/jakejarvis/hugo-extended.git synced 2025-07-03 13:26:38 -04:00

Move ESLint config outside of package.json

This commit is contained in:
XhmikosR
2021-12-07 09:40:25 +02:00
parent e8f7b6225d
commit 2c116d0670
2 changed files with 29 additions and 18 deletions

21
.eslintrc.json Normal file
View File

@ -0,0 +1,21 @@
{
"root": true,
"env": {
"es6": true,
"node": true
},
"parserOptions": {
"ecmaVersion": 2019
},
"extends": "eslint:recommended",
"rules": {
"prefer-destructuring": [
"error",
{
"object": true,
"array": false
}
],
"strict": "error"
}
}

View File

@ -3,7 +3,14 @@
"version": "0.77.4",
"hugoVersion": "0.89.4",
"description": "Binary wrapper for Hugo",
"repository": "fenneclab/hugo-bin",
"repository": {
"type": "git",
"url": "git+https://github.com/fenneclab/hugo-bin.git"
},
"bugs": {
"url": "https://github.com/fenneclab/hugo-bin/issues"
},
"homepage": "https://github.com/fenneclab/hugo-bin#readme",
"author": "satoshun00 <shun.sato@fenneclab.com>",
"license": "MIT",
"main": "index.js",
@ -34,22 +41,5 @@
],
"engines": {
"node": ">=12"
},
"eslintConfig": {
"extends": "eslint:recommended",
"env": {
"es6": true,
"node": true
},
"rules": {
"prefer-destructuring": [
"error",
{
"object": true,
"array": false
}
],
"strict": "error"
}
}
}