eslint-plugin-json-schema-validator
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -1,52 +0,3 @@ | ||
import type { ESLint } from "eslint"; | ||
import * as jsoncParser from "jsonc-eslint-parser"; | ||
import * as yamlParser from "yaml-eslint-parser"; | ||
import * as tomlParser from "toml-eslint-parser"; | ||
declare const _default: ({ | ||
plugins: { | ||
readonly "json-schema-validator": ESLint.Plugin; | ||
}; | ||
files?: undefined; | ||
languageOptions?: undefined; | ||
rules?: undefined; | ||
} | { | ||
files: string[]; | ||
languageOptions: { | ||
parser: typeof jsoncParser; | ||
}; | ||
rules: { | ||
strict: string; | ||
"no-unused-expressions": string; | ||
"no-unused-vars": string; | ||
"no-irregular-whitespace"?: undefined; | ||
"spaced-comment"?: undefined; | ||
}; | ||
plugins?: undefined; | ||
} | { | ||
files: string[]; | ||
languageOptions: { | ||
parser: typeof yamlParser; | ||
}; | ||
rules: { | ||
"no-irregular-whitespace": string; | ||
"no-unused-vars": string; | ||
"spaced-comment": string; | ||
strict?: undefined; | ||
"no-unused-expressions"?: undefined; | ||
}; | ||
plugins?: undefined; | ||
} | { | ||
files: string[]; | ||
languageOptions: { | ||
parser: typeof tomlParser; | ||
}; | ||
rules: { | ||
"no-irregular-whitespace": string; | ||
"spaced-comment": string; | ||
strict?: undefined; | ||
"no-unused-expressions"?: undefined; | ||
"no-unused-vars"?: undefined; | ||
}; | ||
plugins?: undefined; | ||
})[]; | ||
import type { Linter } from "eslint"; | ||
declare const _default: Linter.FlatConfig[]; | ||
export default _default; |
@@ -1,52 +0,3 @@ | ||
declare const _default: ({ | ||
plugins: { | ||
readonly "json-schema-validator": import("eslint").ESLint.Plugin; | ||
}; | ||
files?: undefined; | ||
languageOptions?: undefined; | ||
rules?: undefined; | ||
} | { | ||
files: string[]; | ||
languageOptions: { | ||
parser: typeof import("jsonc-eslint-parser"); | ||
}; | ||
rules: { | ||
strict: string; | ||
"no-unused-expressions": string; | ||
"no-unused-vars": string; | ||
"no-irregular-whitespace"?: undefined; | ||
"spaced-comment"?: undefined; | ||
}; | ||
plugins?: undefined; | ||
} | { | ||
files: string[]; | ||
languageOptions: { | ||
parser: typeof import("yaml-eslint-parser"); | ||
}; | ||
rules: { | ||
"no-irregular-whitespace": string; | ||
"no-unused-vars": string; | ||
"spaced-comment": string; | ||
strict?: undefined; | ||
"no-unused-expressions"?: undefined; | ||
}; | ||
plugins?: undefined; | ||
} | { | ||
files: string[]; | ||
languageOptions: { | ||
parser: typeof import("toml-eslint-parser"); | ||
}; | ||
rules: { | ||
"no-irregular-whitespace": string; | ||
"spaced-comment": string; | ||
strict?: undefined; | ||
"no-unused-expressions"?: undefined; | ||
"no-unused-vars"?: undefined; | ||
}; | ||
plugins?: undefined; | ||
} | { | ||
rules: { | ||
"json-schema-validator/no-invalid": string; | ||
}; | ||
})[]; | ||
import type { Linter } from "eslint"; | ||
declare const _default: Linter.FlatConfig[]; | ||
export default _default; |
@@ -19,100 +19,4 @@ import type { RuleModule } from "./types"; | ||
}; | ||
"flat/base": ({ | ||
plugins: { | ||
readonly "json-schema-validator": import("eslint").ESLint.Plugin; | ||
}; | ||
files?: undefined; | ||
languageOptions?: undefined; | ||
rules?: undefined; | ||
} | { | ||
files: string[]; | ||
languageOptions: { | ||
parser: typeof import("jsonc-eslint-parser"); | ||
}; | ||
rules: { | ||
strict: string; | ||
"no-unused-expressions": string; | ||
"no-unused-vars": string; | ||
"no-irregular-whitespace"?: undefined; | ||
"spaced-comment"?: undefined; | ||
}; | ||
plugins?: undefined; | ||
} | { | ||
files: string[]; | ||
languageOptions: { | ||
parser: typeof import("yaml-eslint-parser"); | ||
}; | ||
rules: { | ||
"no-irregular-whitespace": string; | ||
"no-unused-vars": string; | ||
"spaced-comment": string; | ||
strict?: undefined; | ||
"no-unused-expressions"?: undefined; | ||
}; | ||
plugins?: undefined; | ||
} | { | ||
files: string[]; | ||
languageOptions: { | ||
parser: typeof import("toml-eslint-parser"); | ||
}; | ||
rules: { | ||
"no-irregular-whitespace": string; | ||
"spaced-comment": string; | ||
strict?: undefined; | ||
"no-unused-expressions"?: undefined; | ||
"no-unused-vars"?: undefined; | ||
}; | ||
plugins?: undefined; | ||
})[]; | ||
"flat/recommended": ({ | ||
plugins: { | ||
readonly "json-schema-validator": import("eslint").ESLint.Plugin; | ||
}; | ||
files?: undefined; | ||
languageOptions?: undefined; | ||
rules?: undefined; | ||
} | { | ||
files: string[]; | ||
languageOptions: { | ||
parser: typeof import("jsonc-eslint-parser"); | ||
}; | ||
rules: { | ||
strict: string; | ||
"no-unused-expressions": string; | ||
"no-unused-vars": string; | ||
"no-irregular-whitespace"?: undefined; | ||
"spaced-comment"?: undefined; | ||
}; | ||
plugins?: undefined; | ||
} | { | ||
files: string[]; | ||
languageOptions: { | ||
parser: typeof import("yaml-eslint-parser"); | ||
}; | ||
rules: { | ||
"no-irregular-whitespace": string; | ||
"no-unused-vars": string; | ||
"spaced-comment": string; | ||
strict?: undefined; | ||
"no-unused-expressions"?: undefined; | ||
}; | ||
plugins?: undefined; | ||
} | { | ||
files: string[]; | ||
languageOptions: { | ||
parser: typeof import("toml-eslint-parser"); | ||
}; | ||
rules: { | ||
"no-irregular-whitespace": string; | ||
"spaced-comment": string; | ||
strict?: undefined; | ||
"no-unused-expressions"?: undefined; | ||
"no-unused-vars"?: undefined; | ||
}; | ||
plugins?: undefined; | ||
} | { | ||
rules: { | ||
"json-schema-validator/no-invalid": string; | ||
}; | ||
})[]; | ||
"flat/base": import("eslint").Linter.FlatConfig[]; | ||
"flat/recommended": import("eslint").Linter.FlatConfig[]; | ||
}; | ||
@@ -119,0 +23,0 @@ rules: { |
@@ -8,3 +8,2 @@ "use strict"; | ||
const http_1 = __importDefault(require("http")); | ||
const url_1 = require("url"); | ||
const tunnel_agent_1 = __importDefault(require("tunnel-agent")); | ||
@@ -32,3 +31,3 @@ const TIMEOUT = 10000; | ||
try { | ||
const redirectUrl = new url_1.URL(location, url).toString(); | ||
const redirectUrl = new URL(location, url).toString(); | ||
resolve(get0(redirectUrl, options, redirectCount + 1)); | ||
@@ -59,3 +58,3 @@ } | ||
function parseUrlAndOptions(urlStr, baseOptions) { | ||
const url = new url_1.URL(urlStr); | ||
const url = new URL(urlStr); | ||
const hostname = typeof url.hostname === "string" && url.hostname.startsWith("[") | ||
@@ -87,3 +86,3 @@ ? url.hostname.slice(1, -1) | ||
if (proxyStr) { | ||
const proxyUrl = new url_1.URL(proxyStr); | ||
const proxyUrl = new URL(proxyStr); | ||
options.agent = tunnel_agent_1.default[`http${url.protocol === "https:" ? "s" : ""}OverHttp${proxyUrl.protocol === "https:" ? "s" : ""}`]({ | ||
@@ -90,0 +89,0 @@ proxy: { |
{ | ||
"name": "eslint-plugin-json-schema-validator", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "ESLint plugin that validates data using JSON Schema Validator.", | ||
@@ -31,5 +31,5 @@ "repository": "git+https://github.com/ota-meshi/eslint-plugin-json-schema-validator.git", | ||
"cover": "nyc --reporter=lcov yarn test", | ||
"docs:build": "yarn build:ts && npm run vuepress -- build docs --no-cache", | ||
"docs:watch": "npm run vuepress -- dev --debug docs", | ||
"vuepress": "node --openssl-legacy-provider ./node_modules/vuepress/cli.js", | ||
"docs:watch": "vitepress dev docs", | ||
"docs:build": "yarn build && vitepress build docs", | ||
"docs:build-and-preview": "yarn docs:build && npx http-server docs/.vitepress/dist", | ||
"lint": "eslint . --ext .js,.vue,.ts,.json,.md,.toml,.yaml,.yml", | ||
@@ -40,3 +40,3 @@ "lint-fix": "yarn lint --fix", | ||
"prebuild": "yarn -s clean", | ||
"predocs:watch": "yarn build:ts", | ||
"predocs:watch": "yarn build", | ||
"prerelease": "yarn test && yarn build", | ||
@@ -72,2 +72,3 @@ "preversion": "yarn test && git add .", | ||
"@ota-meshi/eslint-plugin": "^0.15.0", | ||
"@ota-meshi/site-kit-eslint-editor-vue": "^0.1.2", | ||
"@stylistic/stylelint-config": "^1.0.1", | ||
@@ -91,3 +92,3 @@ "@types/debug": "^4.1.5", | ||
"eslint-plugin-eslint-plugin": "^5.0.0", | ||
"eslint-plugin-json-schema-validator": "^4.8.1", | ||
"eslint-plugin-json-schema-validator": "^5.0.0", | ||
"eslint-plugin-jsonc": "^2.0.0", | ||
@@ -103,8 +104,9 @@ "eslint-plugin-markdown": "^3.0.0", | ||
"espree": "^10.0.0", | ||
"events": "^3.3.0", | ||
"mocha": "^10.0.0", | ||
"monaco-editor": "^0.47.0", | ||
"nyc": "^15.1.0", | ||
"pako": "^2.1.0", | ||
"prettier": "^3.0.0", | ||
"prettier-plugin-pkg": "^0.18.0", | ||
"raw-loader": "^4.0.1", | ||
"request": "^2.88.2", | ||
@@ -115,7 +117,8 @@ "semver": "^7.3.2", | ||
"stylelint-config-standard": "^36.0.0", | ||
"stylelint-config-standard-vue": "^1.0.0", | ||
"stylelint-stylus": "^1.0.0", | ||
"typescript": "^5.0.0", | ||
"vue-eslint-editor": "^1.1.0", | ||
"vite-plugin-eslint4b": "^0.2.5", | ||
"vitepress": "^1.0.1", | ||
"vue-eslint-parser": "^9.0.0", | ||
"vuepress": "^1.5.2", | ||
"yaml": "^2.1.1" | ||
@@ -122,0 +125,0 @@ }, |
@@ -46,3 +46,3 @@ # Introduction | ||
#### New (ESLint>=v9) Config (Flat Config) | ||
#### New Config (`eslint.config.js`) | ||
@@ -53,3 +53,3 @@ Use `eslint.config.js` file to configure rules. See also: <https://eslint.org/docs/latest/use/configure/configuration-files-new>. | ||
```mjs | ||
```js | ||
import eslintPluginJsonSchemaValidator from 'eslint-plugin-json-schema-validator'; | ||
@@ -74,3 +74,3 @@ export default [ | ||
#### Legacy Config (ESLint<v9) | ||
#### Legacy Config (`.eslintrc`) | ||
@@ -77,0 +77,0 @@ Use `.eslintrc.*` file to configure rules. See also: <https://eslint.org/docs/latest/use/configure/>. |
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
110823
53
2594