@enormora/eslint-config-ava 0.0.31 → 0.0.33

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
+ "@enormora/eslint-config-test-base": "0.0.1",
7
8
  "eslint-plugin-ava": "16.0.1"
8
9
  },
9
10
  "description": "Enormora’s ESLint ava configuration",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./presets/ava/ava.js"
14
+ }
15
+ },
10
16
  "license": "MIT",
11
- "main": "ava.js",
12
17
  "name": "@enormora/eslint-config-ava",
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.31"
23
+ "version": "0.0.33"
22
24
  }
@@ -1,5 +1,5 @@
1
1
  import avaPlugin from 'eslint-plugin-ava';
2
- import { testRuleSet } from './rule-sets/test-rules.js';
2
+ import { testRuleSet } from '@enormora/eslint-config-test-base';
3
3
 
4
4
  export const avaConfig = {
5
5
  plugins: {
@@ -8,10 +8,7 @@ export const avaConfig = {
8
8
  rules: {
9
9
  ...testRuleSet.rules,
10
10
 
11
- 'no-magic-numbers': 'off',
12
- '@typescript-eslint/no-magic-numbers': 'off',
13
-
14
- 'id-length': ['error', { min: 2, properties: 'never', exceptions: ['t'] }],
11
+ 'id-length': [ 'error', { min: 2, properties: 'never', exceptions: [ 't' ] } ],
15
12
 
16
13
  'ava/assertion-arguments': 'error',
17
14
  'ava/failing-test-url': 'error',
package/readme.md CHANGED
@@ -13,17 +13,17 @@ npm install --save-dev @enormora/eslint-config-base @enormora/eslint-config-ava
13
13
  Create an ESLint configuration file (e.g., `eslint.config.js`) in your project and add the base and node config to the configuration array:
14
14
 
15
15
  ```javascript
16
- import { baseConfig } from '@enormora/eslint-config-base';
17
- import { avaConfig } from '@enormora/eslint-config-ava';
16
+ import { avaConfig } from "@enormora/eslint-config-ava";
17
+ import { baseConfig } from "@enormora/eslint-config-base";
18
18
 
19
19
  export default [
20
- {
21
- ignores: ['dist/**/*']
22
- },
23
- baseConfig,
24
- {
25
- ...avaConfig,
26
- files: ['**/*.test.js']
27
- }
20
+ {
21
+ ignores: ["dist/**/*"],
22
+ },
23
+ ...baseConfig,
24
+ {
25
+ ...avaConfig,
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-ava",
19
+ "version": "0.0.33",
20
+ "bom-ref": "pkg:npm/@enormora/eslint-config-ava@0.0.33",
21
+ "purl": "pkg:npm/@enormora/eslint-config-ava@0.0.33"
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": "eslint-plugin-ava",
41
+ "version": "16.0.1",
42
+ "bom-ref": "pkg:npm/eslint-plugin-ava@16.0.1",
43
+ "scope": "required",
44
+ "licenses": [
45
+ {
46
+ "expression": "MIT"
47
+ }
48
+ ],
49
+ "purl": "pkg:npm/eslint-plugin-ava@16.0.1"
50
+ }
51
+ ],
52
+ "dependencies": [
53
+ {
54
+ "ref": "pkg:npm/@enormora/eslint-config-ava@0.0.33",
55
+ "dependsOn": [
56
+ "pkg:npm/@enormora/eslint-config-test-base@0.0.1",
57
+ "pkg:npm/eslint-plugin-ava@16.0.1"
58
+ ]
59
+ },
60
+ {
61
+ "ref": "pkg:npm/@enormora/eslint-config-test-base@0.0.1"
62
+ },
63
+ {
64
+ "ref": "pkg:npm/eslint-plugin-ava@16.0.1"
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
- };