Skip to content

Commit

Permalink
feat: rewrite with typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepolischuk committed Jun 22, 2022
1 parent 7ba9c4e commit a06923b
Show file tree
Hide file tree
Showing 26 changed files with 20,363 additions and 11,061 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

36 changes: 0 additions & 36 deletions .eslintrc

This file was deleted.

12 changes: 12 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"parser": "@typescript-eslint/parser",
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
"rules": {
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-unused-vars": ["error", {"argsIgnorePattern": "^_"}],
"@typescript-eslint/explicit-function-return-type": [
"error",
{"allowExpressions": true}
]
}
}
13 changes: 10 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
.DS_Store
node_modules
lib
*.log
.idea/
npm-debug.log
yarn-error.log
coverage
.nyc_output
.vscode
cjs
esm
deploy
public
spec.*
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"semi": false,
"trailingComma": "none",
"singleQuote": true,
"bracketSpacing": false,
"jsxBracketSameLine": true
Expand Down
7 changes: 0 additions & 7 deletions .size-limit

This file was deleted.

14 changes: 14 additions & 0 deletions .size-limit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[
{
"name": "The size of the provider",
"limit": "5 KB",
"path": "esm/index.js",
"import": "{Provider}"
},
{
"name": "The size of the consumer",
"limit": "5 KB",
"path": "esm/index.js",
"import": "{Consumer}"
}
]
Loading

0 comments on commit a06923b

Please sign in to comment.