@enormora/eslint-config-react-jsx 0.0.30 → 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": "0.0.16"
7
+ "@enormora/eslint-config-react": "0.0.17"
8
8
  },
9
9
  "description": "Enormora’s ESLint react with JSX configuration",
10
+ "exports": {
11
+ ".": {
12
+ "import": "./presets/react-jsx/react-jsx.js"
13
+ }
14
+ },
10
15
  "license": "MIT",
11
- "main": "react-jsx.js",
12
16
  "name": "@enormora/eslint-config-react-jsx",
13
17
  "peerDependencies": {
14
- "@enormora/eslint-config-base": "0.0.31"
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.30"
25
+ "version": "0.0.31"
22
26
  }
@@ -1,5 +1,5 @@
1
- import { reactConfig } from '@enormora/eslint-config-react/react.js';
2
1
  import { javascriptExtensions } from '@enormora/eslint-config-base/constants.js';
2
+ import { reactConfig } from '@enormora/eslint-config-react';
3
3
 
4
4
  export const reactJsxConfig = {
5
5
  languageOptions: {
@@ -12,18 +12,18 @@ export const reactJsxConfig = {
12
12
  plugins: reactConfig.plugins,
13
13
  settings: {
14
14
  'import/parsers': {
15
- espree: [...javascriptExtensions, '.jsx']
15
+ espree: [ ...javascriptExtensions, '.jsx' ]
16
16
  }
17
17
  },
18
18
  rules: {
19
19
  ...reactConfig.rules,
20
20
 
21
- 'jsx-quotes': ['error', 'prefer-single'],
21
+ 'jsx-quotes': [ 'error', 'prefer-single' ],
22
22
  'jsx-sort-props': 'off',
23
23
 
24
- 'react/jsx-boolean-value': ['error', 'always'],
24
+ 'react/jsx-boolean-value': [ 'error', 'always' ],
25
25
  'react/jsx-key': 'error',
26
- 'react/jsx-max-depth': ['error', { max: 10 }],
26
+ 'react/jsx-max-depth': [ 'error', { max: 10 } ],
27
27
  'react/jsx-no-comment-textnodes': 'error',
28
28
  'react/jsx-no-duplicate-props': 'error',
29
29
  'react/jsx-no-literals': 'error',
@@ -32,7 +32,7 @@ export const reactJsxConfig = {
32
32
  'react/jsx-no-useless-fragment': 'error',
33
33
  'react/jsx-no-undef': 'error',
34
34
  'react/jsx-pascal-case': 'error',
35
- 'react/jsx-fragments': ['error', 'element'],
35
+ 'react/jsx-fragments': [ 'error', 'element' ],
36
36
  'react/jsx-props-no-spreading': 'error',
37
37
  'react/jsx-uses-react': 'error',
38
38
  'react/jsx-uses-vars': 'error',
package/readme.md CHANGED
@@ -13,17 +13,17 @@ npm install --save-dev @enormora/eslint-config-base @enormora/eslint-config-reac
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 { reactJsxConfig } from '@enormora/eslint-config-react-jsx';
16
+ import { baseConfig } from "@enormora/eslint-config-base";
17
+ import { reactJsxConfig } from "@enormora/eslint-config-react-jsx";
18
18
 
19
19
  export default [
20
- {
21
- ignores: ['dist/**/*']
22
- },
23
- baseConfig,
24
- {
25
- ...reactJsxConfig,
26
- files: ['src/components/**/*.jsx']
27
- }
20
+ {
21
+ ignores: ["dist/**/*"],
22
+ },
23
+ ...baseConfig,
24
+ {
25
+ ...reactJsxConfig,
26
+ files: ["src/components/**/*.jsx"],
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-jsx",
19
+ "version": "0.0.31",
20
+ "bom-ref": "pkg:npm/@enormora/eslint-config-react-jsx@0.0.31",
21
+ "purl": "pkg:npm/@enormora/eslint-config-react-jsx@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",
41
+ "version": "0.0.17",
42
+ "bom-ref": "pkg:npm/@enormora/eslint-config-react@0.0.17",
43
+ "scope": "required",
44
+ "licenses": [
45
+ {
46
+ "expression": "MIT"
47
+ }
48
+ ],
49
+ "purl": "pkg:npm/@enormora/eslint-config-react@0.0.17"
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
+ "dependsOn": [
59
+ "pkg:npm/@enormora/eslint-config-base@0.0.32",
60
+ "pkg:npm/@enormora/eslint-config-react@0.0.17"
61
+ ]
62
+ },
63
+ {
64
+ "ref": "pkg:npm/@enormora/eslint-config-react@0.0.17"
65
+ }
66
+ ]
67
+ }