1
0
Fork 0

add project config

This commit is contained in:
nanxiaobei 2021-08-24 04:07:54 +08:00
parent d80c414024
commit 00f1029aab
5 changed files with 1911 additions and 0 deletions

9
.prettierignore Normal file
View file

@ -0,0 +1,9 @@
/exampleSite
/images
/static
.git*
*.toml
.prettierignore
LICENSE
yarn.lock

4
.prettierrc.js Normal file
View file

@ -0,0 +1,4 @@
module.exports = {
printWidth: 100,
singleQuote: true,
};

12
.stylelintrc.js Normal file
View file

@ -0,0 +1,12 @@
module.exports = {
extends: [
'stylelint-config-standard',
'stylelint-config-recess-order',
'stylelint-config-prettier'
],
rules: {
'no-descending-specificity': null,
'custom-property-empty-line-before': null,
'rule-empty-line-before': ['always', { ignore: ['after-comment', 'first-nested'] }]
}
};

20
package.json Normal file
View file

@ -0,0 +1,20 @@
{
"name": "hugo-paper",
"version": "5.0.0",
"repository": "https://github.com/nanxiaobei/hugo-paper.git",
"author": "nanxiaobei <nanxiaobei@gmail.com>",
"license": "MIT",
"private": true,
"scripts": {
"site": "hugo server -Dw --minify --disableFastRender --themesDir ../.. --source exampleSite",
"open": "open http://localhost:1313/",
"dev": "yarn open & yarn site"
},
"dependencies": {
"prettier": "^2.3.2",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-recess-order": "^2.5.0",
"stylelint-config-standard": "^22.0.0"
}
}

1866
yarn.lock Normal file

File diff suppressed because it is too large Load diff