@autoafleveren/ui 0.11.0 → 0.12.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.
@@ -1,4 +1,5 @@
1
1
  const typescriptOverride = require('@programic/eslint-plugin/lib/configs/typescript-override');
2
+ const composableNames = require('../../composable-names.json');
2
3
 
3
4
  const tsConfigPath = 'tsconfig.vitest.json';
4
5
  const tailwindConfigPath = 'tailwind.config.cjs';
@@ -33,8 +34,6 @@ if (variableIndex > -1) {
33
34
  const testOverrideRules = {
34
35
  '@typescript-eslint/explicit-function-return-type': 'off',
35
36
  '@typescript-eslint/explicit-module-boundary-types': 'off',
36
- '@programic/typescript-explicit-module-boundary-types': 'off',
37
- '@programic/typescript-explicit-function-return-type': 'off',
38
37
  };
39
38
 
40
39
  /** @type {import('eslint').Config} */
@@ -125,7 +124,7 @@ module.exports = {
125
124
  '@typescript-eslint/no-floating-promises': 'off',
126
125
  '@typescript-eslint/no-unsafe-call': 'off',
127
126
  '@typescript-eslint/no-non-null-assertion': 'off',
128
- 'vitest/consistent-test-it': 'error',
127
+ 'vitest/consistent-test-it': ['error', { fn: 'it' }],
129
128
  'vitest/no-alias-methods': 'error',
130
129
  'vitest/no-conditional-expect': 'error',
131
130
  'vitest/no-conditional-in-test': 'error',
@@ -185,7 +184,18 @@ module.exports = {
185
184
  allTestPattern: '.*\\.(test|spec)\\.[tj]sx?$',
186
185
  }],
187
186
  '@typescript-eslint/no-floating-promises': 'off',
187
+ '@typescript-eslint/explicit-function-return-type': ['error', {
188
+ allowedNames: composableNames,
189
+ }],
190
+ '@typescript-eslint/explicit-module-boundary-types': ['error', {
191
+ allowDirectConstAssertionInArrowFunctions: true,
192
+ allowArgumentsExplicitlyTypedAsAny: false,
193
+ allowTypedFunctionExpressions: false,
194
+ allowHigherOrderFunctions: false,
195
+ allowedNames: composableNames,
196
+ }],
188
197
  'vue/no-v-text-v-html-on-component': 'off',
198
+ 'vue/no-ref-object-destructure': 'off',
189
199
  'import/no-cycle': 'off',
190
200
  },
191
201
  };