-
-
Notifications
You must be signed in to change notification settings - Fork 678
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(repo): improve maintainability (#1400)
Co-authored-by: Michał Lytek <[email protected]>
- Loading branch information
1 parent
445bee7
commit 3905582
Showing
659 changed files
with
24,370 additions
and
33,384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
**/build/ | ||
**/dist/ | ||
**/coverage/ | ||
**/node_modules/ | ||
jest.config.ts | ||
sponsorkit.config.ts | ||
|
||
# FIXME: Remove | ||
website/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"node": true | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": "latest", | ||
"sourceType": "module", | ||
"project": [ | ||
"./tsconfig.json", | ||
"./benchmarks/tsconfig.json", | ||
"./examples/tsconfig.json", | ||
"./scripts/tsconfig.json", | ||
"./tests/tsconfig.json" | ||
] | ||
}, | ||
"settings": { | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [".ts"] | ||
}, | ||
"import/resolver": { | ||
"typescript": { | ||
"alwaysTryTypes": true, | ||
"project": [ | ||
"./tsconfig.json", | ||
"./benchmarks/tsconfig.json", | ||
"./examples/tsconfig.json", | ||
"./scripts/tsconfig.json", | ||
"./tests/tsconfig.json" | ||
] | ||
} | ||
} | ||
}, | ||
"reportUnusedDisableDirectives": true, | ||
"plugins": ["import", "@typescript-eslint", "eslint-plugin-tsdoc", "jest"], | ||
"extends": [ | ||
"airbnb-base", | ||
"airbnb-typescript/base", | ||
"eslint:recommended", | ||
"plugin:@cspell/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
// "plugin:@typescript-eslint/recommended-type-checked", | ||
"plugin:@typescript-eslint/stylistic", | ||
// "plugin:@typescript-eslint/stylistic-type-checked", | ||
"plugin:import/recommended", | ||
"plugin:import/typescript", | ||
"plugin:jest/recommended", | ||
"prettier" | ||
], | ||
"rules": { | ||
"tsdoc/syntax": "warn", | ||
"semi": "off", | ||
"@typescript-eslint/semi": "error", | ||
"no-restricted-syntax": "off", | ||
"curly": ["error", "all"], | ||
"nonblock-statement-body-position": ["error", "below"], | ||
"sort-imports": ["error", { "ignoreDeclarationSort": true }], | ||
"import/order": [ | ||
"error", | ||
{ | ||
"alphabetize": { | ||
"caseInsensitive": true, | ||
"order": "asc" | ||
}, | ||
"groups": ["builtin", "external", "internal", ["sibling", "parent"], "index", "unknown"], | ||
"newlines-between": "never", | ||
"pathGroups": [ | ||
{ "pattern": "@/**", "group": "internal", "position": "before" }, | ||
{ "pattern": "type-graphql", "group": "external" } | ||
], | ||
"pathGroupsExcludedImportTypes": ["builtin"] | ||
} | ||
], | ||
"import/no-default-export": "error", | ||
"import/prefer-default-export": "off", | ||
"no-unused-vars": "off", | ||
"no-duplicate-imports": "error", | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
"argsIgnorePattern": "^_", | ||
"varsIgnorePattern": "^_", | ||
"caughtErrorsIgnorePattern": "^_" | ||
} | ||
], | ||
"@typescript-eslint/array-type": ["error", { "default": "array-simple" }], | ||
"@typescript-eslint/consistent-type-imports": [ | ||
"error", | ||
{ | ||
"disallowTypeAnnotations": false, | ||
"fixStyle": "inline-type-imports", | ||
"prefer": "type-imports" | ||
} | ||
], | ||
"@typescript-eslint/consistent-type-exports": "error", | ||
"@typescript-eslint/consistent-type-definitions": ["error", "interface"], | ||
"@typescript-eslint/no-inferrable-types": [ | ||
"error", | ||
{ "ignoreParameters": true, "ignoreProperties": true } | ||
], | ||
// FIXME: Remove | ||
"@typescript-eslint/ban-types": [ | ||
"error", | ||
{ | ||
"types": { | ||
"Function": false, | ||
"Object": false, | ||
"{}": false | ||
}, | ||
"extendDefaults": true | ||
} | ||
], | ||
// FIXME: Remove | ||
"@typescript-eslint/no-explicit-any": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
* text=auto eol=lf | ||
|
||
# Source code | ||
*.bash text eol=lf | ||
*.bat text eol=crlf | ||
*.cmd text eol=crlf | ||
*.coffee text | ||
*.css text diff=css | ||
*.htm text diff=html | ||
*.html text diff=html | ||
*.inc text | ||
*.ini text | ||
*.js text | ||
*.json text | ||
*.jsx text | ||
*.less text | ||
*.ls text | ||
*.map text -diff | ||
*.od text | ||
*.onlydata text | ||
*.php text diff=php | ||
*.pl text | ||
*.ps1 text eol=crlf | ||
*.py text diff=python | ||
*.rb text diff=ruby | ||
*.sass text | ||
*.scm text | ||
*.scss text diff=css | ||
*.sh text eol=lf | ||
*.sql text | ||
*.styl text | ||
*.tag text | ||
*.ts text | ||
*.tsx text | ||
*.xml text | ||
*.xhtml text diff=html | ||
|
||
# Docker | ||
Dockerfile text | ||
|
||
# Documentation | ||
*.ipynb text | ||
*.markdown text diff=markdown | ||
*.md text diff=markdown | ||
*.mdwn text diff=markdown | ||
*.mdown text diff=markdown | ||
*.mkd text diff=markdown | ||
*.mkdn text diff=markdown | ||
*.mdtxt text | ||
*.mdtext text | ||
*.txt text | ||
AUTHORS text | ||
CHANGELOG text | ||
CHANGES text | ||
CONTRIBUTING text | ||
COPYING text | ||
copyright text | ||
*COPYRIGHT* text | ||
INSTALL text | ||
license text | ||
LICENSE text | ||
NEWS text | ||
readme text | ||
*README* text | ||
TODO text | ||
|
||
# Templates | ||
*.dot text | ||
*.ejs text | ||
*.erb text | ||
*.haml text | ||
*.handlebars text | ||
*.hbs text | ||
*.hbt text | ||
*.jade text | ||
*.latte text | ||
*.mustache text | ||
*.njk text | ||
*.phtml text | ||
*.svelte text | ||
*.tmpl text | ||
*.tpl text | ||
*.twig text | ||
*.vue text | ||
|
||
# Configs | ||
*.cnf text | ||
*.conf text | ||
*.config text | ||
.editorconfig text | ||
.env text | ||
.gitattributes text | ||
.gitconfig text | ||
.htaccess text | ||
*.lock text -diff | ||
package.json text eol=lf | ||
package-lock.json text -diff | ||
pnpm-lock.yaml text eol=lf -diff | ||
.prettierrc text | ||
yarn.lock text -diff | ||
*.toml text | ||
*.yaml text | ||
*.yml text | ||
browserslist text | ||
Makefile text | ||
makefile text | ||
|
||
# Heroku | ||
Procfile text | ||
|
||
# Graphics | ||
*.ai binary | ||
*.bmp binary | ||
*.eps binary | ||
*.gif binary | ||
*.gifv binary | ||
*.ico binary | ||
*.jng binary | ||
*.jp2 binary | ||
*.jpg binary | ||
*.jpeg binary | ||
*.jpx binary | ||
*.jxr binary | ||
*.pdf binary | ||
*.png binary | ||
*.psb binary | ||
*.psd binary | ||
*.svg text | ||
*.svgz binary | ||
*.tif binary | ||
*.tiff binary | ||
*.wbmp binary | ||
*.webp binary | ||
|
||
# Audio | ||
*.kar binary | ||
*.m4a binary | ||
*.mid binary | ||
*.midi binary | ||
*.mp3 binary | ||
*.ogg binary | ||
*.ra binary | ||
|
||
# Video | ||
*.3gpp binary | ||
*.3gp binary | ||
*.as binary | ||
*.asf binary | ||
*.asx binary | ||
*.avi binary | ||
*.fla binary | ||
*.flv binary | ||
*.m4v binary | ||
*.mng binary | ||
*.mov binary | ||
*.mp4 binary | ||
*.mpeg binary | ||
*.mpg binary | ||
*.ogv binary | ||
*.swc binary | ||
*.swf binary | ||
*.webm binary | ||
|
||
# Archives | ||
*.7z binary | ||
*.gz binary | ||
*.jar binary | ||
*.rar binary | ||
*.tar binary | ||
*.zip binary | ||
|
||
# Fonts | ||
*.ttf binary | ||
*.eot binary | ||
*.otf binary | ||
*.woff binary | ||
*.woff2 binary | ||
|
||
# Executables | ||
*.exe binary | ||
*.pyc binary | ||
|
||
# RC files | ||
*.*rc text | ||
|
||
# Ignore files | ||
*.*ignore text |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @MichalLytek |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,2 @@ | ||
# These are supported funding model platforms | ||
|
||
github: typegraphql # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: # Replace with a single Patreon username | ||
github: typegraphql | ||
open_collective: typegraphql | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"categories": [ | ||
{ | ||
"title": "## 🚀 Enhancements", | ||
"labels": ["Enhancement 🆕"] | ||
}, | ||
{ | ||
"title": "## 🐛 Fixes", | ||
"labels": ["Bugfix 🐛 🔨"] | ||
}, | ||
{ | ||
"title": "## 🧪 Tests", | ||
"labels": ["Test 🧪"] | ||
}, | ||
{ | ||
"title": "## 📦 Dependencies", | ||
"labels": ["Dependencies 📦"] | ||
}, | ||
{ | ||
"title": "## 📚 Documentation", | ||
"labels": ["Documentation 📖"] | ||
}, | ||
{ | ||
"title": "## 🏠 Internal", | ||
"labels": ["Chore 🔨", "Internal 🏠"] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: CodeQL Configuration | ||
|
||
paths-ignore: | ||
- "**/node_modules" | ||
- "**/*.test.ts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
versioning-strategy: increase | ||
schedule: | ||
interval: "weekly" | ||
ignore: | ||
- dependency-name: "*" | ||
update-types: ["version-update:semver-patch"] | ||
|
||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
Oops, something went wrong.