Skip to content

Commit

Permalink
install storybook plugins for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
rikukissa committed Jan 17, 2025
1 parent 89b3406 commit f77ee76
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,9 +299,15 @@ jobs:
- name: Install dependencies
run: CI="" yarn install --frozen-lockfile

- name: Add origin
run: git remote set-url origin https://github.com/opencrvs/opencrvs-core.git

- name: Remove existing SSH origin (if any)
run: git remote remove origin || true

- name: Add HTTPS origin
run: git remote add origin https://github.com/opencrvs/opencrvs-core.git

- name: Verify remote URL
run: git remote -v

- name: Fetch full Git history
run: git fetch --prune --unshallow

Expand Down
3 changes: 2 additions & 1 deletion packages/client/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# dependencies
/node_modules
/node_modules
!.storybook
8 changes: 7 additions & 1 deletion packages/client/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
* Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
*/
module.exports = {
extends: ['../../.eslintrc.js', 'eslint-config-react-app', 'plugin:react/recommended', 'plugin:storybook/recommended', 'plugin:storybook/recommended'],
extends: [
'../../.eslintrc.js',
'eslint-config-react-app',
'plugin:react/recommended',
'plugin:storybook/recommended',
'plugin:storybook/recommended'
],
plugins: ['react', 'formatjs'],
env: {
es6: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ describe('Correction summary', () => {
expect(reason).toBeDefined()
})

it.only('should match corrector with MATERIAL_OMISSION', () => {
it('should match corrector with MATERIAL_OMISSION', () => {
;(birthDeclaration.data.reason as any).type.value = 'MATERIAL_OMISSION'
store.dispatch(storeDeclaration(birthDeclaration))
const instance = wrapper
Expand Down

0 comments on commit f77ee76

Please sign in to comment.