wjec-one 4.2.0-alpha.2 → 4.2.0-alpha.3

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.
@@ -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 } from 'eslint/config';
7
+ import { defineConfig, globalIgnores } from 'eslint/config';
8
8
  import globals from 'globals';
9
9
  import path from 'node:path';
10
10
  import { fileURLToPath } from 'node:url';
@@ -55,7 +55,7 @@ const mainConfig = {
55
55
  'comma-dangle': ['error', 'never'],
56
56
  'comma-spacing': 'error',
57
57
  'comma-style': 'error',
58
- 'complexity': ['warn', { max: 15 }],
58
+ 'complexity': ['warn', { max: 20 }],
59
59
  'computed-property-spacing': 'error',
60
60
  'consistent-return': ['error', { treatUndefinedAsUnspecified: true }],
61
61
  curly: '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: ['-', '/', '*'], markers: ['/'] }],
148
148
  'switch-colon-spacing': 'error',
149
149
  'template-curly-spacing': 'error',
150
150
  'template-tag-spacing': 'error',
@@ -189,7 +189,7 @@ const mainConfig = {
189
189
  caughtErrors: 'all',
190
190
  caughtErrorsIgnorePattern: '^_',
191
191
  destructuredArrayIgnorePattern: '^_',
192
- varsIgnorePattern: '^React$|^_|^jsx$',
192
+ varsIgnorePattern: '^React$|^_',
193
193
  ignoreRestSiblings: true
194
194
  }],
195
195
  '@typescript-eslint/no-use-before-define': ['error', { classes: true, functions: false, variables: false }],
@@ -272,5 +272,11 @@ export default defineConfig([
272
272
  mainConfig,
273
273
  testConfig,
274
274
  scratchpadConfig,
275
- scriptsConfig
275
+ scriptsConfig,
276
+ globalIgnores([
277
+ 'webpack.config.js',
278
+ 'config/*',
279
+ 'dist/*',
280
+ 'temp/*'
281
+ ])
276
282
  ]);