@eslint/eslintrc
Advanced tools
Comparing version 0.1.3 to 0.2.0
@@ -0,1 +1,6 @@ | ||
v0.2.0 - October 16, 2020 | ||
* [`cb12255`](https://github.com/eslint/eslintrc/commit/cb12255b85390e932e1942e479c2c97310149390) Update: Allow eslint:all and eslint:recommended paths to be passed in (#11) (Nicholas C. Zakas) | ||
* [`a75bacd`](https://github.com/eslint/eslintrc/commit/a75bacd9a743a7bbcdb8c59e5d4f9de3dc8b0f20) Chore: use GitHub Actions (#10) (Milos Djermanovic) | ||
v0.1.3 - September 1, 2020 | ||
@@ -2,0 +7,0 @@ |
@@ -39,5 +39,6 @@ /** | ||
// Define types for VSCode IntelliSense. | ||
/** @typedef {import("../shared/types").ConfigData} ConfigData */ | ||
/** @typedef {import("../shared/types").Parser} Parser */ | ||
/** @typedef {import("../shared/types").Plugin} Plugin */ | ||
/** @typedef {import("./shared/types").ConfigData} ConfigData */ | ||
/** @typedef {import("./shared/types").Parser} Parser */ | ||
/** @typedef {import("./shared/types").Plugin} Plugin */ | ||
/** @typedef {import("./shared/types").Rule} Rule */ | ||
/** @typedef {ReturnType<ConfigArrayFactory["create"]>} ConfigArray */ | ||
@@ -55,2 +56,7 @@ | ||
* @property {boolean} [useEslintrc] if `false` then it doesn't load config files. | ||
* @property {Function} loadRules The function to use to load rules. | ||
* @property {Map<string,Rule>} builtInRules The rules that are built in to ESLint. | ||
* @property {Object} [resolver=ModuleResolver] The module resolver object. | ||
* @property {string} eslintAllPath The path to the definitions for eslint:all. | ||
* @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. | ||
*/ | ||
@@ -72,2 +78,7 @@ | ||
* @property {boolean} useEslintrc if `false` then it doesn't load config files. | ||
* @property {Function} loadRules The function to use to load rules. | ||
* @property {Map<string,Rule>} builtInRules The rules that are built in to ESLint. | ||
* @property {Object} [resolver=ModuleResolver] The module resolver object. | ||
* @property {string} eslintAllPath The path to the definitions for eslint:all. | ||
* @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. | ||
*/ | ||
@@ -211,3 +222,5 @@ | ||
loadRules, | ||
resolver | ||
resolver, | ||
eslintRecommendedPath, | ||
eslintAllPath | ||
} = {}) { | ||
@@ -219,3 +232,5 @@ const configArrayFactory = new ConfigArrayFactory({ | ||
builtInRules, | ||
resolver | ||
resolver, | ||
eslintRecommendedPath, | ||
eslintAllPath | ||
}); | ||
@@ -222,0 +237,0 @@ |
@@ -61,4 +61,2 @@ /** | ||
const eslintRecommendedPath = path.resolve(__dirname, "../../eslint/conf/eslint-recommended.js"); | ||
const eslintAllPath = path.resolve(__dirname, "../../eslint/conf/eslint-all.js"); | ||
const configFilenames = [ | ||
@@ -75,6 +73,7 @@ ".eslintrc.js", | ||
// Define types for VSCode IntelliSense. | ||
/** @typedef {import("../shared/types").ConfigData} ConfigData */ | ||
/** @typedef {import("../shared/types").OverrideConfigData} OverrideConfigData */ | ||
/** @typedef {import("../shared/types").Parser} Parser */ | ||
/** @typedef {import("../shared/types").Plugin} Plugin */ | ||
/** @typedef {import("./shared/types").ConfigData} ConfigData */ | ||
/** @typedef {import("./shared/types").OverrideConfigData} OverrideConfigData */ | ||
/** @typedef {import("./shared/types").Parser} Parser */ | ||
/** @typedef {import("./shared/types").Plugin} Plugin */ | ||
/** @typedef {import("./shared/types").Rule} Rule */ | ||
/** @typedef {import("./config-array/config-dependency").DependentParser} DependentParser */ | ||
@@ -89,2 +88,6 @@ /** @typedef {import("./config-array/config-dependency").DependentPlugin} DependentPlugin */ | ||
* @property {string} [resolvePluginsRelativeTo] A path to the directory that plugins should be resolved from. Defaults to `cwd`. | ||
* @property {Map<string,Rule>} builtInRules The rules that are built in to ESLint. | ||
* @property {Object} [resolver=ModuleResolver] The module resolver object. | ||
* @property {string} eslintAllPath The path to the definitions for eslint:all. | ||
* @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. | ||
*/ | ||
@@ -97,2 +100,6 @@ | ||
* @property {string | undefined} resolvePluginsRelativeTo An absolute path the the directory that plugins should be resolved from. | ||
* @property {Map<string,Rule>} builtInRules The rules that are built in to ESLint. | ||
* @property {Object} [resolver=ModuleResolver] The module resolver object. | ||
* @property {string} eslintAllPath The path to the definitions for eslint:all. | ||
* @property {string} eslintRecommendedPath The path to the definitions for eslint:recommended. | ||
*/ | ||
@@ -421,3 +428,5 @@ | ||
builtInRules, | ||
resolver = ModuleResolver | ||
resolver = ModuleResolver, | ||
eslintAllPath, | ||
eslintRecommendedPath | ||
} = {}) { | ||
@@ -431,3 +440,5 @@ internalSlotsMap.set(this, { | ||
builtInRules, | ||
resolver | ||
resolver, | ||
eslintAllPath, | ||
eslintRecommendedPath | ||
}); | ||
@@ -790,2 +801,4 @@ } | ||
_loadExtendedBuiltInConfig(extendName, ctx) { | ||
const { eslintAllPath, eslintRecommendedPath } = internalSlotsMap.get(this); | ||
if (extendName === "eslint:recommended") { | ||
@@ -792,0 +805,0 @@ return this._loadConfigData({ |
{ | ||
"name": "@eslint/eslintrc", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "The legacy ESLintRC config file format for ESLint", | ||
@@ -16,3 +16,3 @@ "main": "lib/index.js", | ||
"lint": "eslint .", | ||
"test": "mocha tests/lib/shared", | ||
"test": "mocha -R progress -c tests/lib/shared", | ||
"generate-release": "eslint-generate-release", | ||
@@ -19,0 +19,0 @@ "generate-alpharelease": "eslint-generate-prerelease alpha", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141532
22
3525