@travetto/eslint 7.0.0-rc.2 → 7.0.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/eslint",
|
|
3
|
-
"version": "7.0.0-rc.
|
|
3
|
+
"version": "7.0.0-rc.3",
|
|
4
4
|
"description": "ES Linting Rules",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@eslint/js": "^9.35.0",
|
|
28
28
|
"@stylistic/eslint-plugin": "^5.6.1",
|
|
29
|
-
"@travetto/runtime": "^7.0.0-rc.
|
|
29
|
+
"@travetto/runtime": "^7.0.0-rc.3",
|
|
30
30
|
"@types/eslint": "^9.6.1",
|
|
31
31
|
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
32
32
|
"@typescript-eslint/parser": "^8.48.0",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"eslint-plugin-unused-imports": "^4.3.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@travetto/cli": "^7.0.0-rc.
|
|
37
|
+
"@travetto/cli": "^7.0.0-rc.3"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|
|
40
40
|
"@travetto/cli": {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { existsSync, readFileSync } from 'node:fs';
|
|
2
|
-
|
|
3
1
|
import { configs } from '@eslint/js';
|
|
4
2
|
import tsEslintPlugin from '@typescript-eslint/eslint-plugin';
|
|
5
3
|
import stylisticPlugin from '@stylistic/eslint-plugin';
|
|
6
4
|
import unusedImports from 'eslint-plugin-unused-imports';
|
|
7
5
|
|
|
8
|
-
import { Runtime } from '@travetto/runtime';
|
|
6
|
+
import { JSONUtil, Runtime } from '@travetto/runtime';
|
|
9
7
|
|
|
10
8
|
import { IGNORES, GLOBALS, TS_OPTIONS } from './eslint-common.ts';
|
|
11
9
|
import { STD_RULES } from './eslint-std-rules.ts';
|
|
@@ -22,7 +20,7 @@ export function buildConfig(pluginMaps: Record<string, TrvEslintPlugin>[]): read
|
|
|
22
20
|
|
|
23
21
|
const overrides = Runtime.workspaceRelative('eslint-overrides.json');
|
|
24
22
|
|
|
25
|
-
const extra: (typeof STD_RULES)[] =
|
|
23
|
+
const extra: (typeof STD_RULES)[] = JSONUtil.readFileSync(overrides, []);
|
|
26
24
|
|
|
27
25
|
const result = [
|
|
28
26
|
configs.recommended,
|