forked from openedx/frontend-app-learner-portal-enterprise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
24 lines (20 loc) · 804 Bytes
/
.eslintrc.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
// eslint-disable-next-line import/no-extraneous-dependencies
const { getBaseConfig } = require('@edx/frontend-build');
const config = getBaseConfig('eslint');
config.overrides = [
{
files: ['*.test.js', '*.test.jsx'],
rules: {
'react/prop-types': 'off',
'react/jsx-no-constructed-context-values': 'off',
},
},
];
// Temporarily update the 'indent' and 'template-curly-spacing' rules
// since they are causing eslint to fail for no apparent reason since
// upgrading @edx/frontend-build from v3 to v5:
// - TypeError: Cannot read property 'range' of null
config.rules.indent = ['error', 2, { ignoredNodes: ['TemplateLiteral', 'SwitchCase'] }];
config.rules['template-curly-spacing'] = 'off';
config.rules['import/prefer-default-export'] = 'off';
module.exports = config;