Skip to content

Instantly share code, notes, and snippets.

@box-turtle
Forked from zackify/.eslintrc
Created November 9, 2015 11:27
Show Gist options
  • Save box-turtle/57731017db3011a2cf02 to your computer and use it in GitHub Desktop.
Save box-turtle/57731017db3011a2cf02 to your computer and use it in GitHub Desktop.
Upgrade to Babel 6
"devDependencies": {
"babel-plugin-syntax-class-properties": "^6.0.14",
"babel-preset-react": "^6.1.2",
"eslint": "^1.9.0",
"eslint-loader": "^1.1.1",
"babel-core": "^6.1.2",
"babel-loader": "^6.0.1",
"babel-preset-es2015": "^6.1.2",
},
module.exports = {
entry: {
overview: './resources/assets/js/overview.jsx'
},
output: {
path: __dirname + "/public/assets/js",
filename: "[name].js"
},
module: {
loaders: [
{
test: /\.jsx|.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
plugins: ["syntax-class-properties"],
presets: ["es2015", "react"]
}
},
{
test: /\.jsx|.js$/,
exclude: /node_modules/,
loader: 'eslint-loader'
},
{
test: /\.json$/,
exclude: /node_modules/,
loader: 'json-loader'
}
]
},
resolve: {
extensions: ['', '.js', '.jsx']
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment