Skip to content

Move to npm workspaces #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .eslintrc.react.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends:
- plugin:react/recommended
plugins:
- react
12 changes: 12 additions & 0 deletions .eslintrc.typescript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
extends:
- plugin:@typescript-eslint/recommended
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
rules:
'@typescript-eslint/no-unused-vars':
- error
- argsIgnorePattern: ^_
caughtErrorsIgnorePattern: ^_
destructuredArrayIgnorePattern: ^_
varsIgnorePattern: ^_
50 changes: 26 additions & 24 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,44 @@
env:
browser: true
es2021: true
extends:
- eslint:recommended
- plugin:react/recommended
- plugin:@typescript-eslint/recommended
overrides:
- extends: .eslintrc.react.yml
files:
- '**/*.jsx'
- '**/*.tsx'
- extends: .eslintrc.typescript.yml
files:
- '**/*.mts'
- '**/*.ts'
- '**/*.tsx'
- extends: .eslintrc.jest.yml
files:
- '__tests__/**'
- '*.spec.js'
- '*.spec.jsx'
- '*.spec.ts'
- '*.spec.tsx'
- '*.test.js'
- '*.test.jsx'
- '*.test.ts'
- '*.test.tsx'
parser: '@typescript-eslint/parser'
- '**/__tests__/**'
- '**/*.spec.cjs'
- '**/*.spec.mjs'
- '**/*.spec.js'
- '**/*.spec.jsx'
- '**/*.spec.cts'
- '**/*.spec.mts'
- '**/*.spec.ts'
- '**/*.spec.tsx'
- '**/*.test.cjs'
- '**/*.test.mjs'
- '**/*.test.js'
- '**/*.test.jsx'
- '**/*.test.cts'
- '**/*.test.mts'
- '**/*.test.ts'
- '**/*.test.tsx'
parserOptions:
ecmaVersion: latest
sourceType: module
plugins:
- prettier
- react
- '@typescript-eslint'
root: true
rules:
prettier/prettier: error
no-empty:
- error
- allowEmptyCatch: true
'@typescript-eslint/no-unused-vars':
- error
- argsIgnorePattern: ^_
caughtErrorsIgnorePattern: ^_
destructuredArrayIgnorePattern: ^_
varsIgnorePattern: ^_
settings:
react:
version: 17.0.2
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ body:
*Support will be slow or denied if a test case is not provided.*
render: js
value: |
import { renderHook } from '@testing-library/react-hooks';
import { renderHook } from '@testing-library/react';
import { useMemoMap } from 'use-memo-map';

test('simple scenario', () => {
Expand Down
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Added type-checking for test, by [@compulim](https://github.com/compulim), in PR [#16](https://github.com/compulim/use-memo-map/pull/16)
- Updates `tsconfig.json` to extend from [`@tsconfig/strictest`](https://npmjs.com/package/@tsconfig/strictest), by [@compulim](https://github.com/compulim), in PR [#16](https://github.com/compulim/use-memo-map/pull/16)
- Updates `tsconfig.json` to extend from [`@tsconfig/strictest`](https://npmjs.com/package/@tsconfig/strictest), by [@compulim](https://github.com/compulim), in PR [#16](https://github.com/compulim/use-memo-map/pull/16) and PR [#17](https://github.com/compulim/use-memo-map/pull/17)
- Development dependencies
- [`@types/react@18.2.21`](https://npmjs.com/package/@types/react)
- [`@testing-library/react@14.0.0`](https://npmjs.com/package/@testing-library/react)
- [`@types/[email protected]`](https://npmjs.com/package/@types/react-dom)
- [`@types/[email protected]`](https://npmjs.com/package/@types/react)
- [`[email protected]`](https://npmjs.com/package/esbuild)
- [`[email protected]`](https://npmjs.com/package/react-dom)
- [`[email protected]`](https://npmjs.com/package/react-test-renderer)
- [`[email protected]`](https://npmjs.com/package/react)
- [`[email protected]`](https://npmjs.com/package/typescript)

### Fixed
Expand Down
Loading