@schoero/configs 0.0.0-beta.18 → 0.0.0-beta.19

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.
Files changed (2) hide show
  1. package/eslint/jsx.js +25 -2
  2. package/package.json +1 -1
package/eslint/jsx.js CHANGED
@@ -2,6 +2,7 @@ import eslintPluginStylisticJS from "@stylistic/eslint-plugin-js";
2
2
  import eslintPluginStylisticJSX from "@stylistic/eslint-plugin-jsx";
3
3
  import eslintPluginStylisticTS from "@stylistic/eslint-plugin-ts";
4
4
  import eslintPluginTypeScript from "@typescript-eslint/eslint-plugin";
5
+ import eslintParserTypeScript from "@typescript-eslint/parser";
5
6
 
6
7
  import { namingConventions } from "./typescript.js";
7
8
 
@@ -21,11 +22,9 @@ export const jsx = [
21
22
  {
22
23
  files: ["**/*.{js,jsx,cjs,mjs,ts,tsx}"],
23
24
  plugins: {
24
- "eslint-plugin-typescript": eslintPluginTypeScript,
25
25
  "eslint-plugin-stylistic-jsx": eslintPluginStylisticJSX
26
26
  },
27
27
  rules: {
28
- // naming conventions
29
28
  "eslint-plugin-typescript/naming-convention": [
30
29
  "warn",
31
30
  ...namingConventions.filter(({ selector }) => selector !== "variable"),
@@ -62,5 +61,29 @@ export const jsx = [
62
61
  prop: "parens-new-line"
63
62
  }]
64
63
  }
64
+ },
65
+ {
66
+ files: ["**/*.{tsx}"],
67
+ plugins: {
68
+ "eslint-plugin-typescript": eslintPluginTypeScript
69
+ },
70
+ languageOptions: {
71
+ parser: eslintParserTypeScript,
72
+ parserOptions: {
73
+ project: "./tsconfig.json"
74
+ }
75
+ },
76
+ rules: {
77
+ // naming conventions
78
+ "eslint-plugin-typescript/naming-convention": [
79
+ "warn",
80
+ ...namingConventions.filter(({ selector }) => selector !== "variable"),
81
+ {
82
+ format: ["camelCase", "PascalCase", "UPPER_CASE"],
83
+ leadingUnderscore: "allow",
84
+ selector: "variable"
85
+ }
86
+ ]
87
+ }
65
88
  }
66
89
  ];
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.0-beta.18",
2
+ "version": "0.0.0-beta.19",
3
3
  "type": "module",
4
4
  "name": "@schoero/configs",
5
5
  "description": "",