Skip to content

Commit 136e91a

Browse files
committed
config update
1 parent f6ea038 commit 136e91a

9 files changed

+132
-5
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.min.js
2+
**/node_modules/**

.github/dependabot.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@ updates:
33
- package-ecosystem: npm
44
directory: "/"
55
schedule:
6-
interval: daily
7-
time: "20:00"
8-
open-pull-requests-limit: 10
6+
interval: weekly

.markdownlint.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"MD001": false,
3+
"MD002": false,
4+
"MD003": false,
5+
"MD006": false,
6+
"MD007": false,
7+
"MD009": false,
8+
"MD012": {
9+
"maximum": 5
10+
},
11+
"MD013": false,
12+
"MD024": false,
13+
"MD026": false,
14+
"MD029": false,
15+
"MD030": false,
16+
"MD031": false,
17+
"MD032": false,
18+
"MD033": false,
19+
"MD034": false,
20+
"MD036": false,
21+
"MD037": false,
22+
"MD038": false,
23+
"MD040": false,
24+
"MD041": false,
25+
"MD044": {
26+
"names": ["CommonMark", "JavaScript", "Markdown", "Visual Studio Code"]
27+
}
28+
}

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package-lock=false

.stylelintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*.min.css
2+
*.min.js
3+
*.md
4+
_monokai.scss

.stylelintrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
3+
"rules":
4+
{
5+
"no-descending-specificity": null,
6+
"selector-class-pattern": "^[a-z][a-z0-9\\-]*[a-z0-9]$",
7+
},
8+
}

_svgo.yml

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Usage:
2+
# install svgo globally: `npm i -g svgo`
3+
# svgo --config=_svgo.yml --input=foo.svg
4+
5+
# https://github.com/svg/svgo/blob/master/docs/how-it-works/en.md
6+
# replace default config
7+
8+
multipass: true
9+
#full: true
10+
11+
# https://github.com/svg/svgo/blob/master/lib/svgo/js2svg.js#L6 for more config options
12+
13+
#js2svg:
14+
# pretty: true
15+
# indent: 2
16+
17+
plugins:
18+
# - addAttributesToSVGElement:
19+
# attributes:
20+
# - focusable: false
21+
- cleanupAttrs: true
22+
- cleanupEnableBackground: true
23+
- cleanupIDs: true
24+
- cleanupListOfValues: true
25+
- cleanupNumericValues: true
26+
- collapseGroups: true
27+
- convertColors: true
28+
- convertPathData: true
29+
- convertShapeToPath: true
30+
- convertStyleToAttrs: true
31+
- convertTransform: true
32+
- inlineStyles: true
33+
- mergePaths: true
34+
- minifyStyles: true
35+
- moveElemsAttrsToGroup: true
36+
- moveGroupAttrsToElems: true
37+
- removeAttrs:
38+
attrs:
39+
- "data-name"
40+
- removeComments: true
41+
- removeDesc: true
42+
- removeDoctype: true
43+
- removeEditorsNSData: true
44+
- removeEmptyAttrs: true
45+
- removeEmptyContainers: true
46+
- removeEmptyText: true
47+
- removeHiddenElems: true
48+
- removeMetadata: true
49+
- removeNonInheritableGroupAttrs: true
50+
- removeTitle: false
51+
- removeUnknownsAndDefaults:
52+
keepRoleAttr: true
53+
- removeUnusedNS: true
54+
- removeUselessDefs: true
55+
- removeUselessStrokeAndFill: true
56+
- removeViewBox: false
57+
- removeXMLNS: false
58+
- removeXMLProcInst: true
59+
- sortDefsChildren: true

package.json

+24-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,31 @@
55
"version": "1.0.0",
66
"private": true,
77
"author": "owddm",
8+
"scripts": {
9+
"build": "npx hugo",
10+
"css-lint": "stylelint \"docs/scss/*.scss\"",
11+
"htmlhint": "htmlhint docs/_site/**/index.html",
12+
"serve": "npx hugo serve",
13+
"spellcheck": "cspell \"content/**/*.md\"",
14+
"svgo": "npm-run-all --parallel \"svgo:base -- --folder=docs/img/header\"",
15+
"svgo:base": "svgo --config=_svgo.yml --recursive",
16+
"test": "npm run htmlhint && npm run css-lint"
17+
},
818
"devDependencies": {
9-
"gulp": "^4.0.2",
10-
"gulp-imagemin": "^7.0.0"
19+
"autoprefixer": "10.0.1",
20+
"bootstrap": "^5.0.0-alpha2",
21+
"bootstrap-ie11": "^5.0.0-alpha2",
22+
"cspell": "^4.1.0",
23+
"htmlhint": "^0.14.1",
24+
"hugo-bin": "^0.64.3",
25+
"npm-run-all": "^4.1.5",
26+
"postcss": "^8.1.1",
27+
"postcss-cli": "8.0.0",
28+
"prettier": "^2.1.2",
29+
"stylelint": "^13.7.2",
30+
"stylelint-config-prettier": "^8.0.2",
31+
"stylelint-config-standard": "^20.0.0",
32+
"svgo": "^1.3.2"
1133
},
1234
"license": "N/A"
1335
}

postcss.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: {
3+
autoprefixer: {}
4+
}
5+
};

0 commit comments

Comments
 (0)