-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
54 lines (54 loc) · 1.34 KB
/
.eslintrc.cjs
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
44
45
46
47
48
49
50
51
52
53
54
/**
* eslintrc for client packages, server uses eslintrc from 'packages/server/.eslintrc.js'
*/
module.exports = {
parserOptions: {
project: [
'./packages/web-demo-client/tsconfig.json',
'./packages/ocr-demo-client/tsconfig.json',
'./cypress/tsconfig.json',
'./packages/common-client/tsconfig.json',
'./tsconfig.json',
],
tsconfigRootDir: __dirname,
},
globals: {
__PACKAGE_JSON_VERSION__: true,
},
root: true,
// 'prettier' here disables formatting-only-rules that come from the innovatrics-side,
// that might conflict with the prettier-settings
extends: ['@dot/eslint-config-react'],
ignorePatterns: ['graphqlTypes.ts'],
rules: {
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'**/*.test.tsx',
'**/*.test.ts',
'**/setupTests.ts',
'**/testUtils.tsx',
'**/vite.config.ts',
'**/vitest.config.ts',
'**/vitest-canvas.setup.ts',
],
},
],
'@typescript-eslint/no-non-null-assertion': 'off',
},
overrides: [
{
files: ['*.d.ts'],
rules: {
'@typescript-eslint/consistent-type-definitions': ['off'],
},
},
{
files: ['*/analytics.ts'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
},
},
],
};