1
0
mirror of https://github.com/kremalicious/gatsby-redirect-from.git synced 2024-12-22 09:13:20 +01:00

add prettier

This commit is contained in:
Matthias Kretschmann 2019-06-11 00:27:06 +02:00
parent 98e49dda1b
commit 3f33f65430
Signed by: m
GPG Key ID: 606EEEF3C479A91F
6 changed files with 13 additions and 20 deletions

View File

@ -1,5 +1,3 @@
{
"presets": [
["@babel/env"]
]
"presets": [["@babel/env"]]
}

View File

@ -1,5 +0,0 @@
version: "2"
checks:
method-lines:
config:
threshold: 30

View File

@ -1,15 +1,6 @@
{
"extends": ["eslint:recommended"],
"rules": {
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
]
},
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"plugins": ["prettier"],
"parserOptions": {
"sourceType": "module",
"ecmaFeatures": {

5
.prettierrc Normal file
View File

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

View File

@ -13,6 +13,7 @@
"release": "./node_modules/release-it/bin/release-it.js --src.tagName='v%s' --github.release --npm.publish --non-interactive",
"release-minor": "./node_modules/release-it/bin/release-it.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive",
"release-major": "./node_modules/release-it/bin/release-it.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive",
"format": "prettier --write 'src/**/*.{js,jsx}'",
"prepublishOnly": "cross-env NODE_ENV=production npm run build"
},
"browserslist": [
@ -26,6 +27,9 @@
"chalk": "^2.4.2",
"cross-env": "^5.2.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-prettier": "^3.1.0",
"prettier": "^1.18.2",
"release-it": "^12.3.0"
},
"peerDependencies": {