Skip to content

Commit ed54a37

Browse files
authored
Merge pull request #6 from MatrixAI/feature-migration
Setup scaffolding
2 parents ad16464 + 863ddda commit ed54a37

29 files changed

+9308
-0
lines changed

.editorconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
indent_style = space
6+
indent_size = 2
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true

.env.example

Whitespace-only changes.

.eslintrc

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es2021": true,
6+
"node": true,
7+
"jest": true
8+
},
9+
"parser": "@typescript-eslint/parser",
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:@typescript-eslint/recommended",
13+
"plugin:prettier/recommended",
14+
"prettier"
15+
],
16+
"plugins": [
17+
"import"
18+
],
19+
"parserOptions": {
20+
"project": "tsconfig.json",
21+
"sourceType": "module"
22+
},
23+
"rules": {
24+
"linebreak-style": ["error", "unix"],
25+
"no-empty": 1,
26+
"no-useless-catch": 1,
27+
"no-prototype-builtins": 1,
28+
"no-constant-condition": 0,
29+
"no-useless-escape": 0,
30+
"no-console": "error",
31+
"no-restricted-globals": [
32+
"error",
33+
{
34+
"name": "global",
35+
"message": "Use `globalThis` instead"
36+
},
37+
{
38+
"name": "window",
39+
"message": "Use `globalThis` instead"
40+
}
41+
],
42+
"prefer-rest-params": 0,
43+
"require-yield": 0,
44+
"eqeqeq": ["error", "smart"],
45+
"spaced-comment": [
46+
"warn",
47+
"always",
48+
{
49+
"line": {
50+
"exceptions": ["-"]
51+
},
52+
"block": {
53+
"exceptions": ["*"]
54+
},
55+
"markers": ["/"]
56+
}
57+
],
58+
"capitalized-comments": [
59+
"warn",
60+
"always",
61+
{
62+
"ignoreInlineComments": true,
63+
"ignoreConsecutiveComments": true
64+
}
65+
],
66+
"curly": [
67+
"error",
68+
"multi-line",
69+
"consistent"
70+
],
71+
"import/order": [
72+
"error",
73+
{
74+
"groups": [
75+
"type",
76+
"builtin",
77+
"external",
78+
"internal",
79+
"index",
80+
"sibling",
81+
"parent",
82+
"object"
83+
],
84+
"pathGroups": [
85+
{
86+
"pattern": "@",
87+
"group": "internal"
88+
},
89+
{
90+
"pattern": "@/**",
91+
"group": "internal"
92+
}
93+
],
94+
"pathGroupsExcludedImportTypes": [
95+
"type"
96+
],
97+
"newlines-between": "never"
98+
}
99+
],
100+
"@typescript-eslint/no-namespace": 0,
101+
"@typescript-eslint/no-explicit-any": 0,
102+
"@typescript-eslint/explicit-module-boundary-types": 0,
103+
"@typescript-eslint/no-unused-vars": [
104+
"warn",
105+
{
106+
"varsIgnorePattern": "^_",
107+
"argsIgnorePattern": "^_"
108+
}
109+
],
110+
"@typescript-eslint/no-inferrable-types": 0,
111+
"@typescript-eslint/no-non-null-assertion": 0,
112+
"@typescript-eslint/no-this-alias": 0,
113+
"@typescript-eslint/no-var-requires": 0,
114+
"@typescript-eslint/no-empty-function": 0,
115+
"@typescript-eslint/no-empty-interface": 0,
116+
"@typescript-eslint/consistent-type-imports": ["error"],
117+
"@typescript-eslint/consistent-type-exports": ["error"],
118+
"no-throw-literal": "off",
119+
"@typescript-eslint/no-throw-literal": "off",
120+
"@typescript-eslint/no-floating-promises": ["error", {
121+
"ignoreVoid": true,
122+
"ignoreIIFE": true
123+
}],
124+
"@typescript-eslint/no-misused-promises": ["error", {
125+
"checksVoidReturn": false
126+
}],
127+
"@typescript-eslint/await-thenable": ["error"],
128+
"@typescript-eslint/naming-convention": [
129+
"error",
130+
{
131+
"selector": "default",
132+
"format": ["camelCase"],
133+
"leadingUnderscore": "allow",
134+
"trailingUnderscore": "allowSingleOrDouble"
135+
},
136+
{
137+
"selector": "function",
138+
"format": ["camelCase", "PascalCase"],
139+
"leadingUnderscore": "allow",
140+
"trailingUnderscore": "allowSingleOrDouble"
141+
},
142+
{
143+
"selector": "variable",
144+
"format": ["camelCase", "UPPER_CASE", "PascalCase"],
145+
"leadingUnderscore": "allow",
146+
"trailingUnderscore": "allowSingleOrDouble"
147+
},
148+
{
149+
"selector": "parameter",
150+
"format": ["camelCase"],
151+
"leadingUnderscore": "allow",
152+
"trailingUnderscore": "allowSingleOrDouble"
153+
},
154+
{
155+
"selector": "typeLike",
156+
"format": ["PascalCase"],
157+
"trailingUnderscore": "allowSingleOrDouble"
158+
},
159+
{
160+
"selector": "enumMember",
161+
"format": ["PascalCase", "UPPER_CASE"]
162+
},
163+
{
164+
"selector": "objectLiteralProperty",
165+
"format": null
166+
},
167+
{
168+
"selector": "typeProperty",
169+
"format": null
170+
}
171+
],
172+
"@typescript-eslint/ban-ts-comment": [
173+
"error",
174+
{
175+
"ts-ignore": "allow-with-description"
176+
}
177+
]
178+
}
179+
}

