@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.
Files changed (51) hide show
  1. package/README.md +16 -77
  2. package/package.json +29 -6
  3. package/.github/workflows/ci.yml +0 -14
  4. package/css/README.md +0 -385
  5. package/css/packages/stylelint/LICENSE +0 -21
  6. package/css/packages/stylelint/README.md +0 -27
  7. package/css/packages/stylelint/eslint.config.js +0 -3
  8. package/css/packages/stylelint/index.js +0 -84
  9. package/css/packages/stylelint/package-lock.json +0 -4042
  10. package/css/packages/stylelint/package.json +0 -42
  11. package/html/README.md +0 -98
  12. package/javascript/README.md +0 -3255
  13. package/javascript/packages/eslint-base/LICENSE +0 -21
  14. package/javascript/packages/eslint-base/README.md +0 -27
  15. package/javascript/packages/eslint-base/eslint.config.js +0 -3
  16. package/javascript/packages/eslint-base/index.js +0 -1084
  17. package/javascript/packages/eslint-base/package-lock.json +0 -2653
  18. package/javascript/packages/eslint-base/package.json +0 -36
  19. package/javascript/packages/eslint-react/LICENSE +0 -21
  20. package/javascript/packages/eslint-react/README.md +0 -27
  21. package/javascript/packages/eslint-react/eslint.config.js +0 -3
  22. package/javascript/packages/eslint-react/index.js +0 -526
  23. package/javascript/packages/eslint-react/package-lock.json +0 -3035
  24. package/javascript/packages/eslint-react/package.json +0 -42
  25. package/react/README.md +0 -726
  26. package/scripts/for-each-package +0 -12
  27. package/test/css.js +0 -36
  28. package/test/index.js +0 -7
  29. package/test/js.js +0 -35
  30. package/test/utils.js +0 -63
  31. package/tooling/packages/biome/LICENSE +0 -21
  32. package/tooling/packages/biome/README.md +0 -27
  33. package/tooling/packages/biome/package-lock.json +0 -183
  34. package/tooling/packages/biome/package.json +0 -38
  35. package/tsconfig.json +0 -31
  36. package/typescript/README.md +0 -66
  37. package/typescript/packages/eslint-typescript-base/LICENSE +0 -21
  38. package/typescript/packages/eslint-typescript-base/README.md +0 -27
  39. package/typescript/packages/eslint-typescript-base/eslint.config.js +0 -3
  40. package/typescript/packages/eslint-typescript-base/index.js +0 -272
  41. package/typescript/packages/eslint-typescript-base/package-lock.json +0 -3215
  42. package/typescript/packages/eslint-typescript-base/package.json +0 -41
  43. package/typescript/packages/eslint-typescript-base/tsconfig.json +0 -30
  44. package/typescript/packages/eslint-typescript-react/LICENSE +0 -21
  45. package/typescript/packages/eslint-typescript-react/README.md +0 -27
  46. package/typescript/packages/eslint-typescript-react/eslint.config.js +0 -3
  47. package/typescript/packages/eslint-typescript-react/index.js +0 -75
  48. package/typescript/packages/eslint-typescript-react/package-lock.json +0 -3630
  49. package/typescript/packages/eslint-typescript-react/package.json +0 -41
  50. package/typescript/packages/eslint-typescript-react/tsconfig.json +0 -30
  51. /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
- ];