Skip to content

Instantly share code, notes, and snippets.

@MarcoWorms
Last active May 26, 2017 14:10
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 MarcoWorms/cca480bfabf88e58ac8e69a806d2f99f to your computer and use it in GitHub Desktop.
Save MarcoWorms/cca480bfabf88e58ac8e69a806d2f99f to your computer and use it in GitHub Desktop.
My js dotfiles
// webpack.config.js
module.exports = {
target: ['browser','node'],
context: __dirname + '/src',
entry: './index',
output: {
path: __dirname + '/dist',
filename: 'bundle.js',
},
}
// .eslintrc
module.exports = {
"extends": ["airbnb-base"],
"env": {
"browser": true,
"node": true,
"jest": true
},
"rules": {
"import/no-extraneous-dependencies": [2, { "devDependencies": true }],
"semi": [2, "never"],
"space-before-function-paren": [2, "always"],
"comma-dangle": [
'error',
{
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
},
],
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment