Skip to content

Commit 94b188c

Browse files
committed
Module-first setup
1 parent 7d18a6a commit 94b188c

32 files changed

+2872
-8478
lines changed

.eslintignore

-2
This file was deleted.

.eslintrc.cjs

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* eslint-env node */
2+
module.exports = {
3+
root: true,
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint'],
6+
extends: [
7+
'eslint:recommended',
8+
'plugin:@typescript-eslint/recommended',
9+
'plugin:import/recommended',
10+
'plugin:import/typescript',
11+
'plugin:react/recommended',
12+
'plugin:react/jsx-runtime',
13+
'plugin:react-hooks/recommended',
14+
'plugin:jsx-a11y/recommended',
15+
'prettier',
16+
],
17+
ignorePatterns: ['dist/'],
18+
settings: {
19+
'import/resolver': {
20+
typescript: true,
21+
},
22+
react: { version: 'detect' },
23+
},
24+
rules: {
25+
'import/no-unresolved': ['error', { ignore: ['jotai-optics'] }],
26+
'@typescript-eslint/no-unused-vars': [
27+
'error',
28+
{
29+
args: 'all',
30+
argsIgnorePattern: '^_',
31+
caughtErrors: 'all',
32+
caughtErrorsIgnorePattern: '^_',
33+
destructuredArrayIgnorePattern: '^_',
34+
varsIgnorePattern: '^_',
35+
ignoreRestSiblings: true,
36+
},
37+
],
38+
},
39+
};

.eslintrc.json

-128
This file was deleted.

.github/workflows/cd.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
cache: 'pnpm'
2121
cache-dependency-path: '**/pnpm-lock.yaml'
2222
- run: pnpm install --frozen-lockfile
23-
- run: pnpm test
24-
- run: pnpm run compile
23+
- run: npm test
24+
- run: npm run compile
2525
- run: npm publish
2626
env:
2727
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
test:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
1212
- uses: pnpm/action-setup@v2
1313
with:
1414
version: 8.2.0
@@ -18,4 +18,4 @@ jobs:
1818
cache: 'pnpm'
1919
cache-dependency-path: '**/pnpm-lock.yaml'
2020
- run: pnpm install --frozen-lockfile
21-
- run: pnpm run test
21+
- run: npm test

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/pnpm-lock.yaml
2+
/dist

.prettierrc

-8
This file was deleted.

0 commit comments

Comments
 (0)