@enormora/eslint-config-react-tsx 0.0.29 → 0.0.31

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,23 @@
4
4
  "Christian Rackerseder <github@echooff.de>"
5
5
  ],
6
6
  "dependencies": {
7
- "@enormora/eslint-config-react-jsx": "0.0.29"
7
+ "@enormora/eslint-config-react-jsx": "0.0.31"
8
8
  },
9
9
  "description": "Enormora’s ESLint react with TSX and typescript configuration",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./presets/react-tsx/react-tsx.js"
13
+ }
14
+ },
10
15
  "license": "MIT",
11
- "main": "react-tsx.js",
12
16
  "name": "@enormora/eslint-config-react-tsx",
13
17
  "peerDependencies": {
14
- "@enormora/eslint-config-base": "0.0.30"
18
+ "@enormora/eslint-config-base": "0.0.32"
15
19
  },
16
20
  "repository": {
17
21
  "type": "git",
18
22
  "url": "git://github.com/enormora/eslint-config.git"
19
23
  },
20
24
  "type": "module",
21
- "version": "0.0.29"
25
+ "version": "0.0.31"
22
26
  }
@@ -1,5 +1,5 @@
1
- import { reactJsxConfig } from '@enormora/eslint-config-react-jsx/react-jsx.js';
2
1
  import { javascriptExtensions, typescriptExtensions } from '@enormora/eslint-config-base/constants.js';
2
+ import { reactJsxConfig } from '@enormora/eslint-config-react-jsx';
3
3
 
4
4
  export const reactTsxConfig = {
5
5
  languageOptions: reactJsxConfig.languageOptions,
@@ -7,11 +7,11 @@ export const reactTsxConfig = {
7
7
  settings: {
8
8
  'import/resolver': {
9
9
  node: {
10
- extensions: [...javascriptExtensions, ...typescriptExtensions, '.tsx']
10
+ extensions: [ ...javascriptExtensions, ...typescriptExtensions, '.tsx' ]
11
11
  }
12
12
  },
13
13
  'import/parsers': {
14
- '@typescript-eslint/parser': [...typescriptExtensions, '.tsx']
14
+ '@typescript-eslint/parser': [ ...typescriptExtensions, '.tsx' ]
15
15
  }
16
16
  },
17
17
  rules: {
package/readme.md CHANGED
@@ -13,17 +13,17 @@ npm install --save-dev @enormora/eslint-config-base @enormora/eslint-config-type
13
13
  Create an ESLint configuration file (e.g., `eslint.config.js`) in your project and add the base and react config to the configuration array:
14
14
 
15
15
  ```javascript
16
- import { baseConfig } from '@enormora/eslint-config-base';
17
- import { reactTsxConfig } from '@enormora/eslint-config-react-tsx';
16
+ import { baseConfig } from "@enormora/eslint-config-base";
17
+ import { reactTsxConfig } from "@enormora/eslint-config-react-tsx";
18
18
 
19
19
  export default [
20
- {
21
- ignores: ['dist/**/*']
22
- },
23
- baseConfig,
24
- {
25
- ...reactTsxConfig,
26
- files: ['src/components/**/*.tsx']
27
- }
20
+ {
21
+ ignores: ["dist/**/*"],
22
+ },
23
+ ...baseConfig,
24
+ {
25
+ ...reactTsxConfig,
26
+ files: ["src/components/**/*.tsx"],
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-react-tsx",
19
+ "version": "0.0.31",
20
+ "bom-ref": "pkg:npm/@enormora/eslint-config-react-tsx@0.0.31",
21
+ "purl": "pkg:npm/@enormora/eslint-config-react-tsx@0.0.31"
22
+ }
23
+ },
24
+ "components": [
25
+ {
26
+ "type": "library",
27
+ "name": "@enormora/eslint-config-base",
28
+ "version": "0.0.32",
29
+ "bom-ref": "pkg:npm/@enormora/eslint-config-base@0.0.32",
30
+ "scope": "optional",
31
+ "licenses": [
32
+ {
33
+ "expression": "MIT"
34
+ }
35
+ ],
36
+ "purl": "pkg:npm/@enormora/eslint-config-base@0.0.32"
37
+ },
38
+ {
39
+ "type": "library",
40
+ "name": "@enormora/eslint-config-react-jsx",
41
+ "version": "0.0.31",
42
+ "bom-ref": "pkg:npm/@enormora/eslint-config-react-jsx@0.0.31",
43
+ "scope": "required",
44
+ "licenses": [
45
+ {
46
+ "expression": "MIT"
47
+ }
48
+ ],
49
+ "purl": "pkg:npm/@enormora/eslint-config-react-jsx@0.0.31"
50
+ }
51
+ ],
52
+ "dependencies": [
53
+ {
54
+ "ref": "pkg:npm/@enormora/eslint-config-base@0.0.32"
55
+ },
56
+ {
57
+ "ref": "pkg:npm/@enormora/eslint-config-react-jsx@0.0.31"
58
+ },
59
+ {
60
+ "ref": "pkg:npm/@enormora/eslint-config-react-tsx@0.0.31",
61
+ "dependsOn": [
62
+ "pkg:npm/@enormora/eslint-config-base@0.0.32",
63
+ "pkg:npm/@enormora/eslint-config-react-jsx@0.0.31"
64
+ ]
65
+ }
66
+ ]
67
+ }