Skip to content

Commit 8b58ca0

Browse files
committed
init website for debug, update deps
1 parent 1e0c843 commit 8b58ca0

File tree

17 files changed

+32361
-2043
lines changed

17 files changed

+32361
-2043
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ dist/*
55
.eslintrc.js
66
.jest.config.js
77
rollup.config.js
8+
/website/dist

.eslintrc.js

Lines changed: 12 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,18 @@
11
module.exports = {
2-
parser: '@typescript-eslint/parser',
3-
parserOptions: {
4-
project: './tsconfig.json',
5-
},
6-
extends: [
7-
'airbnb',
8-
'prettier',
9-
'plugin:@typescript-eslint/recommended',
10-
],
11-
plugins: [
12-
'prettier',
13-
'@typescript-eslint',
14-
],
2+
root: true,
153
env: {
16-
es6: true
17-
},
18-
settings: {
19-
'import/resolver': {
20-
node: {
21-
extensions: ['.ts','.js'],
22-
},
23-
},
4+
browser: true,
5+
node: true,
246
},
7+
parser: '@typescript-eslint/parser',
8+
plugins: ['@typescript-eslint', 'react-hooks'],
9+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
2510
rules: {
26-
'no-plusplus': 0,
27-
'no-console': 0,
28-
'no-continue': 0,
29-
'spaced-comment': 0,
30-
'no-restricted-globals': 0,
31-
'prettier/prettier': 1,
32-
'consistent-return': 0,
33-
'no-nested-ternary': 0,
34-
'no-unused-expressions': 0,
35-
'no-param-reassign': 0,
36-
'import/no-unresolved': 0,
37-
'no-bitwise': 0,
38-
'no-shadow': 0,
39-
'default-case': 0,
40-
'no-restricted-syntax': 0,
41-
'dot-notation': 0,
42-
'prefer-template': 0,
43-
'newline-before-return': 0,
44-
'no-return-assign': 0,
45-
'class-methods-use-this': 0,
46-
'@typescript-eslint/ban-ts-ignore': 0,
47-
'@typescript-eslint/no-use-before-define': 0,
48-
'@typescript-eslint/explicit-function-return-type': 0,
49-
'@typescript-eslint/no-explicit-any': 0,
50-
'@typescript-eslint/no-var-requires': 0,
51-
'@typescript-eslint/no-non-null-assertion': 0,
52-
'import/no-default-export': 2,
53-
'import/no-self-import': 2,
54-
'import/no-named-as-default': 2,
55-
'arrow-body-style': 2,
56-
'import/prefer-default-export': 0,
57-
'import/no-extraneous-dependencies': 0,
58-
'@typescript-eslint/no-empty-function': 0,
59-
'@typescript-eslint/ban-types': 1,
60-
'@typescript-eslint/ban-ts-comment': 1,
61-
'no-use-before-define': 0,
62-
'no-debugger': 1,
63-
'no-template-curly-in-string': 0,
64-
'import/extensions': [
65-
'error',
66-
'ignorePackages',
67-
{
68-
ts: 'never',
69-
},
70-
],
11+
'@typescript-eslint/ban-ts-comment': 'off',
12+
'@typescript-eslint/no-explicit-any': 'off',
13+
'@typescript-eslint/no-var-requires': 'off',
14+
'@typescript-eslint/no-empty-function': 'off',
15+
'react-hooks/rules-of-hooks': 'error',
16+
'react-hooks/exhaustive-deps': 'warn',
7117
},
7218
};

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ temp
55
src/__dev
66
/dist/__dev/
77
/dist/__run.d.ts
8+
/website/dist
9+
.parcel-cache

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ src/__dev
1010
/dist/__run.d.ts
1111
docs/
1212
.github/
13+
website
1314

1415
.editorconfig
1516
tsconfig.json

dist/index.d.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

dist/index.esm.js

Lines changed: 43 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)