diff --git a/package.json b/package.json index bb4bfd2..7651e6a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "private": true, "scripts": { - "lint:js": "eslint . --ext .js --ext .jsx", + "lint:js": "eslint .", "lint:js:fix": "npm run lint:js -- --fix", "clean": "rimraf public/bundle", "prebuild": "npm run clean", diff --git a/src/client.jsx b/src/client.js similarity index 100% rename from src/client.jsx rename to src/client.js diff --git a/src/components/app/index.jsx b/src/components/app/index.js similarity index 100% rename from src/components/app/index.jsx rename to src/components/app/index.js diff --git a/src/components/file-drop-zone/index.jsx b/src/components/file-drop-zone/index.js similarity index 100% rename from src/components/file-drop-zone/index.jsx rename to src/components/file-drop-zone/index.js diff --git a/src/components/github-links/index.jsx b/src/components/github-links/index.js similarity index 100% rename from src/components/github-links/index.jsx rename to src/components/github-links/index.js diff --git a/src/components/header/index.jsx b/src/components/header/index.js similarity index 100% rename from src/components/header/index.jsx rename to src/components/header/index.js diff --git a/src/components/symbol-list/index.jsx b/src/components/symbol-list/index.js similarity index 100% rename from src/components/symbol-list/index.jsx rename to src/components/symbol-list/index.js diff --git a/src/components/tool/index.jsx b/src/components/tool/index.js similarity index 100% rename from src/components/tool/index.jsx rename to src/components/tool/index.js diff --git a/webpack.config.js b/webpack.config.js index b5a3813..daa8c91 100755 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,7 +2,7 @@ const path = require('path') const webpack = require('webpack') const config = { - entry: './src/client.jsx', + entry: './src/client', output: { path: path.resolve(__dirname, 'public/bundle'), publicPath: '/bundle/', @@ -11,7 +11,7 @@ const config = { module: { rules: [ { - test: /\.(js|jsx)$/, + test: /\.js$/, exclude: /node_modules/, use: 'babel-loader', options: { @@ -28,8 +28,7 @@ const config = { modules: [ 'node_modules', path.resolve(__dirname, 'src') - ], - extensions: ['.js', '.jsx'] + ] }, plugins: [ new webpack.EnvironmentPlugin(['NODE_ENV'])