Skip to content

Commit

Permalink
Add prettier and husky config for mdb5 docs
Browse files Browse the repository at this point in the history
  • Loading branch information
idzark committed Jun 24, 2020
1 parent 57f273b commit f694650
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

node_modules
package-lock.json
### OSX ###
# General
.DS_Store
Expand Down
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Ignore everything
/*

# Except mdb-5 docs
!/en/
/en/*
!/en/_mdb5
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"bracketSpacing": true,
"semi": true,
"singleQuote": true,
"trailingComma": "es5",
"printWidth": 100,
"endOfLine": "auto"
}
29 changes: 29 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "mdb-docs-and-content",
"version": "1.0.0",
"description": "The following repository contains content of the mdbootstrap.com website, especially documentation.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/mdbootstrap/mdb-docs-and-content.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/mdbootstrap/mdb-docs-and-content/issues"
},
"homepage": "https://github.com/mdbootstrap/mdb-docs-and-content#readme",
"devDependencies": {
"husky": "^4.2.5",
"prettier": "^2.0.5",
"pretty-quick": "^2.0.1"
}
}

0 comments on commit f694650

Please sign in to comment.