Skip to content

Instantly share code, notes, and snippets.

@junio256
Last active June 12, 2022 14:17
Show Gist options
  • Save junio256/705b5f17c5dd692eebe7c6a329c6d83b to your computer and use it in GitHub Desktop.
Save junio256/705b5f17c5dd692eebe7c6a329c6d83b to your computer and use it in GitHub Desktop.
Vite@React project pre-install
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = If
charset= utf-8
trim_trailing_whitespace = true
insert_final_newline = true
{
"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"]
}
}
{
"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"
}
module.exports = {
presets: [
'@babel/preset-env ',
['@babel/preset-react ', {runtime: ' automatic '}],
],
}
yarn add eslint @babel/eslint-parser prettier eslint-config-prettier eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-storybook -D
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
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