@travetto/eslint 5.0.1 → 5.0.2

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/README.md CHANGED
@@ -36,7 +36,7 @@ process.env.TRV_MANIFEST = './.trv/output/node_modules/@travetto/eslint';
36
36
  const { buildConfig } = require('./.trv/output/node_modules/@travetto/eslint/support/bin/eslint-config.js');
37
37
  const { RuntimeIndex } = require('./.trv/output/node_modules/@travetto/runtime/__index__.js');
38
38
 
39
- const pluginFiles = RuntimeIndex.find({ folder: f => f === 'support', file: f => /support\/eslint[.]/.test(f) });
39
+ const pluginFiles = RuntimeIndex.find({ folder: f => f === 'support', file: f => /support\/eslint[.]/.test(f.relativeFile) });
40
40
  const plugins = pluginFiles.map(x => require(x.outputFile));
41
41
  const config = buildConfig(plugins);
42
42
 
@@ -145,7 +145,7 @@ export const ImportOrder: TrvEslintPlugin = {
145
145
 
146
146
  const lineType: typeof groupType = /^@travetto/.test(from) ? 'travetto' : /^[^.]/.test(from) ? 'node' : 'workspace';
147
147
 
148
- if (/module\/[^/]+\/doc\//.test(context.getFilename()) && lineType === 'workspace' && from.startsWith('..')) {
148
+ if (/module\/[^/]+\/doc\//.test(context.filename) && lineType === 'workspace' && from.startsWith('..')) {
149
149
  context.report({ message: 'Doc does not support parent imports', node });
150
150
  }
151
151
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/eslint",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "ES Linting Rules",
5
5
  "keywords": [
6
6
  "eslint",
@@ -26,7 +26,7 @@
26
26
  "dependencies": {
27
27
  "@eslint/js": "^9.9.0",
28
28
  "@stylistic/eslint-plugin": "^2.7.2",
29
- "@travetto/runtime": "^5.0.1",
29
+ "@travetto/runtime": "^5.0.2",
30
30
  "@types/eslint": "^9.6.1",
31
31
  "@types/eslint__js": "^8.42.3",
32
32
  "@typescript-eslint/eslint-plugin": "^8.3.0",
@@ -34,7 +34,7 @@
34
34
  "eslint": "^9.9.1"
35
35
  },
36
36
  "peerDependencies": {
37
- "@travetto/cli": "^5.0.1"
37
+ "@travetto/cli": "^5.0.2"
38
38
  },
39
39
  "peerDependenciesMeta": {
40
40
  "@travetto/cli": {
@@ -3,7 +3,7 @@ process.env.TRV_MANIFEST = '%MANIFEST_FILE%';
3
3
  const { buildConfig } = require('@travetto/eslint/support/bin/eslint-config');
4
4
  const { RuntimeIndex } = require('@travetto/runtime/__index__');
5
5
 
6
- const pluginFiles = RuntimeIndex.find({ folder: f => f === 'support', file: f => /support\/eslint[.]/.test(f) });
6
+ const pluginFiles = RuntimeIndex.find({ folder: f => f === 'support', file: f => /support\/eslint[.]/.test(f.relativeFile) });
7
7
  const plugins = pluginFiles.map(x => require(x.outputFile));
8
8
  const config = buildConfig(plugins);
9
9
 
@@ -3,7 +3,7 @@ process.env.TRV_MANIFEST = '%MANIFEST_FILE%';
3
3
  const { buildConfig } = await import('@travetto/eslint/support/bin/eslint-config');
4
4
  const { RuntimeIndex } = await import('@travetto/runtime/__index__');
5
5
 
6
- const pluginFiles = RuntimeIndex.find({ folder: f => f === 'support', file: f => /support\/eslint[.]/.test(f) });
6
+ const pluginFiles = RuntimeIndex.find({ folder: f => f === 'support', file: f => /support\/eslint[.]/.test(f.relativeFile) });
7
7
  const plugins = await Promise.all(pluginFiles.map(x => import(x.outputFile)))
8
8
  const config = buildConfig(plugins);
9
9