forked from mozilla-frontend-infra/firefox-health-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.neutrinorc.js
60 lines (59 loc) · 1.75 KB
/
.neutrinorc.js
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/* eslint-disable import/no-extraneous-dependencies */
const airbnb = require('@neutrinojs/airbnb');
const react = require('@neutrinojs/react');
const jest = require('@neutrinojs/jest');
const copy = require('@neutrinojs/copy');
module.exports = {
options: {
root: __dirname,
},
use: [
airbnb({
eslint: {
rules: {
'arrow-parens': ['error', 'as-needed'],
'class-methods-use-this': 0,
'consistent-return': 0,
'jsx-a11y/control-has-associated-label': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0,
'max-classes-per-file': 0,
'max-len': 0,
'no-mixed-operators': 0,
'no-shadow': 0,
'no-return-assign': 0,
'react/default-props-match-prop-types': 0,
'react/destructuring-assignment': 0,
'react/forbid-prop-types': 0,
'react/jsx-props-no-spreading': 0,
'react/no-unused-prop-types': 0,
'react/prefer-stateless-function': 0,
'react/prop-types': 0,
'react/require-default-props': 0,
'react/sort-comp': 0,
'react/state-in-constructor': 0,
},
},
}),
react({
html: {
title: 'Firefox Health Dashboard',
},
env: {
BACKEND: 'https://firefox-health-backend.herokuapp.com',
},
// Read https://stackoverflow.com/a/36623117
// This is the key to making React Router work with neutrino
// Fix issue with nested routes e.g /index/garbage
publicPath: '/',
}),
jest({
setupFilesAfterEnv: ['jest-extended'],
}),
copy({
patterns: [
{ from: 'src/static/favicon.ico', to: 'favicon.ico' },
],
}),
],
};