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 = lf | |
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
module.exports = { | |
printWidth: 80, | |
semi: true, | |
singleQuote: true, | |
trailingComma: 'all', | |
}; |
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
const prettierOptions = require('./prettier.config'); | |
module.exports = { | |
parser: 'babel-eslint', | |
extends: ['airbnb', 'prettier', 'prettier/react'], | |
plugins: ['prettier', 'react', 'jsx-a11y'], | |
env: { | |
browser: true, | |
node: true, | |
jest: 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
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
const App = () => <div>Howdy traveller!</div>; | |
ReactDOM.render(<App />, document.getElementById('root')); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<!-- Make mobile compatible --> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>My React app</title> | |
</head> |
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 = api => { | |
api.cache.invalidate(() => process.env.NODE_ENV === 'production'); | |
return { | |
presets: [ | |
[ | |
'@babel/preset-env', | |
{ | |
useBuiltIns: 'usage', | |
}, | |
], |
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
> 0.25% | |
not dead |
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
const path = require('path'); | |
const HtmlWebPackPlugin = require('html-webpack-plugin'); | |
const plugins = [ | |
new HtmlWebPackPlugin({ | |
inject: true, | |
template: path.join(process.cwd(), 'src/index.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
const webpack = require('webpack'); | |
const plugins = [new webpack.HotModuleReplacementPlugin()]; | |
module.exports = require('./webpack.base')({ | |
mode: 'development', | |
devServer: { | |
hot: true, | |
port: 3000, | |
}, |
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
const path = require('path'); | |
const plugins = []; | |
module.exports = require('./webpack.base')({ | |
mode: 'production', | |
devServer: { | |
port: 3000, | |
contentBase: path.join(process.cwd(), 'dist/'), | |
}, | |
plugins, |
OlderNewer