Skip to content

Commit 9c838ee

Browse files
committed
linting
1 parent d6d59a2 commit 9c838ee

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

docs/guides/rails-webpacker-react-integration-options.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,7 @@ You can see an example commit of adding this [here](https://github.com/shakacode
132132
133133
//plugins
134134
if (isWebpackDevServer) {
135-
environment.plugins.append(
136-
'ReactRefreshWebpackPlugin',
137-
new ReactRefreshWebpackPlugin({}),
138-
);
135+
environment.plugins.append('ReactRefreshWebpackPlugin', new ReactRefreshWebpackPlugin({}));
139136
}
140137
```
141138

spec/dummy/config/webpack/development.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
process.env.NODE_ENV = process.env.NODE_ENV || 'development';
22

3-
const { devServer, inliningCss } = require('shakapacker');
3+
const { inliningCss } = require('shakapacker');
44

55
const webpackConfig = require('./webpackConfig');
66

@@ -12,9 +12,7 @@ const developmentEnvOnly = (clientWebpackConfig, _serverWebpackConfig) => {
1212

1313
// eslint-disable-next-line global-require
1414
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
15-
clientWebpackConfig.plugins.push(
16-
new ReactRefreshWebpackPlugin({}),
17-
);
15+
clientWebpackConfig.plugins.push(new ReactRefreshWebpackPlugin({}));
1816
}
1917
};
2018

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import ReactOnRails from 'react-on-rails';
22

33
test('ReactOnRails', () => {
4-
ReactOnRails.register({});
4+
expect(() => {
5+
ReactOnRails.register({});
6+
}).not.toThrow();
57
});
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
const ReactOnRails = require('react-on-rails').default;
22

33
test('ReactOnRails', () => {
4-
ReactOnRails.register({});
4+
expect(() => {
5+
ReactOnRails.register({});
6+
}).not.toThrow();
57
});

0 commit comments

Comments
 (0)