Skip to content

Commit 3fa9b81

Browse files
authored
Bump scaffold (#17)
* Move to workspaces * Update test for new @testing-library/react * Bump scaffold * Add workspaces
1 parent 9f253d6 commit 3fa9b81

24 files changed

+8440
-16572
lines changed

.eslintrc.react.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
extends:
2+
- plugin:react/recommended
3+
plugins:
4+
- react

.eslintrc.typescript.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
extends:
2+
- plugin:@typescript-eslint/recommended
3+
parser: '@typescript-eslint/parser'
4+
plugins:
5+
- '@typescript-eslint'
6+
rules:
7+
'@typescript-eslint/no-unused-vars':
8+
- error
9+
- argsIgnorePattern: ^_
10+
caughtErrorsIgnorePattern: ^_
11+
destructuredArrayIgnorePattern: ^_
12+
varsIgnorePattern: ^_

.eslintrc.yml

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,44 @@
11
env:
22
browser: true
3-
es2021: true
43
extends:
54
- eslint:recommended
6-
- plugin:react/recommended
7-
- plugin:@typescript-eslint/recommended
85
overrides:
6+
- extends: .eslintrc.react.yml
7+
files:
8+
- '**/*.jsx'
9+
- '**/*.tsx'
10+
- extends: .eslintrc.typescript.yml
11+
files:
12+
- '**/*.mts'
13+
- '**/*.ts'
14+
- '**/*.tsx'
915
- extends: .eslintrc.jest.yml
1016
files:
11-
- '__tests__/**'
12-
- '*.spec.js'
13-
- '*.spec.jsx'
14-
- '*.spec.ts'
15-
- '*.spec.tsx'
16-
- '*.test.js'
17-
- '*.test.jsx'
18-
- '*.test.ts'
19-
- '*.test.tsx'
20-
parser: '@typescript-eslint/parser'
17+
- '**/__tests__/**'
18+
- '**/*.spec.cjs'
19+
- '**/*.spec.mjs'
20+
- '**/*.spec.js'
21+
- '**/*.spec.jsx'
22+
- '**/*.spec.cts'
23+
- '**/*.spec.mts'
24+
- '**/*.spec.ts'
25+
- '**/*.spec.tsx'
26+
- '**/*.test.cjs'
27+
- '**/*.test.mjs'
28+
- '**/*.test.js'
29+
- '**/*.test.jsx'
30+
- '**/*.test.cts'
31+
- '**/*.test.mts'
32+
- '**/*.test.ts'
33+
- '**/*.test.tsx'
2134
parserOptions:
2235
ecmaVersion: latest
2336
sourceType: module
2437
plugins:
2538
- prettier
26-
- react
27-
- '@typescript-eslint'
2839
root: true
2940
rules:
3041
prettier/prettier: error
3142
no-empty:
3243
- error
3344
- allowEmptyCatch: true
34-
'@typescript-eslint/no-unused-vars':
35-
- error
36-
- argsIgnorePattern: ^_
37-
caughtErrorsIgnorePattern: ^_
38-
destructuredArrayIgnorePattern: ^_
39-
varsIgnorePattern: ^_
40-
settings:
41-
react:
42-
version: 17.0.2

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ body:
7979
*Support will be slow or denied if a test case is not provided.*
8080
render: js
8181
value: |
82-
import { renderHook } from '@testing-library/react-hooks';
82+
import { renderHook } from '@testing-library/react';
8383
import { useMemoMap } from 'use-memo-map';
8484
8585
test('simple scenario', () => {

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Changed
1111

1212
- Added type-checking for test, by [@compulim](https://github.com/compulim), in PR [#16](https://github.com/compulim/use-memo-map/pull/16)
13-
- 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)
13+
- 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)
1414
- Development dependencies
15-
- [`@types/react@18.2.21`](https://npmjs.com/package/@types/react)
15+
- [`@testing-library/react@14.0.0`](https://npmjs.com/package/@testing-library/react)
1616
- [`@types/[email protected]`](https://npmjs.com/package/@types/react-dom)
17+
- [`@types/[email protected]`](https://npmjs.com/package/@types/react)
1718
- [`[email protected]`](https://npmjs.com/package/esbuild)
19+
- [`[email protected]`](https://npmjs.com/package/react-dom)
20+
- [`[email protected]`](https://npmjs.com/package/react-test-renderer)
21+
- [`[email protected]`](https://npmjs.com/package/react)
1822
- [`[email protected]`](https://npmjs.com/package/typescript)
1923

2024
### Fixed

0 commit comments

Comments
 (0)