Skip to content

Commit

Permalink
openapi等セットアップ
Browse files Browse the repository at this point in the history
  • Loading branch information
Rozelin-dc committed Jun 15, 2024
1 parent ab39a24 commit 50af891
Show file tree
Hide file tree
Showing 12 changed files with 3,615 additions and 178 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ dist-ssr
*.njsproj
*.sln
*.sw?

src/lib/apis/generated
19 changes: 13 additions & 6 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pluginVue from 'eslint-plugin-vue'
import vueParser from "vue-eslint-parser"
import tseslint from "typescript-eslint"
import vueParser from 'vue-eslint-parser'
import tseslint from 'typescript-eslint'
export default [
// add more generic rulesets here, such as:
// js.configs.recommended,
Expand All @@ -10,11 +10,18 @@ export default [
rules: {
// override/add rules settings here, such as:
// 'vue/no-unused-vars': 'error'
'no-restricted-imports': [
'error',
{
name: '@/lib/apis/generated',
message: 'Please use @/lib/apis instead.',
},
],
},
files: ["*.vue", "**/*.vue"],
files: ['*.vue', '**/*.vue'],
languageOptions: {
parser: vueParser,
parserOptions: { parser: tseslint.parser, sourceType: "module" },
parserOptions: { parser: tseslint.parser, sourceType: 'module' },
},
}
]
},
]
7 changes: 7 additions & 0 deletions openapitools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
"spaces": 2,
"generator-cli": {
"version": "7.6.0"
}
}
Loading

0 comments on commit 50af891

Please sign in to comment.