add prettier
This commit is contained in:
parent
7b6e7e72e5
commit
5df4c2baf4
@ -19,12 +19,7 @@ module.exports = {
|
|||||||
],
|
],
|
||||||
'rules': {
|
'rules': {
|
||||||
'react/prop-types': 0,
|
'react/prop-types': 0,
|
||||||
'quotes': ['warn', 'single'],
|
|
||||||
'semi': 1,
|
|
||||||
'indent': ['warn', 2],
|
|
||||||
'comma-dangle': ['warn', 'always-multiline'],
|
|
||||||
'no-unused-vars': 1,
|
'no-unused-vars': 1,
|
||||||
'jsx-quotes': 1,
|
|
||||||
'react/jsx-sort-props': 1,
|
'react/jsx-sort-props': 1,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
5
.prettierignore
Normal file
5
.prettierignore
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
.cache
|
||||||
|
node_modules
|
||||||
|
old\ website
|
||||||
|
public
|
||||||
|
gatsby
|
1
.prettierrc.json
Normal file
1
.prettierrc.json
Normal file
@ -0,0 +1 @@
|
|||||||
|
{}
|
@ -17,7 +17,8 @@
|
|||||||
"lint": "eslint --ext .jsx,.js src",
|
"lint": "eslint --ext .jsx,.js src",
|
||||||
"upload": "rsync -rz --delete public/ ci@droplet.chuckdries.com:www/personal-website",
|
"upload": "rsync -rz --delete public/ ci@droplet.chuckdries.com:www/personal-website",
|
||||||
"upload-staging": "rsync -rz --delete public/ ci@droplet.chuckdries.com:www/personal-website-staging",
|
"upload-staging": "rsync -rz --delete public/ ci@droplet.chuckdries.com:www/personal-website-staging",
|
||||||
"deploy": "yarn build && yarn upload"
|
"deploy": "yarn build && yarn upload",
|
||||||
|
"pretty": "prettier --write ."
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mdx-js/mdx": "^1.6.22",
|
"@mdx-js/mdx": "^1.6.22",
|
||||||
@ -64,5 +65,7 @@
|
|||||||
"tailwindcss": "^2.1.2",
|
"tailwindcss": "^2.1.2",
|
||||||
"use-breakpoint": "^2.0.1"
|
"use-breakpoint": "^2.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {}
|
"devDependencies": {
|
||||||
|
"prettier": "2.3.2"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -11144,7 +11144,7 @@ prepend-http@^2.0.0:
|
|||||||
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
|
resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-2.0.0.tgz#e92434bfa5ea8c19f41cdfd401d741a3c819d897"
|
||||||
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
|
integrity sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=
|
||||||
|
|
||||||
prettier@^2.0.5:
|
prettier@2.3.2, prettier@^2.0.5:
|
||||||
version "2.3.2"
|
version "2.3.2"
|
||||||
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.2.tgz#ef280a05ec253712e486233db5c6f23441e7342d"
|
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.2.tgz#ef280a05ec253712e486233db5c6f23441e7342d"
|
||||||
integrity sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==
|
integrity sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==
|
||||||
|
Loading…
x
Reference in New Issue
Block a user