forked from ReactTooltip/react-tooltip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
2,492 additions
and
1,365 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
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 |
---|---|---|
@@ -1,53 +1,57 @@ | ||
{ | ||
"parser": "@babel/eslint-parser", | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"extends": ["standard", "prettier", "eslint:recommended", "plugin:react/recommended"], | ||
"env": { | ||
"es6": true, | ||
"jest": true | ||
}, | ||
"plugins": ["react", "prettier"], | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 2018, | ||
"requireConfigFile": false, | ||
"ecmaFeatures": { | ||
"impliedStrict": true, | ||
"jsx": true, | ||
"arrowFunctions": true, | ||
"blockBindings": true, | ||
"defaultParams": true, | ||
"destructuring": true, | ||
"forOf": true, | ||
"generators": true, | ||
"objectLiteralComputedProperties": true, | ||
"objectLiteralShorthandMethods": true, | ||
"objectLiteralShorthandProperties": true, | ||
"experimentalObjectRestSpread": true, | ||
"restParams": true, | ||
"spread": true, | ||
"templateStrings": true, | ||
"modules": true, | ||
"classes": true | ||
} | ||
}, | ||
"rules": { | ||
"react/jsx-no-bind": "off", | ||
"space-before-function-paren": 0, | ||
"react/jsx-boolean-value": 0, | ||
"max-len": [2, { "code": 120, "ignoreComments": true }], | ||
"newline-per-chained-call": 0, | ||
"no-trailing-spaces": ["error"], | ||
"quotes": ["error", "single", { "avoidEscape": true }], | ||
"comma-dangle": ["error", "never"], | ||
"no-template-curly-in-string": "off", | ||
"semi": ["error", "always"], | ||
"object-curly-spacing": ["error", "always"], | ||
"quote-props": ["error", "consistent"], | ||
"no-var": ["error"] | ||
} | ||
} | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
}, | ||
"extends": [ | ||
// "standard", | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:react/recommended" | ||
], | ||
"env": { | ||
//error with "es2021": true | ||
"es6": true, | ||
"jest": true, | ||
"node": true, | ||
"browser": true | ||
}, | ||
"plugins": ["@typescript-eslint", "react", "react-hooks"], | ||
"parserOptions": { | ||
"ecmaVersion": 12, | ||
"sourceType": "module", | ||
"requireConfigFile": false, | ||
"ecmaFeatures": { | ||
"jsx": true | ||
} | ||
}, | ||
"rules": { | ||
"react/jsx-uses-react": "off", | ||
"react/react-in-jsx-scope": "off", | ||
"react/prop-types": "off", | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"react/jsx-no-bind": [ | ||
"warn", | ||
{ | ||
"ignoreRefs": true | ||
} | ||
], | ||
"space-before-function-paren": 0, | ||
"react/jsx-boolean-value": 0, | ||
"max-len": [2, { "code": 120, "ignoreComments": true }], | ||
"newline-per-chained-call": 0, | ||
"no-trailing-spaces": ["error"], | ||
"quotes": ["error", "single", { "avoidEscape": true }], | ||
"comma-dangle": ["error", "never"], | ||
"no-template-curly-in-string": "off", | ||
"semi": ["error", "always"], | ||
"object-curly-spacing": ["error", "always"], | ||
"quote-props": ["error", "consistent"], | ||
"no-var": ["error"], | ||
"indent": "off" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -12,3 +12,4 @@ | |
node_modules/ | ||
dist/ | ||
build/ | ||
/out-tsc/** |
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
// prettier.config.js or .prettierrc.js | ||
module.exports = { | ||
singleQuote: true, | ||
trailingComma: "none", | ||
trailingComma: 'none', | ||
tabWidth: 2, | ||
printWidth: 80, | ||
semi: true, | ||
bracketSpacing: true, | ||
jsxBracketSameLine: false, | ||
endOfLine: "lf" | ||
endOfLine: 'lf' | ||
}; |
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,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="src/favicon.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Vite React TypeScript Tailwind Starter</title> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/index.tsx"></script> | ||
</body> | ||
</html> |
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
File renamed without changes.
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,8 @@ | ||
import { defineConfig } from 'vite'; | ||
import react from '@vitejs/plugin-react'; | ||
import tsconfigPaths from 'vite-tsconfig-paths'; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [react(), tsconfigPaths()] | ||
}); |
Oops, something went wrong.