forked from openedx/frontend-lib-content-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (29 loc) · 832 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
25
26
27
28
29
30
31
32
// eslint-disable-next-line import/no-extraneous-dependencies
const { createConfig } = require('@openedx/frontend-build');
const config = createConfig('eslint', {
rules: {
'import/no-named-as-default': 'off',
'import/no-named-as-default-member': 'off',
'import/no-self-import': 'off',
'spaced-comment': ['error', 'always', { block: { exceptions: ['*'] } }],
'react-hooks/rules-of-hooks': 2,
'react-hooks/exhaustive-deps': 'off',
'no-promise-executor-return': 'off',
'no-param-reassign': ['error', { props: false }],
radix: 'off',
},
});
config.settings = {
'import/resolver': {
alias: {
map: [
['editors', './src/editors'],
],
},
node: {
paths: ['editors', 'node_modules'],
extensions: ['.js', '.jsx'],
},
},
};
module.exports = config;