Skip to content

Commit 5b8b261

Browse files
committedJun 2, 2023
feat: initial commit
0 parents  commit 5b8b261

File tree

115 files changed

+10442
-0
lines changed

Some content is hidden

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

115 files changed

+10442
-0
lines changed
 

‎.eslintrc.js

+103
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
node: true,
6+
},
7+
parserOptions: {
8+
project: './tsconfig.json',
9+
},
10+
extends: ['prettier'],
11+
parser: '@typescript-eslint/parser',
12+
ignorePatterns: ['*.d.ts', '*.test.ts', '*.js', 'cdk.out/', 'dist/', 'node_modules/'],
13+
plugins: [
14+
'eslint-plugin-import',
15+
'eslint-plugin-jsdoc',
16+
'@typescript-eslint',
17+
'unused-imports',
18+
'eslint-plugin-prettier',
19+
],
20+
rules: {
21+
'no-console': ['error'],
22+
complexity: ['error', 12],
23+
'no-cond-assign': 'error',
24+
'no-const-assign': 'error',
25+
'no-debugger': 'error',
26+
'no-sparse-arrays': 'error',
27+
'no-unreachable': 'error',
28+
'max-lines-per-function': [
29+
'error',
30+
{
31+
max: 120,
32+
skipBlankLines: true,
33+
skipComments: true,
34+
},
35+
],
36+
'default-case': 'error',
37+
'default-case-last': 'error',
38+
'max-depth': 'error',
39+
'no-eval': 'error',
40+
'no-return-assign': 'error',
41+
'no-var': 'error',
42+
'prefer-const': 'error',
43+
'no-duplicate-imports': 'error',
44+
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
45+
'@typescript-eslint/member-delimiter-style': [
46+
'error',
47+
{
48+
multiline: {
49+
delimiter: 'none',
50+
requireLast: true,
51+
},
52+
singleline: {
53+
delimiter: 'semi',
54+
requireLast: false,
55+
},
56+
},
57+
],
58+
'@typescript-eslint/prefer-namespace-keyword': 'error',
59+
'@typescript-eslint/quotes': [
60+
'error',
61+
'single',
62+
{
63+
avoidEscape: true,
64+
},
65+
],
66+
'@typescript-eslint/no-floating-promises': 'error',
67+
"@typescript-eslint/no-misused-promises": "error",
68+
'@typescript-eslint/semi': ['error', 'never'],
69+
'@typescript-eslint/type-annotation-spacing': 'error',
70+
'brace-style': ['error', '1tbs'],
71+
curly: 'error',
72+
'eol-last': 'error',
73+
eqeqeq: ['error', 'smart'],
74+
'@typescript-eslint/no-shadow': 'error',
75+
'import/order': [
76+
'error',
77+
{
78+
groups: [['builtin', 'external'], 'parent', 'index', 'sibling'],
79+
// TODO: Eventually enable this in the future for consistency
80+
// 'newlines-between': 'always',
81+
alphabetize: {
82+
order: 'asc',
83+
caseInsensitive: true,
84+
},
85+
pathGroupsExcludedImportTypes: ['builtin'],
86+
},
87+
],
88+
'jsdoc/check-alignment': 'error',
89+
'linebreak-style': ['error', 'unix'],
90+
'no-duplicate-imports': 'error',
91+
'no-trailing-spaces': 'error',
92+
'no-var': 'error',
93+
'object-shorthand': 'error',
94+
'prefer-const': 'warn',
95+
'no-unused-vars': 'off',
96+
'unused-imports/no-unused-imports': 'error',
97+
'unused-imports/no-unused-vars': [
98+
'error',
99+
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
100+
],
101+
},
102+
parser: '@typescript-eslint/parser',
103+
}

‎.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+
text eol=lf

0 commit comments

Comments
 (0)
Please sign in to comment.