Skip to content
This repository has been archived by the owner on Nov 11, 2023. It is now read-only.

Commit

Permalink
chore: Extended linting with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
joostdecock committed Dec 6, 2019
1 parent 229d3d5 commit 513a2f2
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
public
.cache
20 changes: 17 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@
"homepage": "https://freesewing.org/",
"repository": "https://github.com/freesewing/freesewing.org",
"prettier": "@freesewing/prettier-config",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,json}": [
"prettier --write",
"git add"
]
},
"dependencies": {
"@freesewing/aaron": "2.1.6",
"@freesewing/benjamin": "2.1.6",
Expand Down Expand Up @@ -113,7 +124,9 @@
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-chai-friendly": "^0.5.0",
"eslint-plugin-cypress": "^2.7.0",
"eslint-plugin-import": "^2.18.2"
"eslint-plugin-import": "^2.18.2",
"husky": "^1.3.1",
"lint-staged": "^9.5.0"
},
"keywords": [
"gatsby"
Expand All @@ -137,8 +150,9 @@
"test:core": "cypress run --env LANGUAGE=$GATSBY_LANGUAGE --spec 'cypress/integration/core.spec.js'",
"test:showcase": "cypress run --env LANGUAGE=$GATSBY_LANGUAGE --spec 'cypress/integration/showcase.spec.js'",
"test:blog": "cypress run --env LANGUAGE=$GATSBY_LANGUAGE --spec 'cypress/integration/blog.spec.js'",
"prettier": "npx prettier --write 'src/**'",
"prettier": "npx prettier --write '**/*.js'",
"build": "gatsby build",
"develop": "gatsby develop"
"develop": "gatsby develop",
"precommit": "npm run pretty && lint-staged"
}
}

0 comments on commit 513a2f2

Please sign in to comment.