@travetto/eslint 3.4.0-rc.2 → 3.4.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/README.md CHANGED
@@ -34,7 +34,7 @@ This is the file the linter will use, and any other tooling (e.g. IDEs).
34
34
  process.env.TRV_MANIFEST = './.trv/output/node_modules/@travetto/eslint';
35
35
  const { buildConfig } = require('./.trv/output/node_modules/@travetto/eslint/support/bin/eslint-config.js');
36
36
  const { RootIndex } = require('./.trv/output/node_modules/@travetto/manifest/__index__.js');
37
- const pluginFiles = RootIndex.findSupport({ filter: f => /support\/eslint[.]/.test(f) });
37
+ const pluginFiles = RootIndex.find({ folder: f => f === 'support', file: f => /support\/eslint[.]/.test(f) });
38
38
  const plugins = pluginFiles.map(x => require(x.outputFile));
39
39
  const config = buildConfig(plugins);
40
40
  module.exports = config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/eslint",
3
- "version": "3.4.0-rc.2",
3
+ "version": "3.4.0-rc.3",
4
4
  "description": "ES Linting Rules",
5
5
  "keywords": [
6
6
  "eslint",
@@ -33,7 +33,7 @@
33
33
  "eslint-plugin-unused-imports": "^3.0.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@travetto/cli": "^3.4.0-rc.3"
36
+ "@travetto/cli": "^3.4.0-rc.5"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@travetto/cli": {
@@ -9,7 +9,7 @@ export function buildEslintConfig(): string {
9
9
 
10
10
  const common = {
11
11
  manifest: `process.env.TRV_MANIFEST = '${path.resolve(manifestFile)}'`,
12
- pluginFiles: 'const pluginFiles = RootIndex.findSupport({ filter: f => /support\\/eslint[.]/.test(f) })',
12
+ pluginFiles: "const pluginFiles = RootIndex.find({ folder: f => f === 'support', file: f => /support\\/eslint[.]/.test(f) })",
13
13
  build: 'const config = buildConfig(plugins)',
14
14
  };
15
15