added linter and prettifier via commit hooks

This commit is contained in:
Rigel Kent 2018-05-12 17:28:37 +02:00 committed by Chocobozzz
parent 48d46d81af
commit 4de2fafcad
5 changed files with 1540 additions and 31 deletions

1
.prettierignore Normal file
View file

@ -0,0 +1 @@
*.json

8
.prettierrc.yml Normal file
View file

@ -0,0 +1,8 @@
printWidth: 80
tabWidth: 2
useTabs: false
semi: false
singleQuote: true
trailingComma: all
bracketSpacing: true
arrowParens: always

25
.sass-lint.yml Normal file
View file

@ -0,0 +1,25 @@
files:
include: "**/*.s+(a|c)ss"
ignore: [
"node_modules/**/*.*",
"client/node_modules/**/*.*"
]
syntax:
include:
- scss
- sass
rules:
property-sort-order: 0
attribute-quotes: 0
border-zero: 0
no-color-keywords: 0
no-css-comments: 0
no-important: 0
no-trailing-zero: 1
space-after-bang: 1
space-before-bang: 1
space-after-colon: 1
space-before-colon: 1
hex-length: 1
hex-notation: 0
indentation: 1

View file

@ -47,11 +47,25 @@
"nodemon": "nodemon",
"ts-node": "ts-node",
"tslint": "tslint",
"sasslint": "sass-lint --verbose --no-exit",
"sasslint:fix": "sass-lint-auto-fix -c .sass-lint.yml --verbose",
"mocha": "mocha",
"travis": "scripty",
"release": "scripty",
"client-report": "scripty"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts,css,md}": "precise-commits",
"*.scss": [
"sass-lint-auto-fix -c .sass-lint.yml --verbose",
"git add"
]
},
"dependencies": {
"async": "^2.0.0",
"async-lru": "^1.1.1",
@ -134,11 +148,17 @@
"chai": "^4.1.1",
"chai-json-schema": "^1.5.0",
"chai-xml": "^0.3.2",
"husky": "^1.0.0-rc.4",
"libxmljs": "^0.18.7",
"lint-staged": "^7.1.0",
"maildev": "^1.0.0-rc3",
"mocha": "^5.0.0",
"nodemon": "^1.11.0",
"precise-commits": "^1.0.2",
"prettier": "1.12.1",
"prompt": "^1.0.0",
"sass-lint": "^1.12.1",
"sass-lint-auto-fix": "^0.9.0",
"source-map-support": "^0.5.0",
"spectacle-docs": "^1.0.2",
"supertest": "^3.0.0",

1517
yarn.lock

File diff suppressed because it is too large Load diff