Skip to content

Commit

Permalink
chore: update lint commands (+fix highlight-code-line css)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxpou committed Feb 26, 2019
1 parent 080cde9 commit 7fdf1c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module.exports = {
},
"rules": {
"react/jsx-uses-vars": 2,
"no-unused-vars": "warn",
'no-console': [
'warn',
{
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,12 @@
},
"scripts": {
"dev": "gatsby develop",
"lint": "./node_modules/.bin/eslint --ext .js,.jsx --ignore-pattern public .",
"test": "echo \"Error: no test specified\" && exit 1",
"format": "prettier --trailing-comma es5 --no-semi --single-quote --write 'src/**/*.js' 'data/siteConfig.js'",
"lint": "eslint --ext .js,.jsx --ignore-pattern public .",
"test": "echo \"Write tests! -> https://gatsby.app/unit-testing\"",
"format": "prettier --write 'src/**/*.js' 'data/siteConfig.js'",
"develop": "gatsby develop",
"build": "gatsby build",
"deploy": "gatsby build --prefix-paths && gh-pages -d public",
"fix-semi": "eslint --quiet --ignore-pattern node_modules --ignore-pattern public --parser babel-eslint --no-eslintrc --rule '{\"semi\": [2, \"never\"], \"no-extra-semi\": [2]}' --fix gatsby-node.js",
"generatePostPreviewImages": "node ./scripts/generatePostPreviewImages.js"
}
}
5 changes: 3 additions & 2 deletions src/components/Content.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,12 @@ const ContentBody = styled.div`
& .gatsby-highlight-code-line {
background-color: #022a4b;
display: block;
margin-right: -1em;
margin-left: -1em;
padding-right: 1em;
padding-left: .75em;
border-left: .25em solid #ffa7c4;
padding-left: 0.75em;
border-left: 0.25em solid #ffa7c4;
}
& p > code.language-text,
Expand Down

0 comments on commit 7fdf1c7

Please sign in to comment.