Skip to content

Commit

Permalink
Merge pull request #59 from jshmrtn/feat/maintenance-openapi3-ts
Browse files Browse the repository at this point in the history
Feat/maintenance openapi3 ts
  • Loading branch information
reeko authored Aug 9, 2023
2 parents 939e380 + a56593e commit a56930b
Show file tree
Hide file tree
Showing 7 changed files with 1,549 additions and 1,106 deletions.
37 changes: 37 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
module.exports = {
root: true,
env: {
node: true,
},

extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier",
],
plugins: ["@typescript-eslint"],
parserOptions: {
parser: "@typescript-eslint/parser",
tsconfigRootDir: __dirname,
project: [
"./tsconfig.json",
],
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/no-unsafe-member-access": "warn",
"@typescript-eslint/no-unsafe-call": "warn",
"@typescript-eslint/no-unsafe-argument": "warn",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/no-misused-promises": "warn",
"@typescript-eslint/restrict-plus-operands": "warn",
"@typescript-eslint/restrict-template-expressions": "warn",
"@typescript-eslint/unbound-method": "warn",
},
};
14 changes: 0 additions & 14 deletions .eslintrc.json

This file was deleted.

8 changes: 4 additions & 4 deletions bin/openapi-simplifier.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env node

const { program } = require("commander");
const { version } = require("../package.json");
const { simplifySchemaString } = require("../dist/index");
const fs = require("fs");
import { program } from "commander";
import { version } from "../package.json";
import { simplifySchemaString } from "../dist/index";
import fs from "fs";

program
.name("openapi-simplifier")
Expand Down
Loading

0 comments on commit a56930b

Please sign in to comment.