.gitignore

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
/tmp
2+
/dist
3+
.env*
4+
!.env.example
5+
# nix
6+
/result*
7+
/builds
8+
# node-gyp
9+
/build
10+
# prebuildify
11+
/prebuilds
12+
13+
# Logs
14+
logs
15+
*.log
16+
npm-debug.log*
17+
yarn-debug.log*
18+
yarn-error.log*
19+
lerna-debug.log*
20+
21+
# Diagnostic reports (https://nodejs.org/api/report.html)
22+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
23+
24+
# Runtime data
25+
pids
26+
*.pid
27+
*.seed
28+
*.pid.lock
29+
30+
# Directory for instrumented libs generated by jscoverage/JSCover
31+
lib-cov
32+
33+
# Coverage directory used by tools like istanbul
34+
coverage
35+
*.lcov
36+
37+
# nyc test coverage
38+
.nyc_output
39+
40+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
41+
.grunt
42+
43+
# Bower dependency directory (https://bower.io/)
44+
bower_components
45+
46+
# node-waf configuration
47+
.lock-wscript
48+
49+
# Compiled binary addons (https://nodejs.org/api/addons.html)
50+
build/Release
51+
52+
# Dependency directories
53+
node_modules/
54+
jspm_packages/
55+
56+
# Snowpack dependency directory (https://snowpack.dev/)
57+
web_modules/
58+
59+
# TypeScript cache
60+
*.tsbuildinfo
61+
62+
# Optional npm cache directory
63+
.npm
64+
65+
# Optional eslint cache
66+
.eslintcache
67+
68+
# Microbundle cache
69+
.rpt2_cache/
70+
.rts2_cache_cjs/
71+
.rts2_cache_es/
72+
.rts2_cache_umd/
73+
74+
# Optional REPL history
75+
.node_repl_history
76+
77+
# Output of 'npm pack'
78+
*.tgz
79+
80+
# Yarn Integrity file
81+
.yarn-integrity
82+
83+
# dotenv environment variables file
84+
.env
85+
.env.test
86+
87+
# parcel-bundler cache (https://parceljs.org/)
88+
.cache
89+
.parcel-cache
90+
91+
# Next.js build output
92+
.next
93+
out
94+
95+
# Nuxt.js build / generate output
96+
.nuxt
97+
dist
98+
99+
# Gatsby files
100+
.cache/
101+
# Comment in the public line in if your project uses Gatsby and not Next.js
102+
# https://nextjs.org/blog/next-9-1#public-directory-support
103+
# public
104+
105+
# vuepress build output
106+
.vuepress/dist
107+
108+
# Serverless directories
109+
.serverless/
110+
111+
# FuseBox cache
112+
.fusebox/
113+
114+
# DynamoDB Local files
115+
.dynamodb/
116+
117+
# TernJS port file
118+
.tern-port
119+
120+
# Stores VSCode versions used for testing VSCode extensions
121+
.vscode-test
122+
123+
# yarn v2
124+
.yarn/cache
125+
.yarn/unplugged
126+
.yarn/build-state.yml
127+
.yarn/install-state.gz
128+
.pnp.*

0 commit comments

Comments
 (0)