Skip to content

Commit

Permalink
MakeDefns progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Katrix committed May 28, 2024
1 parent bc1429c commit a22242a
Show file tree
Hide file tree
Showing 23 changed files with 6,875 additions and 18 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,18 @@ project/target
#travis
/travis-deploy-key
/travis-deploy-key.pub

#Make defns

node_modules
makeDefns/docsRepo
makeDefns/debug

# Yarn
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
2 changes: 2 additions & 0 deletions data/src/main/resources/generated/ackcord/data/Poll.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
defType: Multiple
innerTypes: []
1 change: 1 addition & 0 deletions makeDefns/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
44 changes: 44 additions & 0 deletions makeDefns/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/* eslint-env node */

module.exports = {
root: true,
env: {
browser: true,
es2021: true,
},
extends: ['standard', 'plugin:import/errors', 'plugin:import/warnings', 'prettier', 'eslint-config-typescript'],
globals: {
wp: 'readonly',
print: 'readonly',
parameters: 'readonly',
},
parserOptions: {
ecmaVersion: 'latest',
},
rules: {
'import/order': 'error',
'import/first': 'error',
'import/no-mutable-exports': 'error',
'import/no-unresolved': 'off',
'arrow-parens': 'off',
'generator-star-spacing': 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'warn',
'prefer-const': [
'error',
{
destructuring: 'any',
ignoreReadBeforeAssign: false,
},
],
'no-lonely-if': 'error',
curly: ['error', 'all'],
'require-await': 'error',
'dot-notation': 'error',
'no-var': 'error',
'object-shorthand': 'error',
'no-useless-rename': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off'
},
}
14 changes: 14 additions & 0 deletions makeDefns/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"semi": false,
"singleQuote": true,
"printWidth": 120,
"proseWrap": "always",
"overrides": [
{
"files": ["*.md", "*.yaml", "*.json"],
"options": {
"printWidth": 80
}
}
]
}
Binary file added makeDefns/.yarn/install-state.gz
Binary file not shown.
893 changes: 893 additions & 0 deletions makeDefns/.yarn/releases/yarn-4.1.1.cjs

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions makeDefns/.yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


yarn-path ".yarn/releases/yarn-1.22.22.cjs"
2 changes: 2 additions & 0 deletions makeDefns/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-4.1.1.cjs
1 change: 1 addition & 0 deletions makeDefns/LAST_DOCS_COMMIT
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0e11b770a64442c2d69a4afcda89b55ff53518f9
34 changes: 34 additions & 0 deletions makeDefns/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "makeDefns",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"update:fromdocs": "tsx src/defsFromDocs/defsFromDocs.ts"
},
"dependencies": {
"@readme/openapi-parser": "^2.5.0",
"markdown-it": "^14.1.0",
"openapi-types": "^12.1.3",
"simple-git": "^3.24.0",
"yaml": "^2.4.1"
},
"devDependencies": {
"@tsconfig/recommended": "^1.0.5",
"@types/markdown-it": "^14",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^7.5.0",
"@typescript-eslint/parser": "^7.5.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-config-typescript": "^3.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-promise": "^6.1.1",
"prettier": "^3.2.5",
"tsx": "^4.7.2",
"typescript": "^5.4.3"
},
"packageManager": "[email protected]"
}
Loading

0 comments on commit a22242a

Please sign in to comment.