Skip to content

Instantly share code, notes, and snippets.

@wildfrontend
Last active March 9, 2020 06:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wildfrontend/296e34669b405631f785efc3ff8194de to your computer and use it in GitHub Desktop.
Save wildfrontend/296e34669b405631f785efc3ff8194de to your computer and use it in GitHub Desktop.
react project code style lint
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
# Dependency directories
node_modules/
# ...more
{
"trailingComma": "all",
"tabWidth": 4,
"semi": false,
"singleQuote": true
}
module.exports = {
exclude: 'node_modules/**',
presets: ['@babel/preset-env', '@babel/preset-react'],
plugins: [
[
'module-resolver',
{
root: ['./src'],
alias: {
components: './src/components',
context: './src/context',
functions: './src/functions',
hooks: './src/hooks',
svg: './src/assets/svg',
},
},
],
],
}
// .vscode/jsconfig.json
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": ["src/*"],
"test/*": ["test/*"],
"underscore": ["lodash"]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment