Skip to content

Commit

Permalink
Feat/module types (#507)
Browse files Browse the repository at this point in the history
* refactor(types): rename interfaces

* refactor(types): use named exports for types

* feat(module-types): add ts declaration file to npm module
  • Loading branch information
plumdumpling authored Aug 8, 2023
1 parent 63a7a93 commit 66d90fe
Show file tree
Hide file tree
Showing 15 changed files with 2,035 additions and 206 deletions.
92 changes: 21 additions & 71 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"jsx": true
}
},
"plugins": ["codegen"],
"extends": [
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
Expand All @@ -16,17 +17,11 @@
"@typescript-eslint/explicit-member-accessibility": 0,
"@typescript-eslint/ban-ts-ignore": 0,
"comma-dangle": 2,
"no-cond-assign": [
2,
"except-parens"
],
"no-cond-assign": [2, "except-parens"],
"no-console": [
1,
{
"allow": [
"warn",
"error"
]
"allow": ["warn", "error"]
}
],
"no-constant-condition": 2,
Expand Down Expand Up @@ -58,30 +53,18 @@
"array-callback-return": 2,
"no-var": 2,
"block-scoped-var": 2,
"complexity": [
1,
7
],
"complexity": [1, 7],
"consistent-return": 2,
"curly": [
2,
"all"
],
"curly": [2, "all"],
"default-case": 0,
"dot-location": [
2,
"property"
],
"dot-location": [2, "property"],
"dot-notation": [
1,
{
"allowKeywords": true
}
],
"eqeqeq": [
2,
"smart"
],
"eqeqeq": [2, "smart"],
"guard-for-in": 1,
"no-alert": 2,
"no-caller": 2,
Expand Down Expand Up @@ -130,22 +113,10 @@
"no-with": 2,
"radix": 2,
"vars-on-top": 0,
"wrap-iife": [
2,
"inside"
],
"yoda": [
2,
"never"
],
"strict": [
0,
"never"
],
"init-declarations": [
1,
"always"
],
"wrap-iife": [2, "inside"],
"yoda": [2, "never"],
"strict": [0, "never"],
"init-declarations": [1, "always"],
"no-catch-shadow": 2,
"no-delete-var": 2,
"no-label-var": 2,
Expand All @@ -166,23 +137,13 @@
"no-restricted-modules": 0,
"no-sync": 0,
"camelcase": 2,
"consistent-this": [
2,
"none"
],
"consistent-this": [2, "none"],
"eol-last": 1,
"func-names": 0,
"func-style": 0,
"id-length": [
0
],
"id-match": [
0
],
"max-nested-callbacks": [
2,
3
],
"id-length": [0],
"id-match": [0],
"max-nested-callbacks": [2, 3],
"new-cap": 2,
"new-parens": 2,
"no-array-constructor": 2,
Expand All @@ -196,17 +157,11 @@
"no-trailing-spaces": 2,
"no-underscore-dangle": 1,
"one-var": 0,
"one-var-declaration-per-line": [
2,
"always"
],
"one-var-declaration-per-line": [2, "always"],
"operator-assignment": 0,
"sort-vars": 0,
"wrap-regex": 0,
"max-depth": [
1,
3
],
"max-depth": [1, 3],
"max-len": [
0,
{
Expand All @@ -216,14 +171,8 @@
},
2
],
"max-params": [
2,
4
],
"max-statements": [
1,
15
],
"max-params": [2, 4],
"max-statements": [1, 15],
"no-bitwise": 2,
"no-plusplus": 0,
"no-class-assign": 2,
Expand Down Expand Up @@ -258,7 +207,8 @@
"react/jsx-uses-vars": 2,
"react/jsx-uses-react": 2,
"no-empty-function": 0,
"@typescript-eslint/no-empty-function": 1
"@typescript-eslint/no-empty-function": 1,
"codegen/codegen": "error"
},
"settings": {
"react": {
Expand Down
Loading

0 comments on commit 66d90fe

Please sign in to comment.