Skip to content

Commit

Permalink
added husky, prettier and changed editorconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Mastermindzh committed Jun 16, 2020
1 parent d51ea89 commit 75ff4a0
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 27 deletions.
22 changes: 0 additions & 22 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,6 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[**.js]
indent_style = space
indent_size = 2

[**.json]
indent_style = space
indent_size = 2

[**.css]
indent_style = space
indent_size = 2

[**.html]
indent_style = space
indent_size = 2

[**.jsx]
indent_style = space
indent_size = 2

[configure]
indent_style = space
indent_size = 2

Expand Down
5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

17 changes: 17 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
},
"scripts": {
"build": "webpack",
"prettier": "prettier 'src/**/*.{js*,ts*,htm*,md,scss}' --write",
"patch": "npm --no-git-tag-version version patch",
"minor": "npm --no-git-tag-version version minor",
"major": "npm --no-git-tag-version version major",
Expand All @@ -40,6 +41,7 @@
},
"homepage": "https://github.com/Mastermindzh/react-cookie-consent#readme",
"devDependencies": {
"@mastermindzh/prettier-config": "^1.0.0",
"@types/js-cookie": "^2.2.6",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
Expand All @@ -51,7 +53,22 @@
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-1": "^6.24.1",
"copy-webpack-plugin": "^4.6.0",
"husky": "^4.2.5",
"lint-staged": "^10.2.10",
"prettier": "^2.0.5",
"react": "^16.13.1",
"webpack": "^2.6.1"
},
"prettier": "@mastermindzh/prettier-config",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js*,ts*,htm*,md,scss}": [
"prettier --write",
"git add"
]
}
}

0 comments on commit 75ff4a0

Please sign in to comment.