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:
parent
98e49dda1b
commit
3f33f65430
@ -1,5 +0,0 @@
|
||||
version: "2"
|
||||
checks:
|
||||
method-lines:
|
||||
config:
|
||||
threshold: 30
|
13
.eslintrc
13
.eslintrc
@ -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
5
.prettierrc
Normal file
@ -0,0 +1,5 @@
|
||||
{
|
||||
"semi": false,
|
||||
"singleQuote": true,
|
||||
"trailingComma": "none"
|
||||
}
|
@ -2,4 +2,4 @@ language: node_js
|
||||
node_js: node
|
||||
|
||||
notifications:
|
||||
email: false
|
||||
email: false
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user