-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.neutrinorc.js
More file actions
37 lines (36 loc) · 872 Bytes
/
.neutrinorc.js
File metadata and controls
37 lines (36 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
const airbnb = require('@neutrinojs/airbnb');
const react = require('@neutrinojs/react');
const jest = require('@neutrinojs/jest');
module.exports = {
options: {
root: __dirname,
},
use: [
(neutrino) => {
if (process.env.NODE_ENV !== 'test') {
neutrino.config.resolve.alias.set('react-dom', '@hot-loader/react-dom');
}
},
airbnb({
eslint: {
baseConfig: {
rules: {
'react/jsx-props-no-spreading': 'off',
'import/prefer-default-export': 'off',
},
},
},
}),
react({
html: {
title: 'sample-hackernews-client-react-app'
}
}),
jest({
clearMocks: true,
testRegex: './.*(_test|_spec|\.test|\.spec)\.(mjs|jsx|js)$',
setupFiles: ['jest-date-mock'],
setupFilesAfterEnv: ['./tests/setup.js'],
}),
],
};