forked from openedx/frontend-app-admin-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
37 lines (31 loc) · 873 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
33
34
35
36
37
// eslint-disable-next-line import/no-extraneous-dependencies
const { getBaseConfig } = require('@openedx/frontend-build');
const config = getBaseConfig('eslint');
/* Custom config manipulations */
config.rules = {
...config.rules,
'@typescript-eslint/default-param-last': 'off',
'react/require-default-props': 'off',
'import/no-named-as-default': 0,
};
config.ignorePatterns = ["*.json", ".eslintrc.js", "*.config.js", "jsdom-with-global.js"];
config.overrides = [
{
files: ['*.test.js', '*.test.jsx'],
parser: "@typescript-eslint/parser",
parserOptions: {
project: [
"./tsconfig.json",
"./functions/tsconfig.json",
]
}
},
{
files: ['*.test.js', '*.test.jsx'],
rules: {
'react/prop-types': 'off',
'react/jsx-no-constructed-context-values': 'off',
},
},
];
module.exports = config;