Skip to content

Commit ca60aae

Browse files
committed
👻 init
0 parents  commit ca60aae

22 files changed

+1595
-0
lines changed

.cargo/config.toml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[target.aarch64-unknown-linux-gnu]
2+
linker = "aarch64-linux-gnu-gcc"
3+
4+
[target.armv7-unknown-linux-gnueabihf]
5+
linker = "arm-linux-gnueabihf-gcc"
6+
7+
[target.x86_64-unknown-linux-musl]
8+
rustflags = [
9+
"-C",
10+
"target-feature=-crt-static",
11+
]
12+
13+
[target.aarch64-unknown-linux-musl]
14+
linker = "aarch64-linux-musl-gcc"
15+
rustflags = ["-C", "target-feature=-crt-static"]

.eslintrc.yml

+182
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,182 @@
1+
parser: '@typescript-eslint/parser'
2+
3+
parserOptions:
4+
ecmaFeatures:
5+
jsx: true
6+
ecmaVersion: 2020
7+
sourceType: module
8+
9+
env:
10+
browser: true
11+
es6: true
12+
node: true
13+
jest: true
14+
15+
plugins:
16+
- import
17+
- sonarjs
18+
19+
extends:
20+
- eslint:recommended
21+
- plugin:sonarjs/recommended
22+
- plugin:prettier/recommended
23+
24+
rules:
25+
# 0 = off, 1 = warn, 2 = error
26+
'space-before-function-paren': 0
27+
'no-useless-constructor': 0
28+
'no-undef': 2
29+
'no-console': [2, { allow: ['error', 'warn', 'info', 'assert'] }]
30+
'comma-dangle': ['error', 'only-multiline']
31+
'no-unused-vars': 0
32+
'no-var': 2
33+
'one-var-declaration-per-line': 2
34+
'prefer-const': 2
35+
'no-const-assign': 2
36+
'no-duplicate-imports': 2
37+
'no-use-before-define': [2, { 'functions': false, 'classes': false }]
38+
'eqeqeq': [2, 'always', { 'null': 'ignore' }]
39+
'no-case-declarations': 0
40+
'no-restricted-syntax':
41+
[
42+
2,
43+
{
44+
'selector': 'BinaryExpression[operator=/(==|===|!=|!==)/][left.raw=true], BinaryExpression[operator=/(==|===|!=|!==)/][right.raw=true]',
45+
'message': Don't compare for equality against boolean literals,
46+
},
47+
]
48+
49+
# https://github.com/benmosher/eslint-plugin-import/pull/334
50+
'import/no-duplicates': 2
51+
'import/first': 2
52+
'import/newline-after-import': 2
53+
'import/order':
54+
[
55+
2,
56+
{
57+
'newlines-between': 'always',
58+
'alphabetize': { 'order': 'asc' },
59+
'groups': ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
60+
},
61+
]
62+
63+
'sonarjs/cognitive-complexity': 0
64+
'sonarjs/no-duplicate-string': 0
65+
'sonarjs/no-big-function': 0
66+
'sonarjs/no-identical-functions': 0
67+
'sonarjs/no-small-switch': 0
68+
69+
overrides:
70+
- files:
71+
- ./**/*.{ts,tsx}
72+
rules:
73+
'no-unused-vars': [2, { varsIgnorePattern: '^_', argsIgnorePattern: '^_', ignoreRestSiblings: true }]
74+
75+
- files:
76+
- ./**/*{.ts,.tsx}
77+
plugins:
78+
- '@typescript-eslint'
79+
parserOptions:
80+
project: ./tsconfig.json
81+
rules:
82+
'no-undef': 0
83+
# TypeScript declare merge
84+
'no-redeclare': 0
85+
'no-useless-constructor': 0
86+
'no-unused-vars': 0
87+
'no-dupe-class-members': 0
88+
'no-case-declarations': 0
89+
'no-duplicate-imports': 0
90+
# TypeScript Interface and Type
91+
'no-use-before-define': 0
92+
93+
'@typescript-eslint/adjacent-overload-signatures': 2
94+
'@typescript-eslint/await-thenable': 2
95+
'@typescript-eslint/consistent-type-assertions': 2
96+
'@typescript-eslint/ban-types':
97+
[
98+
'error',
99+
{
100+
'types':
101+
{
102+
'String': { 'message': 'Use string instead', 'fixWith': 'string' },
103+
'Number': { 'message': 'Use number instead', 'fixWith': 'number' },
104+
'Boolean': { 'message': 'Use boolean instead', 'fixWith': 'boolean' },
105+
'Function': { 'message': 'Use explicit type instead' },
106+
},
107+
},
108+
]
109+
'@typescript-eslint/explicit-member-accessibility':
110+
[
111+
'error',
112+
{
113+
accessibility: 'explicit',
114+
overrides:
115+
{
116+
accessors: 'no-public',
117+
constructors: 'no-public',
118+
methods: 'no-public',
119+
properties: 'no-public',
120+
parameterProperties: 'explicit',
121+
},
122+
},
123+
]
124+
'@typescript-eslint/method-signature-style': 2
125+
'@typescript-eslint/no-floating-promises': 2
126+
'@typescript-eslint/no-implied-eval': 2
127+
'@typescript-eslint/no-for-in-array': 2
128+
'@typescript-eslint/no-inferrable-types': 2
129+
'@typescript-eslint/no-invalid-void-type': 2
130+
'@typescript-eslint/no-misused-new': 2
131+
'@typescript-eslint/no-misused-promises': 2
132+
'@typescript-eslint/no-namespace': 2
133+
'@typescript-eslint/no-non-null-asserted-optional-chain': 2
134+
'@typescript-eslint/no-throw-literal': 2
135+
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 2
136+
'@typescript-eslint/prefer-for-of': 2
137+
'@typescript-eslint/prefer-nullish-coalescing': 2
138+
'@typescript-eslint/switch-exhaustiveness-check': 2
139+
'@typescript-eslint/prefer-optional-chain': 2
140+
'@typescript-eslint/prefer-readonly': 2
141+
'@typescript-eslint/prefer-string-starts-ends-with': 0
142+
'@typescript-eslint/no-array-constructor': 2
143+
'@typescript-eslint/require-await': 2
144+
'@typescript-eslint/return-await': 2
145+
'@typescript-eslint/ban-ts-comment':
146+
[2, { 'ts-expect-error': false, 'ts-ignore': true, 'ts-nocheck': true, 'ts-check': false }]
147+
'@typescript-eslint/naming-convention':
148+
[
149+
2,
150+
{
151+
selector: 'memberLike',
152+
format: ['camelCase', 'PascalCase'],
153+
modifiers: ['private'],
154+
leadingUnderscore: 'forbid',
155+
},
156+
]
157+
'@typescript-eslint/no-unused-vars':
158+
[2, { varsIgnorePattern: '^_', argsIgnorePattern: '^_', ignoreRestSiblings: true }]
159+
'@typescript-eslint/member-ordering':
160+
[
161+
2,
162+
{
163+
default:
164+
[
165+
'public-static-field',
166+
'protected-static-field',
167+
'private-static-field',
168+
'public-static-method',
169+
'protected-static-method',
170+
'private-static-method',
171+
'public-instance-field',
172+
'protected-instance-field',
173+
'private-instance-field',
174+
'public-constructor',
175+
'protected-constructor',
176+
'private-constructor',
177+
'public-instance-method',
178+
'protected-instance-method',
179+
'private-instance-method',
180+
],
181+
},
182+
]

.github/dependabot.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Basic dependabot.yml file with
2+
# minimum configuration for two package managers
3+
4+
version: 2
5+
updates:
6+
# Enable version updates for npm
7+
- package-ecosystem: 'npm'
8+
directory: '/'
9+
schedule:
10+
interval: 'weekly'
11+
# Specify labels for npm pull requests
12+
labels:
13+
- 'npm'
14+
- 'dependencies'
15+
versioning-strategy: increase
16+
17+
# Enable version updates for Docker
18+
- package-ecosystem: 'cargo'
19+
directory: '/'
20+
schedule:
21+
interval: 'weekly'
22+
labels:
23+
- 'rust'
24+
- 'dependencies'

0 commit comments

Comments
 (0)