wjec-one 4.2.0-alpha.3 → 5.0.0-alpha.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/config/eslint.config.mjs +4 -10
- package/index.d.ts +167 -317
- package/index.js +10 -5
- package/package.json +2 -10
- package/portal/index.d.ts +24 -15
- package/portal/index.js +3 -3
- package/test/index.ts +1 -1
- package/test/setupTestsAfterEnv.ts +89 -0
- package/test/setupTestsForWjecOne.ts +1 -21
- package/theme/index.d.ts +94 -2
- package/theme/index.js +1 -1
- package/umd/index.js +10 -5
- package/umd/portal/index.js +3 -3
- package/umd/theme/index.js +1 -1
- package/wjec-one-project.d.ts +1 -0
package/config/eslint.config.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import tsParser from '@typescript-eslint/parser';
|
|
|
4
4
|
import importPlugin from 'eslint-plugin-import';
|
|
5
5
|
import reactPlugin from 'eslint-plugin-react';
|
|
6
6
|
import reactRules from 'eslint-plugin-react-hooks';
|
|
7
|
-
import { defineConfig
|
|
7
|
+
import { defineConfig } from 'eslint/config';
|
|
8
8
|
import globals from 'globals';
|
|
9
9
|
import path from 'node:path';
|
|
10
10
|
import { fileURLToPath } from 'node:url';
|
|
@@ -61,7 +61,7 @@ const mainConfig = {
|
|
|
61
61
|
curly: 'error',
|
|
62
62
|
'eol-last': 'error',
|
|
63
63
|
eqeqeq: 'error',
|
|
64
|
-
'func-call-spacing': 'error',
|
|
64
|
+
// 'func-call-spacing': 'error',
|
|
65
65
|
indent: ['error', 2, { SwitchCase: 1, VariableDeclarator: 'first' }],
|
|
66
66
|
'key-spacing': 'error',
|
|
67
67
|
'keyword-spacing': 'error',
|
|
@@ -144,7 +144,7 @@ const mainConfig = {
|
|
|
144
144
|
asyncArrow: 'always'
|
|
145
145
|
}],
|
|
146
146
|
'space-in-parens': 'error',
|
|
147
|
-
'spaced-comment': ['error', 'always', { exceptions: ['-', '/', '*']
|
|
147
|
+
'spaced-comment': ['error', 'always', { exceptions: ['-', '/', '*'] }],
|
|
148
148
|
'switch-colon-spacing': 'error',
|
|
149
149
|
'template-curly-spacing': 'error',
|
|
150
150
|
'template-tag-spacing': 'error',
|
|
@@ -272,11 +272,5 @@ export default defineConfig([
|
|
|
272
272
|
mainConfig,
|
|
273
273
|
testConfig,
|
|
274
274
|
scratchpadConfig,
|
|
275
|
-
scriptsConfig
|
|
276
|
-
globalIgnores([
|
|
277
|
-
'webpack.config.js',
|
|
278
|
-
'config/*',
|
|
279
|
-
'dist/*',
|
|
280
|
-
'temp/*'
|
|
281
|
-
])
|
|
275
|
+
scriptsConfig
|
|
282
276
|
]);
|