Skip to content

Commit

Permalink
chore: config to pkg.json
Browse files Browse the repository at this point in the history
  • Loading branch information
sergioramos committed Sep 14, 2020
1 parent 4cd341e commit 032acdd
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"scripts": {
"eslint": "eslint . --ext .js",
"fmt": "prettier --config .prettierrc --write '**/*'",
"fmt": "prettier --config package.json --write '**/*'",
"test": "NODE_ENV=test c8 -r lcovonly -r html -r text ava --timeout 9999 --serial"
},
"dependencies": {
Expand Down Expand Up @@ -62,12 +62,34 @@
"lint-staged": {
"*.js": [
"eslint --fix",
"prettier --config .prettierrc --write",
"prettier --config package.json --write",
"git add"
],
"*.*": [
"prettier --config .prettierrc --write",
"prettier --config package.json --write",
"git add"
]
},
"prettier": {
"bracketSpacing": true,
"jsxBracketSameLine": false,
"printWidth": 80,
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false
},
"eslintConfig": {
"extends": [
"eslint:recommended",
"xo-space/esnext",
"prettier"
],
"rules": {
"new-cap": 0,
"camelcase": 0,
"capitalized-comments": 0
}
}
}

0 comments on commit 032acdd

Please sign in to comment.