Skip to content

Commit 1703a30

Browse files
chore: initial commit
Co-authored-by: Josh <[email protected]>
0 parents  commit 1703a30

Some content is hidden

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

46 files changed

+11649
-0
lines changed

.changeset/config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"commit": false,
4+
"changelog": false,
5+
"access": "public",
6+
"baseBranch": "main"
7+
}

.commitlintrc.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import type { UserConfig } from '@commitlint/types';
2+
import { RuleConfigSeverity } from '@commitlint/types';
3+
4+
const config: UserConfig = {
5+
extends: ['@commitlint/config-conventional'],
6+
rules: {
7+
'type-enum': [
8+
RuleConfigSeverity.Error,
9+
'always',
10+
[
11+
'chore',
12+
'ci',
13+
'docs',
14+
'enhancement',
15+
'feat',
16+
'fix',
17+
'release',
18+
'revert',
19+
'security',
20+
'test',
21+
],
22+
],
23+
},
24+
};
25+
26+
export default config;

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[{package.json,*.yml}]
12+
indent_style = space
13+
indent_size = 2
14+
15+
[*.md]
16+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bin
2+
coverage
3+
dist
4+
*.yaml

.eslintrc.js

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
module.exports = {
2+
root: true,
3+
extends: ['@strapi/eslint-config/back/typescript'],
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint', 'eslint-plugin-rxjs'],
6+
parserOptions: {
7+
project: ['./tsconfig.eslint.json'],
8+
},
9+
overrides: [
10+
{
11+
files: ['./scripts/**/*', './src/cli/errors.ts', './src/cli/index.ts'],
12+
rules: {
13+
'no-console': ['error', { allow: ['error'] }],
14+
},
15+
},
16+
{
17+
files: ['./src/cli/commands/utils/logger.ts'],
18+
rules: {
19+
'no-console': 'off',
20+
},
21+
},
22+
],
23+
rules: {
24+
'rxjs/finnish': 'error',
25+
// TODO: The following rules from @strapi/eslint-config/back/typescript are disabled because they're causing problems we need to solve or fix
26+
// to be solved in configuration
27+
'node/no-unsupported-features/es-syntax': 'off',
28+
'import/prefer-default-export': 'off',
29+
'import/namespace': 'off',
30+
'node/no-missing-import': 'off',
31+
'no-process-exit': 'off',
32+
'import/no-dynamic-require': 'off',
33+
'global-require': 'off',
34+
'no-underscore-dangle': 'off',
35+
'@typescript-eslint/no-use-before-define': 'off',
36+
'@typescript-eslint/no-explicit-any': 'off',
37+
/**
38+
* Force us to use the Logger instance.
39+
*/
40+
'no-console': 'error',
41+
'import/extensions': 'off',
42+
'import/order': [
43+
'error',
44+
{
45+
groups: [
46+
['external', 'internal', 'builtin'],
47+
'parent',
48+
['sibling', 'index'],
49+
'object',
50+
'type',
51+
],
52+
'newlines-between': 'always',
53+
alphabetize: { order: 'asc', caseInsensitive: true },
54+
},
55+
],
56+
'nonblock-statement-body-position': ['error', 'below'],
57+
},
58+
};

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.gitignore

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
############################
2+
# OS X
3+
############################
4+
5+
.DS_Store
6+
.AppleDouble
7+
.LSOverride
8+
Icon
9+
.Spotlight-V100
10+
.Trashes
11+
._*
12+
13+
############################
14+
# Linux
15+
############################
16+
17+
*~
18+
19+
############################
20+
# Windows
21+
############################
22+
23+
Thumbs.db
24+
ehthumbs.db
25+
Desktop.ini
26+
$RECYCLE.BIN/
27+
*.cab
28+
*.msi
29+
*.msm
30+
*.msp
31+
32+
############################
33+
# Packages
34+
############################
35+
36+
*.7z
37+
*.csv
38+
*.dat
39+
*.dmg
40+
*.gz
41+
*.iso
42+
*.jar
43+
*.rar
44+
*.tar
45+
*.zip
46+
*.com
47+
*.class
48+
*.dll
49+
*.exe
50+
*.o
51+
*.seed
52+
*.so
53+
*.swo
54+
*.swp
55+
*.swn
56+
*.swm
57+
*.out
58+
*.pid
59+
60+
############################
61+
# Logs and databases
62+
############################
63+
64+
.tmp
65+
*.log
66+
*.sql
67+
*.sqlite
68+
69+
############################
70+
# Misc.
71+
############################
72+
73+
*#
74+
.idea
75+
nbproject
76+
77+
############################
78+
# Node.js
79+
############################
80+
81+
lib-cov
82+
lcov.info
83+
pids
84+
logs
85+
results
86+
dist
87+
node_modules
88+
.node_history
89+
package-lock.json
90+
91+
############################
92+
# Tests
93+
############################
94+
95+
__tmp__/

.lintstagedrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.{js,ts,jsx,tsx,yml,yaml}": ["pnpm prettier:write", "pnpm lint"]
3+
}

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
bin
2+
dist
3+
pnpm-lock.yaml

.prettierrc.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module.exports = {
2+
endOfLine: 'lf',
3+
semi: true,
4+
singleQuote: true,
5+
tabWidth: 2,
6+
trailingComma: 'es5',
7+
printWidth: 100,
8+
arrowParens: 'always',
9+
};

0 commit comments

Comments
 (0)