add project config
This commit is contained in:
parent
d80c414024
commit
00f1029aab
5 changed files with 1911 additions and 0 deletions
9
.prettierignore
Normal file
9
.prettierignore
Normal file
|
@ -0,0 +1,9 @@
|
|||
/exampleSite
|
||||
/images
|
||||
/static
|
||||
|
||||
.git*
|
||||
*.toml
|
||||
.prettierignore
|
||||
LICENSE
|
||||
yarn.lock
|
4
.prettierrc.js
Normal file
4
.prettierrc.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
module.exports = {
|
||||
printWidth: 100,
|
||||
singleQuote: true,
|
||||
};
|
12
.stylelintrc.js
Normal file
12
.stylelintrc.js
Normal 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
20
package.json
Normal 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"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue