Skip to content

Commit

Permalink
Module-first setup (#209)
Browse files Browse the repository at this point in the history
* wip: base setup

* format with prettier

* fix spec test

* ex 01

* ex 02

* ex 03

* ex 04

* ex 05

* ex 06

* ex 07

* ex 08

* ex 09

* ex 10

* ex 11

* ex 12

* ex 13

* ex 14

* ex 15

* fix lint and types

* wip: e2e

* e2e snapshots

* format

* fix vitest config

* update CHANGELOG

* prepare-e2e hack
  • Loading branch information
dai-shi authored Apr 29, 2024
1 parent 0542bec commit 9b41c48
Show file tree
Hide file tree
Showing 198 changed files with 5,756 additions and 11,593 deletions.
39 changes: 39 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/* eslint-env node */
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'prettier',
],
ignorePatterns: ['dist/', 'website/'],
settings: {
'import/resolver': {
typescript: true,
},
react: { version: 'detect' },
},
rules: {
'import/no-unresolved': ['error', { ignore: ['react-tracked'] }],
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'all',
argsIgnorePattern: '^_',
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
},
};
57 changes: 0 additions & 57 deletions .eslintrc.json

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/pnpm-lock.yaml
/dist
/website/pnpm-lock.yaml
/website/dist
Loading

0 comments on commit 9b41c48

Please sign in to comment.