Update linting options and linter

This commit is contained in:
Angelos Chalaris
2019-03-02 10:05:54 +02:00
parent e535821d8c
commit ff9b956a33

View File

@ -8,29 +8,17 @@
"scripts": { "scripts": {
"extractor": "node ./scripts/extract.js", "extractor": "node ./scripts/extract.js",
"builder": "node ./scripts/build.js", "builder": "node ./scripts/build.js",
"prettier": "prettier **/*.{js,json,css,md}" "linter": "prettier **/*.{js,json,css,md} --write"
}, },
"devDependencies": { "devDependencies": {
"chalk": "^2.4.2", "chalk": "^2.4.2",
"fs-extra": "^7.0.1", "fs-extra": "^7.0.1",
"markdown-builder": "^0.9.0", "markdown-builder": "^0.9.0",
"husky": "^1.1.2",
"lint-staged": "^7.3.0",
"prettier": "^1.14.3" "prettier": "^1.14.3"
}, },
"prettier": { "prettier": {
"singleQuote": true "singleQuote": true,
}, "printWidth": 100
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json,css,md}": [
"prettier --write",
"git add"
]
}, },
"description": "Curated collection of useful React snippets that you can understand in 30 seconds or less.", "description": "Curated collection of useful React snippets that you can understand in 30 seconds or less.",
"main": "index.js", "main": "index.js",