Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
chore: added linters
Browse files Browse the repository at this point in the history
fix #43
  • Loading branch information
victor-pogor committed Dec 26, 2020
1 parent 22f1595 commit 0c809a2
Show file tree
Hide file tree
Showing 10 changed files with 2,901 additions and 260 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["eslint:recommended", "prettier"]
}
2 changes: 1 addition & 1 deletion .huskyrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"hooks": {
"pre-commit": "npm run build && npm run copy && git add resources assets/js",
"pre-commit": "lint-staged && npm run build && npm run copy && git add resources assets/js",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"**/*.{js,css,scss,md}": "prettier --write"
}
9 changes: 9 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Ignore all minified files
**/*.min.*

# Node.js modules
node_modules/

# Example site public folders
exampleSite/public/
exampleSite/resources/
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
13 changes: 13 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"plugins": [
"stylelint-scss"
],
"extends": [
"stylelint-config-standard",
"stylelint-config-prettier"
],
"rules": {
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": true
}
}
5 changes: 4 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"budparr.language-hugo-vscode",
"be5invis.toml",
"esbenp.prettier-vscode",
"visualstudioexptteam.vscodeintellicode"
"visualstudioexptteam.vscodeintellicode",
"davidanson.vscode-markdownlint",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint"
]
}
10 changes: 6 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"files.associations": {
".huskyrc": "json"
}
}
"files.associations": {
".huskyrc": "json",
".stylelintrc": "json",
".lintstagedrc": "json"
}
}

0 comments on commit 0c809a2

Please sign in to comment.