-
Notifications
You must be signed in to change notification settings - Fork 26
/
.eslintrc.js
43 lines (41 loc) · 901 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
38
39
40
41
42
43
process.env.ENABLE_NEW_JSX_TRANSFORM = 'true';
const path = require('path');
/**
* @type {import("eslint").Linter.Config}
*/
module.exports = {
extends: ['@commercetools-frontend/eslint-config-mc-app'],
rules: {
'testing-library/no-node-access': 'off',
'testing-library/no-container': 'off',
},
overrides: [
{
files: ['*.story.js', '*.visualroute.js', '**/docs/*.js'],
rules: {
'react/display-name': 'off',
},
settings: {
'import/resolver': {
node: {
paths: [path.resolve('docs/node_modules')],
},
},
},
},
{
files: ['*.visualspec.js'],
globals: {
page: true,
HOST: true,
globalThis: true,
},
},
{
files: ['version.js', 'version.ts'],
rules: {
'import/no-anonymous-default-export': 'off',
},
},
],
};