Skip to content

Commit

Permalink
Merge pull request #224 from john-dupuy/update-pre-commit
Browse files Browse the repository at this point in the history
Update pre-commit
  • Loading branch information
rsnyman committed Oct 12, 2021
2 parents 61a1116 + f415c1d commit 5425527
Show file tree
Hide file tree
Showing 4 changed files with 346 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install dependencies
run: pip install pre-commit
- name: Run pre-commit
run: pre-commit run --all
run: pre-commit run --all --verbose
test-backend:
runs-on: ubuntu-latest
needs: lint
Expand Down
9 changes: 7 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,16 @@ repos:
- id: pyupgrade
language_version: python3
- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.0.0-rc.0
rev: v8.0.0-1
hooks:
- id: eslint
additional_dependencies:
- eslint
- eslint-plugin-react
- eslint-plugin-import
- babel-eslint
- "@babel/eslint-parser"
- "@babel/plugin-proposal-class-properties"
- "@babel/plugin-proposal-private-methods"
- "@babel/plugin-syntax-jsx"
- "@babel/preset-flow"
- "@babel/core"
22 changes: 21 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
"version": "1.13.4",
"private": true,
"dependencies": {
"@babel/core": "^7.15.8",
"@babel/eslint-parser": "^7.15.8",
"@babel/helper-call-delegate": "^7.8.7",
"@babel/plugin-proposal-class-properties": "^7.14.5",
"@babel/plugin-proposal-private-methods": "^7.14.5",
"@babel/plugin-syntax-jsx": "^7.14.5",
"@babel/preset-flow": "^7.14.5",
"@emotion/core": "^10.0.10",
"@emotion/styled": "^10.0.10",
"@hapi/hoek": "^6.2.4",
Expand Down Expand Up @@ -62,7 +68,21 @@
"eslint:recommended",
"plugin:react/recommended"
],
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"parserOptions": {
"sourceType": "module",
"requireConfigFile": false,
"babelOptions": {
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-private-methods",
"@babel/plugin-syntax-jsx"
],
"presets": [
"@babel/preset-flow"
]
}
},
"plugins": [
"react",
"import"
Expand Down
Loading

0 comments on commit 5425527

Please sign in to comment.