Skip to content

Commit 3905582

Browse files
chore(repo): improve maintainability (#1400)
Co-authored-by: Michał Lytek <[email protected]>
1 parent 445bee7 commit 3905582

File tree

659 files changed

+24370
-33384
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

659 files changed

+24370
-33384
lines changed

.editorconfig

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Editor configuration, see http://editorconfig.org
21
root = true
32

43
[*]
5-
charset = utf-8
64
indent_style = space
75
indent_size = 2
8-
insert_final_newline = true
6+
end_of_line = lf
7+
charset = utf-8
98
trim_trailing_whitespace = true
9+
insert_final_newline = true
1010

1111
[*.md]
1212
max_line_length = off

.eslintignore

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
**/build/
2+
**/dist/
3+
**/coverage/
4+
**/node_modules/
5+
jest.config.ts
6+
sponsorkit.config.ts
7+
8+
# FIXME: Remove
9+
website/

.eslintrc

+117
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true
5+
},
6+
"parser": "@typescript-eslint/parser",
7+
"parserOptions": {
8+
"ecmaVersion": "latest",
9+
"sourceType": "module",
10+
"project": [
11+
"./tsconfig.json",
12+
"./benchmarks/tsconfig.json",
13+
"./examples/tsconfig.json",
14+
"./scripts/tsconfig.json",
15+
"./tests/tsconfig.json"
16+
]
17+
},
18+
"settings": {
19+
"import/parsers": {
20+
"@typescript-eslint/parser": [".ts"]
21+
},
22+
"import/resolver": {
23+
"typescript": {
24+
"alwaysTryTypes": true,
25+
"project": [
26+
"./tsconfig.json",
27+
"./benchmarks/tsconfig.json",
28+
"./examples/tsconfig.json",
29+
"./scripts/tsconfig.json",
30+
"./tests/tsconfig.json"
31+
]
32+
}
33+
}
34+
},
35+
"reportUnusedDisableDirectives": true,
36+
"plugins": ["import", "@typescript-eslint", "eslint-plugin-tsdoc", "jest"],
37+
"extends": [
38+
"airbnb-base",
39+
"airbnb-typescript/base",
40+
"eslint:recommended",
41+
"plugin:@cspell/recommended",
42+
"plugin:@typescript-eslint/recommended",
43+
// "plugin:@typescript-eslint/recommended-type-checked",
44+
"plugin:@typescript-eslint/stylistic",
45+
// "plugin:@typescript-eslint/stylistic-type-checked",
46+
"plugin:import/recommended",
47+
"plugin:import/typescript",
48+
"plugin:jest/recommended",
49+
"prettier"
50+
],
51+
"rules": {
52+
"tsdoc/syntax": "warn",
53+
"semi": "off",
54+
"@typescript-eslint/semi": "error",
55+
"no-restricted-syntax": "off",
56+
"curly": ["error", "all"],
57+
"nonblock-statement-body-position": ["error", "below"],
58+
"sort-imports": ["error", { "ignoreDeclarationSort": true }],
59+
"import/order": [
60+
"error",
61+
{
62+
"alphabetize": {
63+
"caseInsensitive": true,
64+
"order": "asc"
65+
},
66+
"groups": ["builtin", "external", "internal", ["sibling", "parent"], "index", "unknown"],
67+
"newlines-between": "never",
68+
"pathGroups": [
69+
{ "pattern": "@/**", "group": "internal", "position": "before" },
70+
{ "pattern": "type-graphql", "group": "external" }
71+
],
72+
"pathGroupsExcludedImportTypes": ["builtin"]
73+
}
74+
],
75+
"import/no-default-export": "error",
76+
"import/prefer-default-export": "off",
77+
"no-unused-vars": "off",
78+
"no-duplicate-imports": "error",
79+
"@typescript-eslint/no-unused-vars": [
80+
"error",
81+
{
82+
"argsIgnorePattern": "^_",
83+
"varsIgnorePattern": "^_",
84+
"caughtErrorsIgnorePattern": "^_"
85+
}
86+
],
87+
"@typescript-eslint/array-type": ["error", { "default": "array-simple" }],
88+
"@typescript-eslint/consistent-type-imports": [
89+
"error",
90+
{
91+
"disallowTypeAnnotations": false,
92+
"fixStyle": "inline-type-imports",
93+
"prefer": "type-imports"
94+
}
95+
],
96+
"@typescript-eslint/consistent-type-exports": "error",
97+
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
98+
"@typescript-eslint/no-inferrable-types": [
99+
"error",
100+
{ "ignoreParameters": true, "ignoreProperties": true }
101+
],
102+
// FIXME: Remove
103+
"@typescript-eslint/ban-types": [
104+
"error",
105+
{
106+
"types": {
107+
"Function": false,
108+
"Object": false,
109+
"{}": false
110+
},
111+
"extendDefaults": true
112+
}
113+
],
114+
// FIXME: Remove
115+
"@typescript-eslint/no-explicit-any": "off"
116+
}
117+
}

.gitattributes

