@entva/styleguide 0.0.0 → 2.30.0
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/README.md +16 -77
- package/package.json +29 -6
- package/.github/workflows/ci.yml +0 -14
- package/css/README.md +0 -385
- package/css/packages/stylelint/LICENSE +0 -21
- package/css/packages/stylelint/README.md +0 -27
- package/css/packages/stylelint/eslint.config.js +0 -3
- package/css/packages/stylelint/index.js +0 -84
- package/css/packages/stylelint/package-lock.json +0 -4042
- package/css/packages/stylelint/package.json +0 -42
- package/html/README.md +0 -98
- package/javascript/README.md +0 -3255
- package/javascript/packages/eslint-base/LICENSE +0 -21
- package/javascript/packages/eslint-base/README.md +0 -27
- package/javascript/packages/eslint-base/eslint.config.js +0 -3
- package/javascript/packages/eslint-base/index.js +0 -1084
- package/javascript/packages/eslint-base/package-lock.json +0 -2653
- package/javascript/packages/eslint-base/package.json +0 -36
- package/javascript/packages/eslint-react/LICENSE +0 -21
- package/javascript/packages/eslint-react/README.md +0 -27
- package/javascript/packages/eslint-react/eslint.config.js +0 -3
- package/javascript/packages/eslint-react/index.js +0 -526
- package/javascript/packages/eslint-react/package-lock.json +0 -3035
- package/javascript/packages/eslint-react/package.json +0 -42
- package/react/README.md +0 -726
- package/scripts/for-each-package +0 -12
- package/test/css.js +0 -36
- package/test/index.js +0 -7
- package/test/js.js +0 -35
- package/test/utils.js +0 -63
- package/tooling/packages/biome/LICENSE +0 -21
- package/tooling/packages/biome/README.md +0 -27
- package/tooling/packages/biome/package-lock.json +0 -183
- package/tooling/packages/biome/package.json +0 -38
- package/tsconfig.json +0 -31
- package/typescript/README.md +0 -66
- package/typescript/packages/eslint-typescript-base/LICENSE +0 -21
- package/typescript/packages/eslint-typescript-base/README.md +0 -27
- package/typescript/packages/eslint-typescript-base/eslint.config.js +0 -3
- package/typescript/packages/eslint-typescript-base/index.js +0 -272
- package/typescript/packages/eslint-typescript-base/package-lock.json +0 -3215
- package/typescript/packages/eslint-typescript-base/package.json +0 -41
- package/typescript/packages/eslint-typescript-base/tsconfig.json +0 -30
- package/typescript/packages/eslint-typescript-react/LICENSE +0 -21
- package/typescript/packages/eslint-typescript-react/README.md +0 -27
- package/typescript/packages/eslint-typescript-react/eslint.config.js +0 -3
- package/typescript/packages/eslint-typescript-react/index.js +0 -75
- package/typescript/packages/eslint-typescript-react/package-lock.json +0 -3630
- package/typescript/packages/eslint-typescript-react/package.json +0 -41
- package/typescript/packages/eslint-typescript-react/tsconfig.json +0 -30
- /package/{tooling/packages/biome/biome.json → biome.json} +0 -0
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import baseConfig from 'eslint-config-entva-base';
|
|
2
|
-
import importPlugin from 'eslint-plugin-import';
|
|
3
|
-
import globals from 'globals';
|
|
4
|
-
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
|
5
|
-
import tsParser from '@typescript-eslint/parser';
|
|
6
|
-
import stylisticTs from '@stylistic/eslint-plugin-ts';
|
|
7
|
-
|
|
8
|
-
export default [
|
|
9
|
-
...baseConfig,
|
|
10
|
-
{
|
|
11
|
-
files: [
|
|
12
|
-
'**/*.test.ts',
|
|
13
|
-
'**/*.spec.ts',
|
|
14
|
-
],
|
|
15
|
-
languageOptions: {
|
|
16
|
-
globals: {
|
|
17
|
-
...globals.jest,
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
files: ['**/*.{js,mjs,cjs,ts}'],
|
|
23
|
-
plugins: {
|
|
24
|
-
import: importPlugin,
|
|
25
|
-
'@typescript-eslint': typescriptEslint,
|
|
26
|
-
'@stylistic/ts': stylisticTs,
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
languageOptions: {
|
|
30
|
-
globals: {
|
|
31
|
-
...globals.browser,
|
|
32
|
-
...globals.node,
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
parser: tsParser,
|
|
36
|
-
ecmaVersion: 'latest',
|
|
37
|
-
sourceType: 'module',
|
|
38
|
-
|
|
39
|
-
parserOptions: {
|
|
40
|
-
parser: '@typescript-eslint/parser',
|
|
41
|
-
project: './tsconfig.json',
|
|
42
|
-
|
|
43
|
-
ecmaFeatures: {
|
|
44
|
-
generators: false,
|
|
45
|
-
objectLiteralDuplicateProperties: false,
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
settings: {
|
|
51
|
-
'import/parsers': {
|
|
52
|
-
'@typescript-eslint/parser': ['.ts', '.d.ts'],
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
'import/resolver': {
|
|
56
|
-
node: {
|
|
57
|
-
extensions: ['.mjs', '.js', '.json', '.ts', '.d.ts'],
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
'import/extensions': ['.mjs', '.js', '.json', '.ts', '.d.ts'],
|
|
62
|
-
'import/external-module-folders': ['node_modules', 'node_modules/@types'],
|
|
63
|
-
'import/core-modules': [],
|
|
64
|
-
'import/ignore': ['node_modules', '\\.(coffee|scss|css|less|hbs|svg|json)$'],
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
rules: {
|
|
68
|
-
'@stylistic/ts/member-delimiter-style': ['error', {
|
|
69
|
-
multiline: {
|
|
70
|
-
delimiter: 'comma',
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
singleline: {
|
|
74
|
-
delimiter: 'comma',
|
|
75
|
-
},
|
|
76
|
-
}],
|
|
77
|
-
|
|
78
|
-
'@typescript-eslint/no-explicit-any': ['error', {
|
|
79
|
-
ignoreRestArgs: true,
|
|
80
|
-
}],
|
|
81
|
-
|
|
82
|
-
'@typescript-eslint/naming-convention': ['error', {
|
|
83
|
-
selector: 'variable',
|
|
84
|
-
format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
|
|
85
|
-
leadingUnderscore: 'allowSingleOrDouble',
|
|
86
|
-
}, {
|
|
87
|
-
selector: 'function',
|
|
88
|
-
format: ['camelCase', 'PascalCase'],
|
|
89
|
-
leadingUnderscore: 'allowSingleOrDouble',
|
|
90
|
-
}, {
|
|
91
|
-
selector: 'typeLike',
|
|
92
|
-
format: ['PascalCase'],
|
|
93
|
-
leadingUnderscore: 'allowSingleOrDouble',
|
|
94
|
-
}],
|
|
95
|
-
|
|
96
|
-
'@stylistic/ts/brace-style': ['error', '1tbs', {
|
|
97
|
-
allowSingleLine: true,
|
|
98
|
-
}],
|
|
99
|
-
|
|
100
|
-
'@stylistic/ts/comma-dangle': ['error', {
|
|
101
|
-
arrays: 'always-multiline',
|
|
102
|
-
objects: 'always-multiline',
|
|
103
|
-
imports: 'always-multiline',
|
|
104
|
-
exports: 'always-multiline',
|
|
105
|
-
functions: 'always-multiline',
|
|
106
|
-
enums: 'always-multiline',
|
|
107
|
-
generics: 'always-multiline',
|
|
108
|
-
tuples: 'always-multiline',
|
|
109
|
-
}],
|
|
110
|
-
|
|
111
|
-
'@stylistic/ts/comma-spacing': ['error', {
|
|
112
|
-
before: false,
|
|
113
|
-
after: true,
|
|
114
|
-
}],
|
|
115
|
-
|
|
116
|
-
'default-param-last': 'off',
|
|
117
|
-
'@typescript-eslint/default-param-last': ['error'],
|
|
118
|
-
|
|
119
|
-
'@typescript-eslint/dot-notation': ['error', {
|
|
120
|
-
allowKeywords: true,
|
|
121
|
-
allowPattern: '',
|
|
122
|
-
allowPrivateClassPropertyAccess: false,
|
|
123
|
-
allowProtectedClassPropertyAccess: false,
|
|
124
|
-
allowIndexSignaturePropertyAccess: false,
|
|
125
|
-
}],
|
|
126
|
-
|
|
127
|
-
'@stylistic/ts/func-call-spacing': ['error', 'never'],
|
|
128
|
-
|
|
129
|
-
'@stylistic/ts/indent': ['error', 2, {
|
|
130
|
-
SwitchCase: 1,
|
|
131
|
-
VariableDeclarator: 1,
|
|
132
|
-
outerIIFEBody: 1,
|
|
133
|
-
|
|
134
|
-
FunctionDeclaration: {
|
|
135
|
-
parameters: 1,
|
|
136
|
-
body: 1,
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
FunctionExpression: {
|
|
140
|
-
parameters: 1,
|
|
141
|
-
body: 1,
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
CallExpression: {
|
|
145
|
-
arguments: 1,
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
ArrayExpression: 1,
|
|
149
|
-
ObjectExpression: 1,
|
|
150
|
-
ImportDeclaration: 1,
|
|
151
|
-
flatTernaryExpressions: false,
|
|
152
|
-
|
|
153
|
-
ignoredNodes: [
|
|
154
|
-
'JSXElement',
|
|
155
|
-
'JSXElement > *',
|
|
156
|
-
'JSXAttribute',
|
|
157
|
-
'JSXIdentifier',
|
|
158
|
-
'JSXNamespacedName',
|
|
159
|
-
'JSXMemberExpression',
|
|
160
|
-
'JSXSpreadAttribute',
|
|
161
|
-
'JSXExpressionContainer',
|
|
162
|
-
'JSXOpeningElement',
|
|
163
|
-
'JSXClosingElement',
|
|
164
|
-
'JSXFragment',
|
|
165
|
-
'JSXOpeningFragment',
|
|
166
|
-
'JSXClosingFragment',
|
|
167
|
-
'JSXText',
|
|
168
|
-
'JSXEmptyExpression',
|
|
169
|
-
'JSXSpreadChild',
|
|
170
|
-
],
|
|
171
|
-
|
|
172
|
-
ignoreComments: false,
|
|
173
|
-
offsetTernaryExpressions: false,
|
|
174
|
-
}],
|
|
175
|
-
|
|
176
|
-
'@stylistic/ts/keyword-spacing': ['error', {
|
|
177
|
-
before: true,
|
|
178
|
-
after: true,
|
|
179
|
-
|
|
180
|
-
overrides: {
|
|
181
|
-
return: {
|
|
182
|
-
after: true,
|
|
183
|
-
},
|
|
184
|
-
|
|
185
|
-
throw: {
|
|
186
|
-
after: true,
|
|
187
|
-
},
|
|
188
|
-
|
|
189
|
-
case: {
|
|
190
|
-
after: true,
|
|
191
|
-
},
|
|
192
|
-
},
|
|
193
|
-
}],
|
|
194
|
-
|
|
195
|
-
'@stylistic/ts/lines-between-class-members': ['error', 'always', {
|
|
196
|
-
exceptAfterSingleLine: false,
|
|
197
|
-
exceptAfterOverload: true,
|
|
198
|
-
}],
|
|
199
|
-
|
|
200
|
-
'@typescript-eslint/no-array-constructor': ['error'],
|
|
201
|
-
'@typescript-eslint/no-dupe-class-members': ['error'],
|
|
202
|
-
|
|
203
|
-
'@typescript-eslint/no-empty-function': ['error', {
|
|
204
|
-
allow: ['arrowFunctions', 'functions', 'methods'],
|
|
205
|
-
}],
|
|
206
|
-
|
|
207
|
-
'@typescript-eslint/no-extra-parens': ['off', 'all', {
|
|
208
|
-
conditionalAssign: true,
|
|
209
|
-
nestedBinaryExpressions: false,
|
|
210
|
-
returnAssign: false,
|
|
211
|
-
ignoreJSX: 'all',
|
|
212
|
-
enforceForArrowConditionals: false,
|
|
213
|
-
}],
|
|
214
|
-
|
|
215
|
-
'@stylistic/ts/no-extra-semi': ['error'],
|
|
216
|
-
'@typescript-eslint/no-implied-eval': ['error'],
|
|
217
|
-
'@typescript-eslint/no-loss-of-precision': ['error'],
|
|
218
|
-
'@typescript-eslint/no-loop-func': ['error'],
|
|
219
|
-
|
|
220
|
-
'@typescript-eslint/no-magic-numbers': ['off', {
|
|
221
|
-
ignore: [],
|
|
222
|
-
ignoreArrayIndexes: true,
|
|
223
|
-
enforceConst: true,
|
|
224
|
-
detectObjects: false,
|
|
225
|
-
}],
|
|
226
|
-
|
|
227
|
-
'@typescript-eslint/no-redeclare': ['error'],
|
|
228
|
-
'@stylistic/ts/space-before-blocks': ['error'],
|
|
229
|
-
|
|
230
|
-
'no-shadow': 'off',
|
|
231
|
-
'@typescript-eslint/no-shadow': ['error'],
|
|
232
|
-
|
|
233
|
-
'@typescript-eslint/no-unused-expressions': ['error', {
|
|
234
|
-
allowShortCircuit: false,
|
|
235
|
-
allowTernary: false,
|
|
236
|
-
allowTaggedTemplates: false,
|
|
237
|
-
enforceForJSX: false,
|
|
238
|
-
}],
|
|
239
|
-
|
|
240
|
-
'no-unused-vars': 'off',
|
|
241
|
-
'@typescript-eslint/no-unused-vars': ['error', {
|
|
242
|
-
vars: 'all',
|
|
243
|
-
args: 'after-used',
|
|
244
|
-
ignoreRestSiblings: true,
|
|
245
|
-
caughtErrors: 'none',
|
|
246
|
-
}],
|
|
247
|
-
|
|
248
|
-
'@typescript-eslint/no-use-before-define': ['error', {
|
|
249
|
-
functions: true,
|
|
250
|
-
classes: true,
|
|
251
|
-
variables: true,
|
|
252
|
-
}],
|
|
253
|
-
|
|
254
|
-
'@typescript-eslint/no-useless-constructor': ['error'],
|
|
255
|
-
|
|
256
|
-
'@stylistic/ts/quotes': ['error', 'single', {
|
|
257
|
-
avoidEscape: true,
|
|
258
|
-
}],
|
|
259
|
-
|
|
260
|
-
'@stylistic/ts/space-before-function-paren': ['error', {
|
|
261
|
-
anonymous: 'always',
|
|
262
|
-
named: 'never',
|
|
263
|
-
asyncArrow: 'always',
|
|
264
|
-
}],
|
|
265
|
-
|
|
266
|
-
'@typescript-eslint/require-await': ['off'],
|
|
267
|
-
'@typescript-eslint/return-await': ['error', 'in-try-catch'],
|
|
268
|
-
'@stylistic/ts/space-infix-ops': ['error'],
|
|
269
|
-
'@stylistic/ts/object-curly-spacing': ['error', 'always'],
|
|
270
|
-
},
|
|
271
|
-
},
|
|
272
|
-
];
|