Skip to content

Commit

Permalink
fix(lint): additional directories to lint with fixes (#7947)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-lai committed Mar 25, 2022
1 parent b1128d7 commit 51bd1c2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 6 additions & 2 deletions dev-helpers/dev-helper-initializer.js
@@ -1,17 +1,21 @@
/* eslint-disable no-undef */
window.onload = function() {
window["SwaggerUIBundle"] = window["swagger-ui-bundle"]
window["SwaggerUIStandalonePreset"] = window["swagger-ui-standalone-preset"]
// Build a system
const ui = SwaggerUIBundle({
url: "https://petstore.swagger.io/v2/swagger.json",
dom_id: '#swagger-ui',
// url: "https://petstore.swagger.io/v2/swagger.json",
url: "./examples/swos-281-oas3.yaml",
// url: "./examples/swos-281-oas2.yaml",
dom_id: "#swagger-ui",
presets: [
SwaggerUIBundle.presets.apis,
SwaggerUIStandalonePreset
],
plugins: [
SwaggerUIBundle.plugins.DownloadUrl
],
// requestSnippetsEnabled: true,
layout: "StandaloneLayout"
})

Expand Down
4 changes: 2 additions & 2 deletions flavors/swagger-ui-react/index.jsx
Expand Up @@ -165,5 +165,5 @@ SwaggerUI.defaultProps = {
persistAuthorization: false,
}

SwaggerUI.presets = swaggerUIConstructor.presets;
SwaggerUI.plugins = swaggerUIConstructor.plugins;
SwaggerUI.presets = swaggerUIConstructor.presets
SwaggerUI.plugins = swaggerUIConstructor.plugins
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -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-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",
"lint": "eslint --ext \".js,.jsx\" src test",
"lint-errors": "eslint --quiet --ext \".js,.jsx\" src test",
"lint-fix": "eslint --ext \".js,.jsx\" src test --fix",
"lint": "eslint --ext \".js,.jsx\" src test dev-helpers flavors",
"lint-errors": "eslint --quiet --ext \".js,.jsx\" src test dev-helpers flavors",
"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-in-node": "run-s lint-errors just-test-in-node",
"just-test-in-node": "cross-env BABEL_ENV=test mocha \"test/mocha/**/*.{js,jsx}\"",
Expand Down

0 comments on commit 51bd1c2

Please sign in to comment.