You've already forked hugo-extended
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:
21
.eslintrc.json
Normal file
21
.eslintrc.json
Normal 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"
|
||||
}
|
||||
}
|
26
package.json
26
package.json
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user