@schoero/configs 0.0.0-beta.6 → 0.0.0-beta.8

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/eslint/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ignore } from "./ignore.js";
2
- import { jsdoc } from "./jsdoc.js";
3
2
  import { json } from "./json.js";
4
3
  import { markdown } from "./markdown.js";
5
4
  import { typescript } from "./typescript.js";
@@ -9,7 +8,6 @@ import { yaml } from "./yaml.js";
9
8
 
10
9
  export {
11
10
  ignore,
12
- jsdoc,
13
11
  json,
14
12
  markdown,
15
13
  typescript,
@@ -21,13 +19,13 @@ export default [
21
19
  ...ignore,
22
20
  ...json,
23
21
  ...yaml,
24
- ...jsdoc,
25
- ...vitest,
26
22
  ...typescript,
23
+ ...vitest,
27
24
  ...markdown
28
25
  ];
29
26
 
30
27
  export { imports } from "./imports.js";
31
28
  export { javascript } from "./javascript.js";
29
+ export { jsdoc } from "./jsdoc.js";
32
30
  export { jsx } from "./jsx.js";
33
31
  export { tailwind } from "./tailwind.js";
package/eslint/jsx.js CHANGED
@@ -1,13 +1,22 @@
1
1
  import eslintPluginStylisticJSX from "@stylistic/eslint-plugin-jsx";
2
+ import eslintPluginTypeScript from "@typescript-eslint/eslint-plugin";
2
3
 
3
4
  /** @type {import("eslint").Linter.FlatConfig[]} */
4
5
  export const jsx = [
5
6
  {
6
7
  files: ["**/*.{js,jsx,cjs,mjs,ts,tsx}"],
7
8
  plugins: {
9
+ "eslint-plugin-typescript": eslintPluginTypeScript,
8
10
  "eslint-plugin-stylistic-jsx": eslintPluginStylisticJSX
9
11
  },
10
12
  rules: {
13
+ // naming conventions
14
+ "eslint-plugin-typescript/naming-convention": ["warn", {
15
+ format: ["PascalCase"],
16
+ selector: "variable",
17
+ trailingUnderscore: "allow"
18
+ }],
19
+
11
20
  "eslint-plugin-stylistic-jsx/jsx-curly-brace-presence": ["warn", { children: "never", propElementValues: "always", props: "never" }],
12
21
  "eslint-plugin-stylistic-jsx/jsx-child-element-spacing": "warn",
13
22
  "eslint-plugin-stylistic-jsx/jsx-closing-bracket-location": ["warn", "line-aligned"],
@@ -151,8 +151,7 @@ export const typescript = [
151
151
  ],
152
152
 
153
153
  // naming conventions
154
- "eslint-plugin-typescript/naming-convention": [
155
- "warn",
154
+ "eslint-plugin-typescript/naming-convention": ["warn",
156
155
  {
157
156
  filter: {
158
157
  match: false,
@@ -206,8 +205,12 @@ export const typescript = [
206
205
  format: ["PascalCase"],
207
206
  selector: "class",
208
207
  trailingUnderscore: "allow"
209
- }
210
- ],
208
+ },
209
+ {
210
+ format: ["PascalCase"],
211
+ selector: "variable",
212
+ trailingUnderscore: "allow"
213
+ }],
211
214
  "eslint-plugin-typescript/no-base-to-string": "warn",
212
215
 
213
216
  "eslint-plugin-typescript/no-confusing-void-expression": ["warn", {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.0-beta.6",
2
+ "version": "0.0.0-beta.8",
3
3
  "type": "module",
4
4
  "name": "@schoero/configs",
5
5
  "description": "",
@@ -61,7 +61,7 @@
61
61
  "@stylistic/eslint-plugin-ts": "^1.5.1",
62
62
  "@typescript-eslint/eslint-plugin": "^6.15.0",
63
63
  "@typescript-eslint/parser": "^6.15.0",
64
- "cspell-lib": "^8.1.3",
64
+ "cspell-lib": "^8.2.1",
65
65
  "eslint-plugin-import": "npm:eslint-plugin-i@2.28.1",
66
66
  "eslint-plugin-import-newlines": "^1.3.4",
67
67
  "eslint-plugin-jsdoc": "^46.9.1",
@@ -85,11 +85,11 @@
85
85
  "devDependencies": {
86
86
  "@types/node": "^20.10.5",
87
87
  "changelogen": "^0.5.5",
88
- "cspell": "^8.1.3",
88
+ "cspell": "^8.2.1",
89
89
  "eslint": "^8.56.0",
90
90
  "markdownlint": "^0.32.1",
91
91
  "vite": "^5.0.10",
92
- "vitest": "^1.0.4"
92
+ "vitest": "^1.1.0"
93
93
  },
94
94
  "keywords": [],
95
95
  "optionalPeerDependencies": {