@tsofist/web-buddy 1.22.0 → 2.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +16 -5
- package/LICENSE +167 -21
- package/README.md +4 -57
- package/lib/eslint/config.d.ts +1200 -0
- package/lib/eslint/config.fws-mercurio.d.ts +2 -0
- package/lib/eslint/config.fws-mercurio.js +15 -0
- package/lib/eslint/config.js +38 -0
- package/lib/eslint/config.json.d.ts +2 -0
- package/lib/eslint/config.json.js +20 -0
- package/lib/eslint/config.json.rules.d.ts +3 -0
- package/lib/eslint/config.json.rules.js +9 -0
- package/lib/eslint/config.shared.rules.d.ts +3 -0
- package/lib/eslint/config.shared.rules.js +58 -0
- package/lib/eslint/config.typescript.d.ts +2 -0
- package/lib/eslint/config.typescript.js +33 -0
- package/lib/eslint/config.typescript.rules.d.ts +2 -0
- package/lib/eslint/config.typescript.rules.js +147 -0
- package/lib/eslint/config.vue.d.ts +5 -0
- package/lib/eslint/config.vue.js +43 -0
- package/lib/eslint/config.vue.rules.d.ts +5 -0
- package/lib/eslint/config.vue.rules.js +61 -0
- package/lib/eslint/config.yaml.d.ts +2 -0
- package/lib/eslint/config.yaml.js +13 -0
- package/lib/eslint/config.yaml.rules.d.ts +2 -0
- package/lib/eslint/config.yaml.rules.js +6 -0
- package/lib/eslint/ignores.d.ts +1 -0
- package/lib/eslint/ignores.js +38 -0
- package/lib/prettier/config.d.ts +39 -0
- package/{.prettierrc.js → lib/prettier/config.js} +4 -3
- package/lib/semantic-release/config.github.d.ts +16 -0
- package/lib/semantic-release/config.github.js +3 -0
- package/lib/semantic-release/config.gitlab.d.ts +16 -0
- package/lib/semantic-release/config.gitlab.js +3 -0
- package/lib/semantic-release/configuration-bootstrap.d.ts +84 -0
- package/lib/semantic-release/configuration-bootstrap.js +53 -0
- package/lib/stricter-mode.d.ts +1 -0
- package/lib/stricter-mode.js +2 -0
- package/lib/stylelint/config.d.ts +11 -0
- package/lib/stylelint/config.js +21 -0
- package/lib/stylelint/rules.d.ts +2 -0
- package/lib/stylelint/rules.js +19 -0
- package/lib/tsconfig/config.base.json +18 -0
- package/lib/tsconfig/config.isomorphic.json +6 -0
- package/lib/tsconfig/config.web.json +11 -0
- package/lib/types.d.ts +14 -0
- package/lib/types.js +1 -0
- package/package.json +42 -42
- package/.eslintrc.yaml +0 -66
- package/.releaserc-github.json +0 -23
- package/.releaserc-gitlab.json +0 -23
- package/.stylelintrc.yaml +0 -49
- package/eslint/shared.yaml +0 -66
- package/eslint/stricter.extends.yaml +0 -10
- package/eslint/typescript/common.yaml +0 -20
- package/eslint/typescript/rules.yaml +0 -159
- package/eslint/typescript/stricter.rules.yaml +0 -4
- package/eslint/vue/common.yaml +0 -36
- package/eslint/vue/rules.yaml +0 -63
- package/eslint/yaml/common.yaml +0 -22
- package/tsconfig/base.json +0 -18
- package/tsconfig/browser.json +0 -10
- package/tsconfig/server.json +0 -6
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
rules:
|
|
2
|
-
prettier/prettier: error
|
|
3
|
-
'@typescript-eslint/explicit-member-accessibility':
|
|
4
|
-
- error
|
|
5
|
-
- accessibility: no-public
|
|
6
|
-
|
|
7
|
-
# todo https://typescript-eslint.io/rules/ban-types/
|
|
8
|
-
'@typescript-eslint/ban-types':
|
|
9
|
-
- warn
|
|
10
|
-
- extendDefaults: true
|
|
11
|
-
types:
|
|
12
|
-
Record:
|
|
13
|
-
message: 'Avoid using the Record type as it may pose some risks. Instead, consider using the @tsofist/stem: PRec/Rec type (Your Stem. With LOVE).'
|
|
14
|
-
suggest:
|
|
15
|
-
- PRec
|
|
16
|
-
- Rec
|
|
17
|
-
|
|
18
|
-
# '@typescript-eslint/no-restricted-types':
|
|
19
|
-
# - warn
|
|
20
|
-
# - types:
|
|
21
|
-
# Record:
|
|
22
|
-
# message: 'Avoid using the Record type as it may pose some risks. Instead, consider using the @tsofist/stem: PRec/Rec type (Your Stem. With LOVE).'
|
|
23
|
-
# suggest:
|
|
24
|
-
# - PRec
|
|
25
|
-
# - Rec
|
|
26
|
-
|
|
27
|
-
'@typescript-eslint/ban-ts-comment':
|
|
28
|
-
- error
|
|
29
|
-
- minimumDescriptionLength: 7
|
|
30
|
-
ts-expect-error: allow-with-description
|
|
31
|
-
ts-nocheck: allow-with-description
|
|
32
|
-
ts-ignore: true
|
|
33
|
-
ts-check: false
|
|
34
|
-
'@typescript-eslint/explicit-module-boundary-types': off
|
|
35
|
-
'@typescript-eslint/no-explicit-any': off
|
|
36
|
-
'@typescript-eslint/no-non-null-assertion': off
|
|
37
|
-
'@typescript-eslint/no-this-alias': error
|
|
38
|
-
'@typescript-eslint/return-await': off
|
|
39
|
-
'@typescript-eslint/no-floating-promises': error
|
|
40
|
-
'@typescript-eslint/no-unnecessary-type-assertion': error
|
|
41
|
-
'@typescript-eslint/no-unnecessary-condition': off
|
|
42
|
-
'@typescript-eslint/no-misused-new': error
|
|
43
|
-
'@typescript-eslint/no-misused-promises': off
|
|
44
|
-
'@typescript-eslint/no-array-constructor': error
|
|
45
|
-
'@typescript-eslint/no-useless-constructor': error
|
|
46
|
-
'@typescript-eslint/adjacent-overload-signatures': error
|
|
47
|
-
'@typescript-eslint/consistent-type-assertions': error
|
|
48
|
-
'@typescript-eslint/semi': error
|
|
49
|
-
'@typescript-eslint/member-delimiter-style':
|
|
50
|
-
- error
|
|
51
|
-
- multiline:
|
|
52
|
-
delimiter: semi
|
|
53
|
-
requireLast: true
|
|
54
|
-
singleline:
|
|
55
|
-
delimiter: semi
|
|
56
|
-
requireLast: false
|
|
57
|
-
|
|
58
|
-
space-before-function-paren: off
|
|
59
|
-
'@typescript-eslint/space-before-function-paren':
|
|
60
|
-
- warn
|
|
61
|
-
- anonymous: always
|
|
62
|
-
named: never
|
|
63
|
-
asyncArrow: always
|
|
64
|
-
|
|
65
|
-
'@typescript-eslint/no-meaningless-void-operator': error
|
|
66
|
-
|
|
67
|
-
'@typescript-eslint/no-redundant-type-constituents': off
|
|
68
|
-
|
|
69
|
-
'@typescript-eslint/method-signature-style':
|
|
70
|
-
- error
|
|
71
|
-
- property
|
|
72
|
-
|
|
73
|
-
lines-between-class-members: off
|
|
74
|
-
'@typescript-eslint/lines-between-class-members':
|
|
75
|
-
- error
|
|
76
|
-
- always
|
|
77
|
-
- exceptAfterOverload: true
|
|
78
|
-
exceptAfterSingleLine: true
|
|
79
|
-
|
|
80
|
-
indent: off
|
|
81
|
-
'@typescript-eslint/indent': off # prettier
|
|
82
|
-
|
|
83
|
-
no-unused-vars: off
|
|
84
|
-
'@typescript-eslint/no-unused-vars': off
|
|
85
|
-
|
|
86
|
-
no-trailing-spaces:
|
|
87
|
-
- error
|
|
88
|
-
|
|
89
|
-
decorator-position/decorator-position:
|
|
90
|
-
- error
|
|
91
|
-
- properties: above
|
|
92
|
-
methods: above
|
|
93
|
-
|
|
94
|
-
space-in-parens: error
|
|
95
|
-
|
|
96
|
-
func-call-spacing: off
|
|
97
|
-
'@typescript-eslint/func-call-spacing': error
|
|
98
|
-
|
|
99
|
-
'@typescript-eslint/unbound-method':
|
|
100
|
-
- error
|
|
101
|
-
- ignoreStatic: true
|
|
102
|
-
|
|
103
|
-
'@typescript-eslint/no-invalid-void-type':
|
|
104
|
-
- error
|
|
105
|
-
- allowAsThisParameter: true
|
|
106
|
-
allowInGenericTypeArguments: true
|
|
107
|
-
|
|
108
|
-
'@typescript-eslint/no-confusing-void-expression':
|
|
109
|
-
- warn
|
|
110
|
-
- ignoreArrowShorthand: true
|
|
111
|
-
ignoreVoidOperator: true
|
|
112
|
-
|
|
113
|
-
'@typescript-eslint/restrict-plus-operands':
|
|
114
|
-
- error
|
|
115
|
-
- allowAny: false
|
|
116
|
-
allowBoolean: false
|
|
117
|
-
allowNullish: false
|
|
118
|
-
allowNumberAndString: false
|
|
119
|
-
allowRegExp: false
|
|
120
|
-
|
|
121
|
-
'@typescript-eslint/restrict-template-expressions':
|
|
122
|
-
- error
|
|
123
|
-
- allowAny: false
|
|
124
|
-
allowNullish: false
|
|
125
|
-
allowRegExp: false
|
|
126
|
-
allowNumber: true
|
|
127
|
-
allowBoolean: true
|
|
128
|
-
allowNever: true
|
|
129
|
-
|
|
130
|
-
'@typescript-eslint/no-wrapper-object-types': error
|
|
131
|
-
|
|
132
|
-
# It doesn’t work properly in some cases
|
|
133
|
-
'@typescript-eslint/unified-signatures': off
|
|
134
|
-
|
|
135
|
-
# It doesn’t work properly in some cases
|
|
136
|
-
'@typescript-eslint/no-unsafe-enum-comparison': off
|
|
137
|
-
|
|
138
|
-
# It breaks the annotation logic
|
|
139
|
-
'@typescript-eslint/no-duplicate-type-constituents': off
|
|
140
|
-
|
|
141
|
-
# It's fine in general
|
|
142
|
-
'@typescript-eslint/no-dynamic-delete': off
|
|
143
|
-
|
|
144
|
-
# It’s covered by the compilerOptions.strict setting
|
|
145
|
-
'@typescript-eslint/no-unsafe-assignment': off
|
|
146
|
-
|
|
147
|
-
# It's works quirky in some cases
|
|
148
|
-
'@typescript-eslint/no-unsafe-call': off
|
|
149
|
-
|
|
150
|
-
'@typescript-eslint/no-extraneous-class':
|
|
151
|
-
- error
|
|
152
|
-
- allowWithDecorator: true
|
|
153
|
-
allowStaticOnly: true
|
|
154
|
-
|
|
155
|
-
# "stricter" rules -->
|
|
156
|
-
'@typescript-eslint/no-unsafe-argument': off
|
|
157
|
-
'@typescript-eslint/no-unsafe-member-access': off
|
|
158
|
-
'@typescript-eslint/no-unsafe-return': off
|
|
159
|
-
# <--
|
package/eslint/vue/common.yaml
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
parser: vue-eslint-parser
|
|
2
|
-
|
|
3
|
-
parserOptions:
|
|
4
|
-
parser: '@typescript-eslint/parser'
|
|
5
|
-
ecmaVersion: 2020
|
|
6
|
-
extraFilesExtension:
|
|
7
|
-
- .vue
|
|
8
|
-
project: tsconfig.json
|
|
9
|
-
sourceType: module
|
|
10
|
-
vueFeatures:
|
|
11
|
-
filter: false
|
|
12
|
-
interpolationAsNonHTML: true
|
|
13
|
-
|
|
14
|
-
plugins:
|
|
15
|
-
- import
|
|
16
|
-
- vue
|
|
17
|
-
- prettier-vue
|
|
18
|
-
- '@typescript-eslint'
|
|
19
|
-
- decorator-position
|
|
20
|
-
|
|
21
|
-
extends:
|
|
22
|
-
- eslint:recommended
|
|
23
|
-
- plugin:import/typescript
|
|
24
|
-
- '@vue/eslint-config-typescript/recommended'
|
|
25
|
-
- plugin:vue/vue3-recommended
|
|
26
|
-
- plugin:@typescript-eslint/strict-type-checked
|
|
27
|
-
- ../typescript/rules.yaml
|
|
28
|
-
- ./rules.yaml
|
|
29
|
-
- ../shared.yaml
|
|
30
|
-
|
|
31
|
-
globals:
|
|
32
|
-
NodeJS: readonly
|
|
33
|
-
defineProps: readonly
|
|
34
|
-
defineEmits: readonly
|
|
35
|
-
defineExpose: readonly
|
|
36
|
-
withDefaults: readonly
|
package/eslint/vue/rules.yaml
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
rules:
|
|
2
|
-
prettier/prettier: off
|
|
3
|
-
prettier-vue/prettier:
|
|
4
|
-
- error
|
|
5
|
-
|
|
6
|
-
vue/multi-word-component-names: off
|
|
7
|
-
vue/html-closing-bracket-newline:
|
|
8
|
-
- error
|
|
9
|
-
|
|
10
|
-
indent: off
|
|
11
|
-
'@typescript-eslint/indent': off
|
|
12
|
-
# covered by prettier.vueIndentScriptAndStyle
|
|
13
|
-
# vue/script-indent:
|
|
14
|
-
# - error
|
|
15
|
-
# - 4
|
|
16
|
-
# - baseIndent: 1
|
|
17
|
-
# switchCase: 1
|
|
18
|
-
|
|
19
|
-
vue/html-indent:
|
|
20
|
-
- error
|
|
21
|
-
- 4
|
|
22
|
-
- alignAttributesVertically: true
|
|
23
|
-
baseIndent: 1
|
|
24
|
-
closeBracket: 0
|
|
25
|
-
|
|
26
|
-
vue/max-attributes-per-line:
|
|
27
|
-
- error
|
|
28
|
-
- singleline: 3
|
|
29
|
-
multiline: 1
|
|
30
|
-
vue/object-curly-spacing:
|
|
31
|
-
- error
|
|
32
|
-
- always
|
|
33
|
-
|
|
34
|
-
vue/valid-v-for: warn
|
|
35
|
-
vue/component-api-style:
|
|
36
|
-
- error
|
|
37
|
-
- - script-setup
|
|
38
|
-
- composition
|
|
39
|
-
vue/no-reserved-component-names: off
|
|
40
|
-
|
|
41
|
-
vue/attributes-order:
|
|
42
|
-
- error
|
|
43
|
-
- alphabetical: true
|
|
44
|
-
order:
|
|
45
|
-
- DEFINITION
|
|
46
|
-
- LIST_RENDERING
|
|
47
|
-
- CONDITIONALS
|
|
48
|
-
- RENDER_MODIFIERS
|
|
49
|
-
- GLOBAL
|
|
50
|
-
- - UNIQUE
|
|
51
|
-
- SLOT
|
|
52
|
-
- TWO_WAY_BINDING
|
|
53
|
-
- OTHER_DIRECTIVES
|
|
54
|
-
- OTHER_ATTR
|
|
55
|
-
- EVENTS
|
|
56
|
-
- CONTENT
|
|
57
|
-
|
|
58
|
-
vue/attribute-hyphenation:
|
|
59
|
-
- error
|
|
60
|
-
- always
|
|
61
|
-
|
|
62
|
-
# It's works quirky with sfc-generics
|
|
63
|
-
'@typescript-eslint/no-unnecessary-type-arguments': off
|
package/eslint/yaml/common.yaml
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
plugins:
|
|
2
|
-
- prettier
|
|
3
|
-
|
|
4
|
-
extends:
|
|
5
|
-
- plugin:yml/standard
|
|
6
|
-
- ../shared.yaml
|
|
7
|
-
|
|
8
|
-
rules:
|
|
9
|
-
prettier/prettier: error
|
|
10
|
-
|
|
11
|
-
yml/plain-scalar:
|
|
12
|
-
- error
|
|
13
|
-
- always
|
|
14
|
-
yml/indent: off
|
|
15
|
-
yml/quotes:
|
|
16
|
-
- error
|
|
17
|
-
- avoidEscape: true
|
|
18
|
-
prefer: single
|
|
19
|
-
yml/block-sequence-hyphen-indicator-newline:
|
|
20
|
-
- error
|
|
21
|
-
- never
|
|
22
|
-
- nestedHyphen: never
|
package/tsconfig/base.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"declaration": true,
|
|
4
|
-
"forceConsistentCasingInFileNames": true,
|
|
5
|
-
"importHelpers": true,
|
|
6
|
-
"newLine": "lf",
|
|
7
|
-
"noEmitOnError": true,
|
|
8
|
-
"noFallthroughCasesInSwitch": true,
|
|
9
|
-
"noImplicitOverride": true,
|
|
10
|
-
"noImplicitReturns": true,
|
|
11
|
-
"noUnusedLocals": true,
|
|
12
|
-
"noUnusedParameters": true,
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"strict": true,
|
|
15
|
-
"useDefineForClassFields": true
|
|
16
|
-
},
|
|
17
|
-
"exclude": ["node_modules"]
|
|
18
|
-
}
|
package/tsconfig/browser.json
DELETED