@enormora/eslint-config-react-tsx 0.0.76 → 0.0.78

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
@@ -7,7 +7,7 @@
7
7
  }
8
8
  ],
9
9
  "dependencies": {
10
- "@enormora/eslint-config-react-jsx": "0.0.76"
10
+ "@enormora/eslint-config-react-jsx": "0.0.78"
11
11
  },
12
12
  "description": "Enormora’s ESLint react with TSX and typescript configuration",
13
13
  "engines": {
@@ -21,12 +21,12 @@
21
21
  "license": "MIT",
22
22
  "name": "@enormora/eslint-config-react-tsx",
23
23
  "peerDependencies": {
24
- "@enormora/eslint-config-base": "0.0.77"
24
+ "@enormora/eslint-config-base": "0.0.83"
25
25
  },
26
26
  "repository": {
27
27
  "type": "git",
28
28
  "url": "git://github.com/enormora/eslint-config.git"
29
29
  },
30
30
  "type": "module",
31
- "version": "0.0.76"
31
+ "version": "0.0.78"
32
32
  }
@@ -16,6 +16,7 @@ export const reactTsxConfig = {
16
16
  rules: {
17
17
  ...reactJsxConfig.rules,
18
18
  'sonarjs/prefer-read-only-props': 'error',
19
+ 'react/no-unused-prop-types': 'error',
19
20
  'import/extensions': [
20
21
  'error',
21
22
  {
@@ -1 +1 @@
1
- {"version":3,"file":"react-tsx.js","sourceRoot":"","sources":["../../../../../configs/presets/react-tsx/react-tsx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,2CAAoB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,mCAA2B,CAAC;AAE3D,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,eAAe,EAAE,cAAc,CAAC,eAAe;IAC/C,OAAO,EAAE,cAAc,CAAC,OAAO;IAC/B,QAAQ,EAAE;QACN,iBAAiB,EAAE;YACf,IAAI,EAAE;gBACF,UAAU,EAAE,CAAE,GAAG,oBAAoB,EAAE,GAAG,oBAAoB,EAAE,MAAM,CAAE;aAC3E;SACJ;QACD,gBAAgB,EAAE;YACd,2BAA2B,EAAE,CAAE,GAAG,oBAAoB,EAAE,MAAM,CAAE;SACnE;KACJ;IACD,KAAK,EAAE;QACH,GAAG,cAAc,CAAC,KAAK;QAEvB,gCAAgC,EAAE,OAAO;QAEzC,mBAAmB,EAAE;YACjB,OAAO;YACP;gBACI,GAAG,EAAE,gBAAgB;gBACrB,IAAI,EAAE,gBAAgB;aACzB;SACJ;KACJ;CACJ,CAAC"}
1
+ {"version":3,"file":"react-tsx.js","sourceRoot":"","sources":["../../../../../configs/presets/react-tsx/react-tsx.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,2CAAoB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,mCAA2B,CAAC;AAE3D,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,eAAe,EAAE,cAAc,CAAC,eAAe;IAC/C,OAAO,EAAE,cAAc,CAAC,OAAO;IAC/B,QAAQ,EAAE;QACN,iBAAiB,EAAE;YACf,IAAI,EAAE;gBACF,UAAU,EAAE,CAAE,GAAG,oBAAoB,EAAE,GAAG,oBAAoB,EAAE,MAAM,CAAE;aAC3E;SACJ;QACD,gBAAgB,EAAE;YACd,2BAA2B,EAAE,CAAE,GAAG,oBAAoB,EAAE,MAAM,CAAE;SACnE;KACJ;IACD,KAAK,EAAE;QACH,GAAG,cAAc,CAAC,KAAK;QAEvB,gCAAgC,EAAE,OAAO;QACzC,4BAA4B,EAAE,OAAO;QAErC,mBAAmB,EAAE;YACjB,OAAO;YACP;gBACI,GAAG,EAAE,gBAAgB;gBACrB,IAAI,EAAE,gBAAgB;aACzB;SACJ;KACJ;CACJ,CAAC"}
package/readme.md CHANGED
@@ -4,6 +4,9 @@
4
4
 
5
5
  Config preset for react and JSX per typescript, enabling specific rules and compiler settings.
6
6
 
7
+ `react/no-unused-prop-types` checks unused props declared with supported TypeScript type syntax.
8
+ The check uses local syntax analysis and does not resolve every imported or computed type.
9
+
7
10
  ## Install & Setup
8
11
 
9
12
  Install the `@enormora/eslint-config-react-tsx`, the base preset and the typescript package via npm:
@@ -9,58 +9,58 @@
9
9
  {
10
10
  "type": "application",
11
11
  "name": "packtory",
12
- "version": "0.0.124"
12
+ "version": "0.0.127"
13
13
  }
14
14
  ]
15
15
  },
16
16
  "component": {
17
17
  "type": "library",
18
18
  "name": "@enormora/eslint-config-react-tsx",
19
- "version": "0.0.76",
20
- "bom-ref": "pkg:npm/@enormora/eslint-config-react-tsx@0.0.76",
21
- "purl": "pkg:npm/@enormora/eslint-config-react-tsx@0.0.76"
19
+ "version": "0.0.78",
20
+ "bom-ref": "pkg:npm/@enormora/eslint-config-react-tsx@0.0.78",
21
+ "purl": "pkg:npm/@enormora/eslint-config-react-tsx@0.0.78"
22
22
  }
23
23
  },
24
24
  "components": [
25
25
  {
26
26
  "type": "library",
27
27
  "name": "@enormora/eslint-config-base",
28
- "version": "0.0.77",
29
- "bom-ref": "pkg:npm/@enormora/eslint-config-base@0.0.77",
28
+ "version": "0.0.83",
29
+ "bom-ref": "pkg:npm/@enormora/eslint-config-base@0.0.83",
30
30
  "scope": "optional",
31
31
  "licenses": [
32
32
  {
33
33
  "expression": "MIT"
34
34
  }
35
35
  ],
36
- "purl": "pkg:npm/@enormora/eslint-config-base@0.0.77"
36
+ "purl": "pkg:npm/@enormora/eslint-config-base@0.0.83"
37
37
  },
38
38
  {
39
39
  "type": "library",
40
40
  "name": "@enormora/eslint-config-react-jsx",
41
- "version": "0.0.76",
42
- "bom-ref": "pkg:npm/@enormora/eslint-config-react-jsx@0.0.76",
41
+ "version": "0.0.78",
42
+ "bom-ref": "pkg:npm/@enormora/eslint-config-react-jsx@0.0.78",
43
43
  "scope": "required",
44
44
  "licenses": [
45
45
  {
46
46
  "expression": "MIT"
47
47
  }
48
48
  ],
49
- "purl": "pkg:npm/@enormora/eslint-config-react-jsx@0.0.76"
49
+ "purl": "pkg:npm/@enormora/eslint-config-react-jsx@0.0.78"
50
50
  }
51
51
  ],
52
52
  "dependencies": [
53
53
  {
54
- "ref": "pkg:npm/@enormora/eslint-config-base@0.0.77"
54
+ "ref": "pkg:npm/@enormora/eslint-config-base@0.0.83"
55
55
  },
56
56
  {
57
- "ref": "pkg:npm/@enormora/eslint-config-react-jsx@0.0.76"
57
+ "ref": "pkg:npm/@enormora/eslint-config-react-jsx@0.0.78"
58
58
  },
59
59
  {
60
- "ref": "pkg:npm/@enormora/eslint-config-react-tsx@0.0.76",
60
+ "ref": "pkg:npm/@enormora/eslint-config-react-tsx@0.0.78",
61
61
  "dependsOn": [
62
- "pkg:npm/@enormora/eslint-config-base@0.0.77",
63
- "pkg:npm/@enormora/eslint-config-react-jsx@0.0.76"
62
+ "pkg:npm/@enormora/eslint-config-base@0.0.83",
63
+ "pkg:npm/@enormora/eslint-config-react-jsx@0.0.78"
64
64
  ]
65
65
  }
66
66
  ]