add linters
This commit is contained in:
parent
04abc92ae5
commit
9a12d1882f
6 changed files with 4654 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
node_modules/
|
2
data/abbreviations.json
Normal file
2
data/abbreviations.json
Normal file
|
@ -0,0 +1,2 @@
|
|||
{
|
||||
}
|
1363
data/itemtypes.json
Normal file
1363
data/itemtypes.json
Normal file
File diff suppressed because it is too large
Load diff
2
data/locations.json
Normal file
2
data/locations.json
Normal file
|
@ -0,0 +1,2 @@
|
|||
{
|
||||
}
|
3223
package-lock.json
generated
Normal file
3223
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
63
package.json
Normal file
63
package.json
Normal file
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
"name": "omphaloskepsis-2",
|
||||
"version": "1.0.0",
|
||||
"description": "A theme for my personal static site incorporating a blog, various portfolios and a CV searcher.",
|
||||
"scripts": {
|
||||
"precommit": "npm run lint-staged",
|
||||
"dev": "snap run hugo serve",
|
||||
"lint": "npm run lint:css; npm run lint:md; npm run lint:html; npm run lint:json",
|
||||
"lint:fix": "npm run lint:css:fix; npm run lint:md:fix; npm run lint:html:fix; npm run lint:json:fix",
|
||||
"lint:css": "stylelint \"./assets/css/**/*.scss\" --cache --cache-location .cache/ .stylelintcache",
|
||||
"lint:css:fix": "npm run lint:css -- --fix",
|
||||
"lint:js": "eslint \"./assets/js/*.js\" \"./content/**/*.js\"",
|
||||
"format:html": "prettier --parser html --check \"public/**/*.{htm,html}\"",
|
||||
"format:html:fix": "npm run format:html -- --write",
|
||||
"format:md": "prettier --parser markdown \"*/**/*.md\"",
|
||||
"format:md:fix": "npm run format:md -- --write",
|
||||
"lint:md": "markdownlint --rules sentences-per-line \"*/**/*.md\"",
|
||||
"lint:md:fix": "npm run lint:md -- --fix",
|
||||
"lint:json": "jsonlint ./**/*.json -s",
|
||||
"lint:json:fix": "npm run lint:json -- -i"
|
||||
},
|
||||
"lint-staged": {
|
||||
"*.s?[ca]ss": [
|
||||
"npm run spellcheck",
|
||||
"npm run lint:css",
|
||||
"git add"
|
||||
],
|
||||
"*.md": [
|
||||
"npm run spellcheck",
|
||||
"npm run format:md",
|
||||
"npm run lint:md",
|
||||
"git add"
|
||||
],
|
||||
"*.html?": [
|
||||
"npm run spellcheck",
|
||||
"npm run format:html",
|
||||
"git add"
|
||||
],
|
||||
"*.json": [
|
||||
"npm run spellcheck",
|
||||
"npm run lint:json",
|
||||
"git add"
|
||||
]
|
||||
},
|
||||
"dependencies": {
|
||||
"mathjax": "^3.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "^9.17.0",
|
||||
"husky": "^9.1.7",
|
||||
"jsonlint": "^1.6.3",
|
||||
"lint-staged": "^15.3.0",
|
||||
"markdownlint": "^0.37.3",
|
||||
"markdownlint-cli": "^0.43.0",
|
||||
"prettier": "^3.4.2",
|
||||
"sentences-per-line": "^0.3.0",
|
||||
"stylelint": "^16.12.0",
|
||||
"stylelint-config-standard-scss": "^14.0.0",
|
||||
"stylelint-prettier": "^5.0.2",
|
||||
"stylelint-scss": "^6.10.0",
|
||||
"stylelint-selector-bem-pattern": "^4.0.1"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue