feat(tools): add eslint and prettier (#19)

This commit is contained in:
Valeriy
2018-12-27 22:10:49 +03:00
committed by mrugesh mohapatra
parent 37c113b5d3
commit 00e5cf247e
4 changed files with 1356 additions and 2 deletions

3
.eslintrc Normal file
View File

@ -0,0 +1,3 @@
{
"extends": "freecodecamp"
}

5
.prettierrc Normal file
View File

@ -0,0 +1,5 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "none"
}

1341
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -4,9 +4,14 @@
"private": true, "private": true,
"scripts": { "scripts": {
"bootstrap": "lerna bootstrap", "bootstrap": "lerna bootstrap",
"postinstall": "npm run bootstrap" "postinstall": "npm run bootstrap",
"format": "prettier --write es5 './**/*.{js,json}' && npm run lint",
"lint": "eslint ./**/*.js --fix"
}, },
"devDependencies": { "devDependencies": {
"lerna": "^3.5.1" "eslint": "^5.9.0",
"eslint-config-freecodecamp": "^1.1.1",
"lerna": "^3.5.1",
"prettier": "^1.15.2"
} }
} }