-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade typescript to version 5
- Loading branch information
1 parent
72b156f
commit dbe3108
Showing
60 changed files
with
155 additions
and
1,781 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
node: true, | ||
jest: true, | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended", | ||
"plugin:react-hooks/recommended", | ||
"prettier", | ||
], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, | ||
}, | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
impliedStrict: true, | ||
}, | ||
plugins: [ | ||
"@typescript-eslint", | ||
"react", | ||
"import", | ||
// Not strictly needed but fixes un-used imports via --fix | ||
"unused-imports", | ||
], | ||
rules: { | ||
"import/order": "error", | ||
"no-unused-vars": "off", | ||
"unused-imports/no-unused-imports": "error", | ||
/** | ||
* ignore if the variable starts with an underscore | ||
*/ | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ varsIgnorePattern: "^_", argsIgnorePattern: "^_" }, | ||
], | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"react/prop-types": 0, | ||
"react/display-name": 0, | ||
"no-console": "error", | ||
"func-names": ["error", "always"], | ||
strict: ["error", "global"], | ||
"prefer-const": "error", | ||
"react/no-unknown-property": [ | ||
"error", | ||
{ | ||
ignore: [ | ||
"css", | ||
"vertexColors", | ||
"args", | ||
"attach", | ||
"transparent", | ||
"geometry", | ||
"visible", | ||
"wireframe", | ||
], | ||
}, | ||
], | ||
}, | ||
settings: { | ||
react: { | ||
createClass: "createReactClass", // Regex for Component Factory to use, | ||
// default to "createReactClass" | ||
pragma: "React", // Pragma to use, default to "React" | ||
version: "detect", // React version. "detect" automatically picks the version you have installed. | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ node_modules | |
.cache | ||
dist | ||
.vscode | ||
storybook-static |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
53 changes: 0 additions & 53 deletions
53
storybook-static/243.95392567.iframe.bundle.js.LICENSE.txt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
35 changes: 0 additions & 35 deletions
35
storybook-static/757.de2ca75f.iframe.bundle.js.LICENSE.txt
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.