fix(lint): additional directories to lint with fixes (#7947)
This commit is contained in:
@@ -1,10 +1,13 @@
|
|||||||
|
/* eslint-disable no-undef */
|
||||||
window.onload = function() {
|
window.onload = function() {
|
||||||
window["SwaggerUIBundle"] = window["swagger-ui-bundle"]
|
window["SwaggerUIBundle"] = window["swagger-ui-bundle"]
|
||||||
window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"]
|
window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"]
|
||||||
// Build a system
|
// Build a system
|
||||||
const ui = SwaggerUIBundle({
|
const ui = SwaggerUIBundle({
|
||||||
url: "https://petstore.swagger.io/v2/swagger.json",
|
// url: "https://petstore.swagger.io/v2/swagger.json",
|
||||||
dom_id: '#swagger-ui',
|
url: "./examples/swos-281-oas3.yaml",
|
||||||
|
// url: "./examples/swos-281-oas2.yaml",
|
||||||
|
dom_id: "#swagger-ui",
|
||||||
presets: [
|
presets: [
|
||||||
SwaggerUIBundle.presets.apis,
|
SwaggerUIBundle.presets.apis,
|
||||||
SwaggerUIStandalonePreset
|
SwaggerUIStandalonePreset
|
||||||
@@ -12,6 +15,7 @@ window.onload = function() {
|
|||||||
plugins: [
|
plugins: [
|
||||||
SwaggerUIBundle.plugins.DownloadUrl
|
SwaggerUIBundle.plugins.DownloadUrl
|
||||||
],
|
],
|
||||||
|
// requestSnippetsEnabled: true,
|
||||||
layout: "StandaloneLayout"
|
layout: "StandaloneLayout"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -165,5 +165,5 @@ SwaggerUI.defaultProps = {
|
|||||||
persistAuthorization: false,
|
persistAuthorization: false,
|
||||||
}
|
}
|
||||||
|
|
||||||
SwaggerUI.presets = swaggerUIConstructor.presets;
|
SwaggerUI.presets = swaggerUIConstructor.presets
|
||||||
SwaggerUI.plugins = swaggerUIConstructor.plugins;
|
SwaggerUI.plugins = swaggerUIConstructor.plugins
|
||||||
|
|||||||
@@ -38,9 +38,9 @@
|
|||||||
"deps-license": "license-checker --production --csv --out $npm_package_config_deps_check_dir/licenses.csv && license-checker --development --csv --out $npm_package_config_deps_check_dir/licenses-dev.csv",
|
"deps-license": "license-checker --production --csv --out $npm_package_config_deps_check_dir/licenses.csv && license-checker --development --csv --out $npm_package_config_deps_check_dir/licenses-dev.csv",
|
||||||
"deps-size": "webpack -p --config webpack/bundle.babel.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt",
|
"deps-size": "webpack -p --config webpack/bundle.babel.js --json | webpack-bundle-size-analyzer >| $npm_package_config_deps_check_dir/sizes.txt",
|
||||||
"deps-check": "run-s deps-license deps-size",
|
"deps-check": "run-s deps-license deps-size",
|
||||||
"lint": "eslint --ext \".js,.jsx\" src test",
|
"lint": "eslint --ext \".js,.jsx\" src test dev-helpers flavors",
|
||||||
"lint-errors": "eslint --quiet --ext \".js,.jsx\" src test",
|
"lint-errors": "eslint --quiet --ext \".js,.jsx\" src test dev-helpers flavors",
|
||||||
"lint-fix": "eslint --ext \".js,.jsx\" src test --fix",
|
"lint-fix": "eslint --ext \".js,.jsx\" src test dev-helpers flavors --fix",
|
||||||
"test": "run-s lint-errors just-test-in-node test:unit-jest cy:ci",
|
"test": "run-s lint-errors just-test-in-node test:unit-jest cy:ci",
|
||||||
"test-in-node": "run-s lint-errors just-test-in-node",
|
"test-in-node": "run-s lint-errors just-test-in-node",
|
||||||
"just-test-in-node": "cross-env BABEL_ENV=test mocha \"test/mocha/**/*.{js,jsx}\"",
|
"just-test-in-node": "cross-env BABEL_ENV=test mocha \"test/mocha/**/*.{js,jsx}\"",
|
||||||
|
|||||||
Reference in New Issue
Block a user