Skip to content

Commit

Permalink
feat(library): update project to typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
rhahao committed Apr 27, 2024
1 parent 8ee4317 commit 5fd263d
Show file tree
Hide file tree
Showing 9 changed files with 10,314 additions and 5,239 deletions.
26 changes: 26 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"root": true,
"env": { "browser": true, "es2020": true },
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:react/recommended",
"plugin:react/jsx-runtime"
],
"rules": {
"no-console": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error"
},
"ignorePatterns": ["dist", ".eslintrc.json", "vite.config.ts"]
}
Loading

0 comments on commit 5fd263d

Please sign in to comment.