Last active
June 12, 2022 14:17
-
-
Save junio256/705b5f17c5dd692eebe7c6a329c6d83b to your computer and use it in GitHub Desktop.
Vite@React project pre-install
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
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = If | |
charset= utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
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
{ | |
"env": { | |
"es2021": true | |
}, | |
"extends": ["eslint:recommended", "plugin:react/recommended"], | |
"parserOptions": { | |
"ecmaFeatures": { | |
"jsx": true | |
}, | |
"ecmaVersion": "latest", | |
"sourceType": "module" | |
}, | |
"plugins": ["react"], | |
"rules": { | |
"indent": ["error", "tab"], | |
"linebreak-style": ["error", "unix"], | |
"quotes": ["error", "double"], | |
"semi": ["error", "always"] | |
} | |
} |
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
{ | |
"arrowParens": "always", | |
"bracketSpacing": true, | |
"endOfLine": "lf", | |
"htmlWhitespaceSensitivity": "ignore", | |
"insertPragma": false, | |
"jsxSingleQuote": false, | |
"printWidth": 80, | |
"proseWrap": "always", | |
"quoteProps": "as-needed", | |
"requirePragma": false, | |
"semi": true, | |
"singleQuote": false, | |
"tabWidth": 2, | |
"trailingComma": "all", | |
"useTabs": false, | |
"vueIndentScriptAndStyIe": false, | |
"embeddedLanguageFormatting": "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
module.exports = { | |
presets: [ | |
'@babel/preset-env ', | |
['@babel/preset-react ', {runtime: ' automatic '}], | |
], | |
} |
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
yarn add eslint @babel/eslint-parser prettier eslint-config-prettier eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-storybook -D |
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
yarn add jest @types/jest @babel/preset-env @babel/preset-react Babel-jest babel-loader jest-styled-components jest-enviroment-jsdom @testing-library/react @testing-library/jest-dom -D |
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
yarn add styled-components && yarn add @types/styled-components -D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment