Skip to content

Commit 8ce85fb

Browse files
committed
Initial commit
0 parents  commit 8ce85fb

File tree

7 files changed

+3041
-0
lines changed

7 files changed

+3041
-0
lines changed

.eslintrc.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
module.exports = {
2+
"env": {
3+
"es2021": true,
4+
"node": true
5+
},
6+
"extends": [
7+
"standard-with-typescript",
8+
"plugin:prettier/recommended"
9+
],
10+
"overrides": [
11+
{
12+
"env": {
13+
"node": true
14+
},
15+
"files": [
16+
".eslintrc.{js,cjs}"
17+
],
18+
"parserOptions": {
19+
"sourceType": "script"
20+
}
21+
}
22+
],
23+
"parserOptions": {
24+
"ecmaVersion": "latest",
25+
"sourceType": "module"
26+
},
27+
"rules": {
28+
}
29+
}

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
**/node_modules
2+
**/dist
3+
/coverage
4+
/temp
5+
/tests/**/temp
6+
/tests/generated-entities
7+
/.idea
8+
/.vscode
9+
/yarn-error.log
10+
/.coveralls.yml
11+
!.gitkeep
12+
*.tsbuildinfo
13+
.DS_Store
14+
COVERAGE_RESULT
15+
.npmrc
16+
.yarn/*
17+
!.yarn/patches

.prettierrc.js

Lines changed: 260 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,260 @@
1+
module.exports = {
2+
/**
3+
* Print Width
4+
* https://prettier.io/docs/en/options.html#print-width
5+
*
6+
* Specify the line length that the printer will wrap on.
7+
*
8+
* printWidth: <int>
9+
* default: 80
10+
*/
11+
printWidth: 120,
12+
13+
/**
14+
* Tab Width
15+
* https://prettier.io/docs/en/options.html#tab-width
16+
*
17+
* Specify the number of spaces per indentation-level.
18+
*
19+
* tabWidth: <int>
20+
* default: 2
21+
*/
22+
// tabWidth: 2,
23+
24+
/**
25+
* Tabs
26+
* https://prettier.io/docs/en/options.html#tabs
27+
*
28+
* Indent lines with tabs instead of spaces.
29+
*
30+
* useTabs: <bool>
31+
* default: false
32+
*/
33+
// useTabs: false,
34+
35+
/**
36+
* Semicolons
37+
* https://prettier.io/docs/en/options.html#semicolons
38+
*
39+
* Print semicolons at the ends of statements
40+
*
41+
* semi: <bool>
42+
* default: true
43+
*/
44+
// semi: true,
45+
46+
/**
47+
* Quotes
48+
* https://prettier.io/docs/en/options.html#quotes
49+
*
50+
* Use single quotes instead of double quotes.
51+
*
52+
* singleQuote: <bool>
53+
* default: false
54+
*/
55+
// singleQuote: false,
56+
57+
/**
58+
* Quote Props
59+
* https://prettier.io/docs/en/options.html#quote-props
60+
*
61+
* Change when properties in objects are quoted.
62+
*
63+
* quoteProps: "<as-needed|consistent|preserve>"
64+
* default: "as-needed"
65+
*/
66+
// quoteProps: 'as-needed',
67+
68+
/**
69+
* JSX Quotes
70+
* https://prettier.io/docs/en/options.html#jsx-quotes
71+
*
72+
* Use single quotes instead of double quotes in JSX.
73+
*
74+
* jsxSingleQuote: <bool>
75+
* default: false
76+
*/
77+
// jsxSingleQuote: false,
78+
79+
/**
80+
* Trailing Commas
81+
* https://prettier.io/docs/en/options.html#trailing-commas
82+
*
83+
* Print trailing commas wherever possible when multi-line. (A single-line array, for example, never gets trailing commas.)
84+
*
85+
* trailingComma: "<es5|none|all>"
86+
* default: 'es5'
87+
*/
88+
// trailingComma: 'es5',
89+
90+
/**
91+
* Bracket Spacing
92+
* https://prettier.io/docs/en/options.html#bracket-spacing
93+
*
94+
* Print spaces between brackets in object literals.
95+
*
96+
* bracketSpacing: <bool>
97+
* default: true
98+
*/
99+
// bracketSpacing: true,
100+
101+
/**
102+
* Bracket Line
103+
* https://prettier.io/docs/en/options.html#bracket-line
104+
*
105+
* Put the > of a multi-line HTML (HTML, JSX, Vue, Angular) element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).
106+
*
107+
* bracketSameLine: <bool>
108+
* default: false
109+
*/
110+
// bracketSameLine: false,
111+
112+
/**
113+
* [Deprecated] JSX Brackets
114+
* https://prettier.io/docs/en/options.html#jsx-brackets
115+
*
116+
* This option has been deprecated in v2.4.0, use --bracket-same-line instead
117+
* Put the > of a multi-line JSX element at the end of the last line instead of being alone on the next line (does not apply to self closing elements).
118+
*
119+
* jsxBracketSameLine: <bool>
120+
* default: false
121+
*/
122+
// jsxBracketSameLine: false,
123+
124+
/**
125+
* Arrow Function Parentheses
126+
* https://prettier.io/docs/en/options.html#arrow-function-parentheses
127+
*
128+
* Include parentheses around a sole arrow function parameter.
129+
*
130+
* arrowParens: "<always|avoid>"
131+
* default: "always"
132+
*/
133+
// arrowParens: 'always',
134+
135+
/**
136+
* Range
137+
* https://prettier.io/docs/en/options.html#range
138+
*
139+
* Format only a segment of a file.
140+
*
141+
* rangeStart: <int>
142+
* default: 0
143+
*
144+
* rangeEnd: <int>
145+
* default: Infinity
146+
*/
147+
// rangeStart: 0,
148+
// rangeEnd: Infinity,
149+
150+
/**
151+
* Parser
152+
* https://prettier.io/docs/en/options.html#parser
153+
*
154+
* Specify which parser to use.
155+
*
156+
* parser: "<string>" | require("./my-parser")
157+
* no default
158+
*
159+
*/
160+
// parser: '',
161+
162+
/**
163+
* File Path
164+
* https://prettier.io/docs/en/options.html#file-path
165+
*
166+
* Specify the file name to use to infer which parser to use.
167+
*
168+
* filepath: "<string>"
169+
* no default
170+
*/
171+
// filepath: '',
172+
173+
/**
174+
* Require pragma
175+
* https://prettier.io/docs/en/options.html#require-pragma
176+
*
177+
* Prettier can restrict itself to only format files that contain a special comment, called a pragma, at the top of the file. This is very useful when gradually transitioning large, unformatted codebases to prettier.
178+
*
179+
* requirePragma: <bool>
180+
* default: false
181+
*/
182+
// requirePragma: false,
183+
184+
/**
185+
* Insert Pragma
186+
* https://prettier.io/docs/en/options.html#insert-pragma
187+
*
188+
* Prettier can insert a special @format marker at the top of files specifying that the file has been formatted with prettier. This works well when used in tandem with the --require-pragma option. If there is already a docblock at the top of the file then this option will add a newline to it with the @format marker.
189+
*
190+
* insertPragma: <bool>
191+
* default: false
192+
*/
193+
// insertPragma: false,
194+
195+
/**
196+
* Prose Wrap
197+
* https://prettier.io/docs/en/options.html#prose-wrap
198+
*
199+
* By default, Prettier will wrap markdown text as-is since some services use a linebreak-sensitive renderer, e.g. GitHub comment and BitBucket. In some cases you may want to rely on editor/viewer soft wrapping instead, so this option allows you to opt out with "never".
200+
*
201+
* proseWrap: "<always|never|preserve>"
202+
* default: "preserve"
203+
*/
204+
// proseWrap: 'preserve',
205+
206+
/**
207+
* HTML Whitespace Sensitivity
208+
* https://prettier.io/docs/en/options.html#html-whitespace-sensitivity
209+
*
210+
* Specify the global whitespace sensitivity for HTML files, see whitespace-sensitive formatting for more info.
211+
*
212+
* htmlWhitespaceSensitivity: "<css|strict|ignore>"
213+
* default: "css"
214+
*/
215+
// htmlWhitespaceSensitivity: 'css',
216+
217+
/**
218+
* Vue files script and style tags indentation
219+
* https://prettier.io/docs/en/options.html#vue-files-script-and-style-tags-indentation
220+
*
221+
* Whether or not to indent the code inside <script> and <style> tags in Vue files. Some people (like the creator of Vue) don’t indent to save an indentation level, but this might break code folding in your editor.
222+
*
223+
* vueIndentScriptAndStyle: <bool>
224+
* default: false
225+
*/
226+
// vueIndentScriptAndStyle: false,
227+
228+
/**
229+
* End of Line
230+
* https://prettier.io/docs/en/options.html#end-of-line
231+
*
232+
* For historical reasons, there exist two common flavors of line endings in text files. That is \n (or LF for Line Feed) and \r\n (or CRLF for Carriage Return + Line Feed). The former is common on Linux and macOS, while the latter is prevalent on Windows. Some details explaining why it is so can be found on Wikipedia.
233+
*
234+
* endOfLine: "<lf|crlf|cr|auto>"
235+
* default: "lf"
236+
*/
237+
// endOfLine: 'lf',
238+
239+
/**
240+
* Embedded Language Formatting
241+
* https://prettier.io/docs/en/options.html#embedded-language-formatting
242+
*
243+
* Control whether Prettier formats quoted code embedded in the file.
244+
*
245+
* embeddedLanguageFormatting: "<off|auto>"
246+
* default: "auto"
247+
*/
248+
// embeddedLanguageFormatting: 'auto',
249+
250+
/**
251+
* Single Attribute Per Line
252+
* https://prettier.io/docs/en/options.html#single-attribute-per-line
253+
*
254+
* Enforce single attribute per line in HTML, Vue and JSX.
255+
*
256+
* singleAttributePerLine: "<bool>"
257+
* default: "false"
258+
*/
259+
// singleAttributePerLine: 'false',
260+
};

.yarnrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
compressionLevel: mixed
2+
3+
enableGlobalCache: false
4+
5+
nodeLinker: node-modules

package.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "root",
3+
"private": true,
4+
"workspaces": [
5+
"packages/*"
6+
],
7+
"version": "1.0.0",
8+
"description": "Additional dataloaders for MikroORM",
9+
"main": "dist/index.js",
10+
"typings": "dist/index.d.ts",
11+
"repository": "https://github.com/darkbasic/mikro-orm-dataloaders.git",
12+
"author": "Niccolò Belli <[email protected]>",
13+
"license": "MIT",
14+
"packageManager": "[email protected]",
15+
"devDependencies": {
16+
"@types/eslint": "^8.44.7",
17+
"@typescript-eslint/eslint-plugin": "^6.11.0",
18+
"eslint": "^8.54.0",
19+
"eslint-config-prettier": "^9.0.0",
20+
"eslint-config-standard-with-typescript": "^40.0.0",
21+
"eslint-plugin-import": "^2.29.0",
22+
"eslint-plugin-n": "^16.3.1",
23+
"eslint-plugin-prettier": "^5.0.1",
24+
"eslint-plugin-promise": "^6.1.1",
25+
"prettier": "^3.1.0",
26+
"typescript": "^5.2.2"
27+
}
28+
}

0 commit comments

Comments
 (0)