@enormora/eslint-config-vitest 0.0.14 → 0.0.16

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/package.json CHANGED
@@ -4,19 +4,21 @@
4
4
  "Christian Rackerseder <github@echooff.de>"
5
5
  ],
6
6
  "dependencies": {
7
- "@vitest/eslint-plugin": "1.6.15"
7
+ "@enormora/eslint-config-test-base": "0.0.1",
8
+ "@vitest/eslint-plugin": "1.6.17"
8
9
  },
9
10
  "description": "Enormora’s ESLint Vitest configuration",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./presets/vitest/vitest.js"
14
+ }
15
+ },
10
16
  "license": "MIT",
11
- "main": "vitest.js",
12
17
  "name": "@enormora/eslint-config-vitest",
13
- "peerDependencies": {
14
- "@enormora/eslint-config-base": "0.0.30"
15
- },
16
18
  "repository": {
17
19
  "type": "git",
18
20
  "url": "git://github.com/enormora/eslint-config.git"
19
21
  },
20
22
  "type": "module",
21
- "version": "0.0.14"
23
+ "version": "0.0.16"
22
24
  }
@@ -1,5 +1,5 @@
1
1
  import vitestPlugin from '@vitest/eslint-plugin';
2
- import { testRuleSet } from './rule-sets/test-rules.js';
2
+ import { testRuleSet } from '@enormora/eslint-config-test-base';
3
3
 
4
4
  export const vitestConfig = {
5
5
  plugins: {
@@ -22,7 +22,7 @@ export const vitestConfig = {
22
22
  '@vitest/prefer-lowercase-title': 'error',
23
23
  '@vitest/prefer-called-exactly-once-with': 'error',
24
24
  '@vitest/consistent-each-for': 'error',
25
- '@vitest/max-nested-describe': ['error', { max: 2 }],
25
+ '@vitest/max-nested-describe': [ 'error', { max: 2 } ],
26
26
  '@vitest/no-identical-title': 'error',
27
27
  '@vitest/no-focused-tests': 'error',
28
28
  '@vitest/no-conditional-tests': 'error',
package/readme.md CHANGED
@@ -13,17 +13,17 @@ npm install --save-dev @enormora/eslint-config-base @enormora/eslint-config-vite
13
13
  Create an ESLint configuration file (e.g., `eslint.config.js`) in your project and add the base and mocha config to the configuration array:
14
14
 
15
15
  ```javascript
16
- import { baseConfig } from '@enormora/eslint-config-base';
17
- import { vitestConfig } from '@enormora/eslint-config-vitest';
16
+ import { baseConfig } from "@enormora/eslint-config-base";
17
+ import { vitestConfig } from "@enormora/eslint-config-vitest";
18
18
 
19
19
  export default [
20
- {
21
- ignores: ['dist/**/*']
22
- },
23
- baseConfig,
24
- {
25
- ...vitestConfig,
26
- files: ['**/*.test.js']
27
- }
20
+ {
21
+ ignores: ["dist/**/*"],
22
+ },
23
+ ...baseConfig,
24
+ {
25
+ ...vitestConfig,
26
+ files: ["**/*.test.js"],
27
+ },
28
28
  ];
29
29
  ```
package/sbom.cdx.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
3
+ "bomFormat": "CycloneDX",
4
+ "specVersion": "1.6",
5
+ "version": 1,
6
+ "metadata": {
7
+ "tools": {
8
+ "components": [
9
+ {
10
+ "type": "application",
11
+ "name": "packtory",
12
+ "version": "0.0.15"
13
+ }
14
+ ]
15
+ },
16
+ "component": {
17
+ "type": "library",
18
+ "name": "@enormora/eslint-config-vitest",
19
+ "version": "0.0.16",
20
+ "bom-ref": "pkg:npm/@enormora/eslint-config-vitest@0.0.16",
21
+ "purl": "pkg:npm/@enormora/eslint-config-vitest@0.0.16"
22
+ }
23
+ },
24
+ "components": [
25
+ {
26
+ "type": "library",
27
+ "name": "@enormora/eslint-config-test-base",
28
+ "version": "0.0.1",
29
+ "bom-ref": "pkg:npm/@enormora/eslint-config-test-base@0.0.1",
30
+ "scope": "required",
31
+ "licenses": [
32
+ {
33
+ "expression": "MIT"
34
+ }
35
+ ],
36
+ "purl": "pkg:npm/@enormora/eslint-config-test-base@0.0.1"
37
+ },
38
+ {
39
+ "type": "library",
40
+ "name": "@vitest/eslint-plugin",
41
+ "version": "1.6.17",
42
+ "bom-ref": "pkg:npm/@vitest/eslint-plugin@1.6.17",
43
+ "scope": "required",
44
+ "licenses": [
45
+ {
46
+ "expression": "MIT"
47
+ }
48
+ ],
49
+ "purl": "pkg:npm/@vitest/eslint-plugin@1.6.17"
50
+ }
51
+ ],
52
+ "dependencies": [
53
+ {
54
+ "ref": "pkg:npm/@enormora/eslint-config-test-base@0.0.1"
55
+ },
56
+ {
57
+ "ref": "pkg:npm/@enormora/eslint-config-vitest@0.0.16",
58
+ "dependsOn": [
59
+ "pkg:npm/@enormora/eslint-config-test-base@0.0.1",
60
+ "pkg:npm/@vitest/eslint-plugin@1.6.17"
61
+ ]
62
+ },
63
+ {
64
+ "ref": "pkg:npm/@vitest/eslint-plugin@1.6.17"
65
+ }
66
+ ]
67
+ }
@@ -1,14 +0,0 @@
1
- import { stylisticRuleSet } from '@enormora/eslint-config-base/rule-sets/stylistic.js';
2
-
3
- export const testRuleSet = {
4
- rules: {
5
- '@stylistic/max-len': [
6
- 'error',
7
- {
8
- ...stylisticRuleSet.rules['@stylistic/max-len'][1],
9
- ignoreStrings: true
10
- }
11
- ],
12
- '@typescript-eslint/no-unsafe-type-assertion': 'off'
13
- }
14
- };