1
0
mirror of https://github.com/kremalicious/gatsby-redirect-from.git synced 2024-12-22 17:23:24 +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": [ "presets": [["@babel/env"]]
["@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"], "extends": ["eslint:recommended", "plugin:prettier/recommended"],
"rules": { "plugins": ["prettier"],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"never"
]
},
"parserOptions": { "parserOptions": {
"sourceType": "module", "sourceType": "module",
"ecmaFeatures": { "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": "./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-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", "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" "prepublishOnly": "cross-env NODE_ENV=production npm run build"
}, },
"browserslist": [ "browserslist": [
@ -26,6 +27,9 @@
"chalk": "^2.4.2", "chalk": "^2.4.2",
"cross-env": "^5.2.0", "cross-env": "^5.2.0",
"eslint": "^5.16.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" "release-it": "^12.3.0"
}, },
"peerDependencies": { "peerDependencies": {