forked from taskcluster/material-ui-json-schema-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.neutrinorc.js
34 lines (33 loc) · 1.03 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
const reactLint = require('@mozilla-frontend-infra/react-lint');
const reactComponents = require('@neutrinojs/react-components');
const jest = require('@neutrinojs/jest');
module.exports = {
use: [
reactLint({
rules: {
/**
* Ignores reference to functions used before the function declaration.
* Since function declarations are hoisted, this is considered safe.
*/
'no-use-before-define': ['error', {
functions: false,
}],
/**
* Allow dangling underscores in identifiers.
* This is specifically enabled to use custom fields in the schemas.
*/
'no-underscore-dangle': ['off'],
'import/prefer-default-export': ['off'],
/**
* Allow both '.jsx' and '.js' file extensions to contain JSX
* ('.js' files are necessary for stories)
*/
'react/jsx-filename-extension': ['error', {
'extensions': ['.js', '.jsx']
}],
},
}),
reactComponents(),
jest(),
]
};