|
23 | 23 | "import/internal-regex":"^@/"
|
24 | 24 | },
|
25 | 25 | "overrides": [
|
26 |
| -{ |
27 |
| -"files": ["test/**/*.{ts,tsx}","**/*.{test,spec}.ts?(x)"], |
28 |
| -"settings": { |
29 |
| -"import/resolver": { |
30 |
| -"typescript": { |
31 |
| -// In tests, resolve using the test tsconfig |
32 |
| -"project":"test/tsconfig.json" |
33 |
| -} |
34 |
| -} |
35 |
| -} |
36 |
| -}, |
37 | 26 | {
|
38 | 27 | "files": ["*.ts"],
|
39 | 28 | "rules": {
|
|
53 | 42 | ]
|
54 | 43 | }
|
55 | 44 | },
|
| 45 | +{ |
| 46 | +"files": ["test/**/*.{ts,tsx}","**/*.{test,spec}.ts?(x)"], |
| 47 | +"settings": { |
| 48 | +"import/resolver": { |
| 49 | +"typescript": { |
| 50 | +// In tests, resolve using the test tsconfig |
| 51 | +"project":"test/tsconfig.json" |
| 52 | +} |
| 53 | +} |
| 54 | +} |
| 55 | +}, |
| 56 | +{ |
| 57 | +"files": ["src/core/contextManager.ts"], |
| 58 | +"rules": { |
| 59 | +"no-restricted-syntax":"off" |
| 60 | +} |
| 61 | +}, |
56 | 62 | {
|
57 | 63 | "extends": ["plugin:package-json/legacy-recommended"],
|
58 | 64 | "files": ["*.json"],
|
|
110 | 116 | "sublings_only":true
|
111 | 117 | }
|
112 | 118 | }
|
| 119 | +], |
| 120 | +"no-restricted-syntax": [ |
| 121 | +"error", |
| 122 | +{ |
| 123 | +"selector":"CallExpression[callee.property.name='executeCommand'][arguments.0.value='setContext'][arguments.length>=3]", |
| 124 | +"message":"Do not use executeCommand('setContext', ...) directly. Use the ContextManager class instead." |
| 125 | +} |
113 | 126 | ]
|
114 | 127 | }
|
115 | 128 | }
|