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