+187
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
* text=auto eol=lf
2+
3+
# Source code
4+
*.bash text eol=lf
5+
*.bat text eol=crlf
6+
*.cmd text eol=crlf
7+
*.coffee text
8+
*.css text diff=css
9+
*.htm text diff=html
10+
*.html text diff=html
11+
*.inc text
12+
*.ini text
13+
*.js text
14+
*.json text
15+
*.jsx text
16+
*.less text
17+
*.ls text
18+
*.map text -diff
19+
*.od text
20+
*.onlydata text
21+
*.php text diff=php
22+
*.pl text
23+
*.ps1 text eol=crlf
24+
*.py text diff=python
25+
*.rb text diff=ruby
26+
*.sass text
27+
*.scm text
28+
*.scss text diff=css
29+
*.sh text eol=lf
30+
*.sql text
31+
*.styl text
32+
*.tag text
33+
*.ts text
34+
*.tsx text
35+
*.xml text
36+
*.xhtml text diff=html
37+
38+
# Docker
39+
Dockerfile text
40+
41+
# Documentation
42+
*.ipynb text
43+
*.markdown text diff=markdown
44+
*.md text diff=markdown
45+
*.mdwn text diff=markdown
46+
*.mdown text diff=markdown
47+
*.mkd text diff=markdown
48+
*.mkdn text diff=markdown
49+
*.mdtxt text
50+
*.mdtext text
51+
*.txt text
52+
AUTHORS text
53+
CHANGELOG text
54+
CHANGES text
55+
CONTRIBUTING text
56+
COPYING text
57+
copyright text
58+
*COPYRIGHT* text
59+
INSTALL text
60+
license text
61+
LICENSE text
62+
NEWS text
63+
readme text
64+
*README* text
65+
TODO text
66+
67+
# Templates
68+
*.dot text
69+
*.ejs text
70+
*.erb text
71+
*.haml text
72+
*.handlebars text
73+
*.hbs text
74+
*.hbt text
75+
*.jade text
76+
*.latte text
77+
*.mustache text
78+
*.njk text
79+
*.phtml text
80+
*.svelte text
81+
*.tmpl text
82+
*.tpl text
83+
*.twig text
84+
*.vue text
85+
86+
# Configs
87+
*.cnf text
88+
*.conf text
89+
*.config text
90+
.editorconfig text
91+
.env text
92+
.gitattributes text
93+
.gitconfig text
94+
.htaccess text
95+
*.lock text -diff
96+
package.json text eol=lf
97+
package-lock.json text -diff
98+
pnpm-lock.yaml text eol=lf -diff
99+
.prettierrc text
100+
yarn.lock text -diff
101+
*.toml text
102+
*.yaml text
103+
*.yml text
104+
browserslist text
105+
Makefile text
106+
makefile text
107+
108+
# Heroku
109+
Procfile text
110+
111+
# Graphics
112+
*.ai binary
113+
*.bmp binary
114+
*.eps binary
115+
*.gif binary
116+
*.gifv binary
117+
*.ico binary
118+
*.jng binary
119+
*.jp2 binary
120+
*.jpg binary
121+
*.jpeg binary
122+
*.jpx binary
123+
*.jxr binary
124+
*.pdf binary
125+
*.png binary
126+
*.psb binary
127+
*.psd binary
128+
*.svg text
129+
*.svgz binary
130+
*.tif binary
131+
*.tiff binary
132+
*.wbmp binary
133+
*.webp binary
134+
135+
# Audio
136+
*.kar binary
137+
*.m4a binary
138+
*.mid binary
139+
*.midi binary
140+
*.mp3 binary
141+
*.ogg binary
142+
*.ra binary
143+
144+
# Video
145+
*.3gpp binary
146+
*.3gp binary
147+
*.as binary
148+
*.asf binary
149+
*.asx binary
150+
*.avi binary
151+
*.fla binary
152+
*.flv binary
153+
*.m4v binary
154+
*.mng binary
155+
*.mov binary
156+
*.mp4 binary
157+
*.mpeg binary
158+
*.mpg binary
159+
*.ogv binary
160+
*.swc binary
161+
*.swf binary
162+
*.webm binary
163+
164+
# Archives
165+
*.7z binary
166+
*.gz binary
167+
*.jar binary
168+
*.rar binary
169+
*.tar binary
170+
*.zip binary
171+
172+
# Fonts
173+
*.ttf binary
174+
*.eot binary
175+
*.otf binary
176+
*.woff binary
177+
*.woff2 binary
178+
179+
# Executables
180+
*.exe binary
181+
*.pyc binary
182+
183+
# RC files
184+
*.*rc text
185+
186+
# Ignore files
187+
*.*ignore text

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @MichalLytek

.github/FUNDING.yml

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,2 @@
1-
# These are supported funding model platforms
2-
3-
github: typegraphql # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4-
patreon: # Replace with a single Patreon username
1+
github: typegraphql
52
open_collective: typegraphql
6-
ko_fi: # Replace with a single Ko-fi username
7-
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9-
liberapay: # Replace with a single Liberapay username
10-
issuehunt: # Replace with a single IssueHunt username
11-
otechie: # Replace with a single Otechie username
12-
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/configs/changelog.json

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"categories": [
3+
{
4+
"title": "## 🚀 Enhancements",
5+
"labels": ["Enhancement 🆕"]
6+
},
7+
{
8+
"title": "## 🐛 Fixes",
9+
"labels": ["Bugfix 🐛 🔨"]
10+
},
11+
{
12+
"title": "## 🧪 Tests",
13+
"labels": ["Test 🧪"]
14+
},
15+
{
16+
"title": "## 📦 Dependencies",
17+
"labels": ["Dependencies 📦"]
18+
},
19+
{
20+
"title": "## 📚 Documentation",
21+
"labels": ["Documentation 📖"]
22+
},
23+
{
24+
"title": "## 🏠 Internal",
25+
"labels": ["Chore 🔨", "Internal 🏠"]
26+
}
27+
]
28+
}

.github/configs/codeql.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
name: CodeQL Configuration
2+
3+
paths-ignore:
4+
- "**/node_modules"
5+
- "**/*.test.ts"

.github/dependabot.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm"
4+
directory: "/"
5+
versioning-strategy: increase
6+
schedule:
7+
interval: "weekly"
8+
ignore:
9+
- dependency-name: "*"
10+
update-types: ["version-update:semver-patch"]
11+
12+
- package-ecosystem: "github-actions"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"

0 commit comments

Comments
 (0)