@eslint/eslintrc
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -1,11 +0,5 @@ | ||
v0.1.0 - August 24, 2020 | ||
v0.1.1 - September 1, 2020 | ||
* [`10965bc`](https://github.com/eslint/eslintrc/commit/10965bc84e352eb114e966763bd8747e5120204a) Chore: Add publishConfig to package.json (Nicholas C. Zakas) | ||
* [`3838ebf`](https://github.com/eslint/eslintrc/commit/3838ebfcd997765ad737d890653cd9afb0e49134) Chore: Fix package.json format (Nicholas C. Zakas) | ||
* [`6ee78f5`](https://github.com/eslint/eslintrc/commit/6ee78f5bf0559a1dcae08dca44aac2515620c3dc) Chore: Add files to package.json (Nicholas C. Zakas) | ||
* [`8888d37`](https://github.com/eslint/eslintrc/commit/8888d3744779e1f1af80f1c438f7dc78744ebe25) Chore: Add eslint-release (Nicholas C. Zakas) | ||
* [`2685284`](https://github.com/eslint/eslintrc/commit/2685284498997118024859ab1bce5cf2a8f17a94) Chore: Add CHANGELOG.md (Nicholas C. Zakas) | ||
* [`1e9f71a`](https://github.com/eslint/eslintrc/commit/1e9f71aaf52b0115d5dfb76cba3d6362cbdfdb25) Chore: Add release scripts (Nicholas C. Zakas) | ||
* [`9fb9c5d`](https://github.com/eslint/eslintrc/commit/9fb9c5da9b9540123a93b096557e9c249a2671ef) New: Initial commit (Nicholas C. Zakas) | ||
* [`e1faa56`](https://github.com/eslint/eslintrc/commit/e1faa561438a45b7895ed0e75f6328d6920f8177) Initial commit (Nicholas C. Zakas) | ||
* [`76796f6`](https://github.com/eslint/eslintrc/commit/76796f66a3a62337c35970dc5d2bd9838f16a574) Fix: Release version number (refs #6) (#8) (Nicholas C. Zakas) | ||
* [`ff41a2f`](https://github.com/eslint/eslintrc/commit/ff41a2fee52335ce1b2a8c9827f61b6e7aa2444a) Fix: add missing dependencies (#5) (Milos Djermanovic) | ||
@@ -93,3 +93,3 @@ /** | ||
}, | ||
// Platforms | ||
@@ -96,0 +96,0 @@ browser: { |
@@ -12,2 +12,3 @@ /** | ||
// FIXME: "../lib/rules" doesn't exist in this package | ||
const builtInRules = require("../lib/rules"); | ||
@@ -14,0 +15,0 @@ |
@@ -474,2 +474,3 @@ /** | ||
}); | ||
validator.validateConfigArray(finalConfigArray); | ||
@@ -476,0 +477,0 @@ |
@@ -631,2 +631,3 @@ /** | ||
const validator = new ConfigValidator(); | ||
validator.validateConfigSchema(configData, ctx.name || ctx.filePath); | ||
@@ -633,0 +634,0 @@ return this._normalizeObjectConfigData(configData, ctx); |
@@ -34,7 +34,6 @@ /** | ||
Legacy: { | ||
// config-array | ||
ConfigArray, | ||
createConfigArrayFactoryContext, | ||
CascadingConfigArrayFactory, | ||
ConfigArray, | ||
ConfigArrayFactory, | ||
ConfigDependency, | ||
@@ -41,0 +40,0 @@ ExtractedConfig, |
@@ -16,3 +16,2 @@ /** | ||
BuiltInEnvironments = require("../../conf/environments"), | ||
// BuiltInRules = require("../rules"), | ||
ConfigOps = require("./config-ops"), | ||
@@ -42,3 +41,3 @@ { emitDeprecationWarning } = require("./deprecation-warnings"); | ||
module.exports = class ConfigValidator { | ||
constructor({builtInRules = new Map()} = {}) { | ||
constructor({ builtInRules = new Map() } = {}) { | ||
this.builtInRules = builtInRules; | ||
@@ -271,6 +270,6 @@ } | ||
validateConfigSchema(config, source = null) { | ||
const validateSchema = this.validateSchema || ajv.compile(configSchema); | ||
validateSchema = this.validateSchema || ajv.compile(configSchema); | ||
if (!validateSchema(config)) { | ||
throw new Error(`ESLint configuration in ${source} is invalid:\n${formatErrors(validateSchema.errors)}`); | ||
throw new Error(`ESLint configuration in ${source} is invalid:\n${this.formatErrors(validateSchema.errors)}`); | ||
} | ||
@@ -328,2 +327,2 @@ | ||
} | ||
}; |
{ | ||
"name": "@eslint/eslintrc", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "The legacy ESLintRC config file format for ESLint", | ||
@@ -15,2 +15,3 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"lint": "eslint .", | ||
"test": "mocha tests/lib/shared", | ||
@@ -39,2 +40,4 @@ "generate-release": "eslint-generate-release", | ||
"eslint-config-eslint": "^6.0.0", | ||
"eslint-plugin-jsdoc": "^22.1.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-release": "^3.1.0", | ||
@@ -46,5 +49,14 @@ "mocha": "^8.1.1" | ||
"debug": "^4.1.1", | ||
"espree": "^7.3.0", | ||
"globals": "^12.1.0", | ||
"ignore": "^4.0.6", | ||
"import-fresh": "^3.2.1", | ||
"js-yaml": "^3.13.1", | ||
"lodash": "^4.17.19", | ||
"minimatch": "^3.0.4", | ||
"strip-json-comments": "^3.1.1" | ||
}, | ||
"engines": { | ||
"node": "^10.12.0 || >=12.0.0" | ||
} | ||
} |
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
140326
10
7
3547
+ Addedespree@^7.3.0
+ Addedglobals@^12.1.0
+ Addedignore@^4.0.6
+ Addedjs-yaml@^3.13.1
+ Addedlodash@^4.17.19
+ Addedminimatch@^3.0.4
+ Addedacorn@7.4.1(transitive)
+ Addedacorn-jsx@5.3.2(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedeslint-visitor-keys@1.3.0(transitive)
+ Addedespree@7.3.1(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedglobals@12.4.0(transitive)
+ Addedignore@4.0.6(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedtype-fest@0.8.1(transitive)