Last active
March 9, 2020 06:20
-
-
Save wildfrontend/296e34669b405631f785efc3ff8194de to your computer and use it in GitHub Desktop.
react project code style lint
This file contains hidden or 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
# 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 |
This file contains hidden or 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
{ | |
"trailingComma": "all", | |
"tabWidth": 4, | |
"semi": false, | |
"singleQuote": true | |
} |
This file contains hidden or 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 = { | |
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', | |
}, | |
}, | |
], | |
], | |
} |
This file contains hidden or 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
Show hidden characters
// .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