@schoero/configs 0.0.0-beta.1 → 0.0.0-beta.10

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.
@@ -13,32 +13,32 @@
13
13
  {
14
14
  "addWords": false,
15
15
  "name": "css",
16
- "path": "./cspell/dict/css.txt"
16
+ "path": "./dict/css.txt"
17
17
  },
18
18
  {
19
19
  "addWords": false,
20
20
  "name": "html",
21
- "path": "./cspell/dict/html.txt"
21
+ "path": "./dict/html.txt"
22
22
  },
23
23
  {
24
24
  "addWords": false,
25
25
  "name": "names",
26
- "path": "./cspell/dict/names.txt"
26
+ "path": "./dict/names.txt"
27
27
  },
28
28
  {
29
29
  "addWords": false,
30
30
  "name": "npm",
31
- "path": "./cspell/dict/npm.txt"
31
+ "path": "./dict/npm.txt"
32
32
  },
33
33
  {
34
34
  "addWords": false,
35
35
  "name": "svg",
36
- "path": "./cspell/dict/svg.txt"
36
+ "path": "./dict/svg.txt"
37
37
  },
38
38
  {
39
39
  "addWords": false,
40
40
  "name": "vscode",
41
- "path": "./cspell/dict/vscode.txt"
41
+ "path": "./dict/vscode.txt"
42
42
  }
43
43
  ],
44
44
  "files": [
package/eslint/imports.js CHANGED
@@ -15,7 +15,6 @@ export const imports = [
15
15
  },
16
16
  rules: {
17
17
  "eslint-plugin-unused-imports/no-unused-imports": "warn",
18
- "eslint-plugin-unused-imports/no-unused-vars": "off",
19
18
 
20
19
  "eslint-plugin-import/first": "warn",
21
20
  "eslint-plugin-import/newline-after-import": ["warn", { count: 2 }],
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";
@@ -1,10 +1,7 @@
1
- import eslintPluginImport from "eslint-plugin-import";
2
1
  import eslintPluginJSDoc from "eslint-plugin-jsdoc";
3
- import eslintPluginSimpleImportSort from "eslint-plugin-simple-import-sort";
4
2
  import eslintPluginSortDestructureKeys from "eslint-plugin-sort-destructure-keys";
5
3
  import eslintPluginSortKeys from "eslint-plugin-sort-keys";
6
4
  import eslintPluginUnicorn from "eslint-plugin-unicorn";
7
- import eslintPluginUnusedImports from "eslint-plugin-unused-imports";
8
5
  import globals from "globals";
9
6
 
10
7
  import { imports } from "./imports.js";
@@ -22,10 +19,7 @@ export const javascript = [
22
19
  plugins: {
23
20
  "eslint-plugin-unicorn": eslintPluginUnicorn,
24
21
  "eslint-plugin-sort-destructure-keys": eslintPluginSortDestructureKeys,
25
- "eslint-plugin-unused-imports": eslintPluginUnusedImports,
26
22
  "eslint-plugin-sort-keys": eslintPluginSortKeys,
27
- "eslint-plugin-import": eslintPluginImport,
28
- "eslint-plugin-simple-import-sort": eslintPluginSimpleImportSort,
29
23
  "eslint-plugin-jsdoc": eslintPluginJSDoc
30
24
  },
31
25
  languageOptions: {
package/eslint/json.js CHANGED
@@ -5,11 +5,15 @@ export const json = [
5
5
  {
6
6
  files: ["**/*.{json,jsonc,json5}"],
7
7
  ignores: ["**/package-lock.json", "**/yarn.lock"],
8
- plugins: {
9
- "eslint-plugin-jsonc": eslintPluginJsonc
10
- },
11
8
  languageOptions: {
12
9
  parser: eslintPluginJsonc
10
+ }
11
+ },
12
+ {
13
+ files: ["**/*.{json,jsonc,json5}"],
14
+ ignores: ["**/package-lock.json", "**/yarn.lock"],
15
+ plugins: {
16
+ "eslint-plugin-jsonc": eslintPluginJsonc
13
17
  },
14
18
  rules: {
15
19
  "eslint-plugin-jsonc/array-bracket-spacing": ["warn", "never"],
@@ -37,9 +41,6 @@ export const json = [
37
41
  plugins: {
38
42
  "eslint-plugin-jsonc": eslintPluginJsonc
39
43
  },
40
- languageOptions: {
41
- parser: eslintPluginJsonc
42
- },
43
44
  rules: {
44
45
  "eslint-plugin-jsonc/sort-keys": "off"
45
46
  }
@@ -49,9 +50,6 @@ export const json = [
49
50
  plugins: {
50
51
  "eslint-plugin-jsonc": eslintPluginJsonc
51
52
  },
52
- languageOptions: {
53
- parser: eslintPluginJsonc
54
- },
55
53
  rules: {
56
54
  "eslint-plugin-jsonc/sort-keys": [
57
55
  "warn",
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"],
@@ -7,11 +7,7 @@ import eslintPluginUnusedImports from "eslint-plugin-unused-imports";
7
7
  export const markdown = [
8
8
  {
9
9
  files: ["**/*.{md,mdx}"],
10
- plugins: {
11
- "eslint-plugin-markdown": eslintPluginMarkdown
12
- },
13
10
  processor: eslintPluginMarkdown.processors.markdown
14
-
15
11
  },
16
12
  {
17
13
  files: ["**/*.{md,mdx}/*.{ts,tsx,mjs,cjs,js,jsx}"],
@@ -20,7 +16,6 @@ export const markdown = [
20
16
  "eslint-plugin-markdown": eslintPluginMarkdown,
21
17
  "eslint-plugin-unused-imports": eslintPluginUnusedImports
22
18
  },
23
- processor: eslintPluginMarkdown.processors.markdown,
24
19
  rules: {
25
20
  "eslint-plugin-import/newline-after-import": ["warn", { count: 1 }],
26
21
  "eslint-plugin-unused-imports/no-unused-imports": "off"
@@ -1,9 +1,6 @@
1
- import globals from "globals";
2
-
3
1
  import eslintPluginStylisticJS from "@stylistic/eslint-plugin-js";
4
2
  import eslintPluginStylisticPlus from "@stylistic/eslint-plugin-plus";
5
3
  import eslintPluginStylisticTS from "@stylistic/eslint-plugin-ts";
6
- import eslintParserTypeScript from "@typescript-eslint/parser";
7
4
 
8
5
  /** @type { import("eslint").Linter.FlatConfig[] } */
9
6
  export const stylistic = [
@@ -13,14 +10,6 @@ export const stylistic = [
13
10
  "eslint-plugin-stylistic-js": eslintPluginStylisticJS,
14
11
  "eslint-plugin-stylistic-plus": eslintPluginStylisticPlus
15
12
  },
16
- languageOptions: {
17
- globals: {
18
- ...globals.browser,
19
- ...globals.node,
20
- ...globals.builtin,
21
- ...globals.worker
22
- }
23
- },
24
13
  rules: {
25
14
 
26
15
  // array
@@ -155,18 +144,6 @@ export const stylistic = [
155
144
  "eslint-plugin-stylistic-ts": eslintPluginStylisticTS,
156
145
  "eslint-plugin-stylistic-js": eslintPluginStylisticJS
157
146
  },
158
- languageOptions: {
159
- parser: eslintParserTypeScript,
160
- parserOptions: {
161
- project: "./tsconfig.json"
162
- },
163
- globals: {
164
- ...globals.browser,
165
- ...globals.node,
166
- ...globals.builtin,
167
- ...globals.worker
168
- }
169
- },
170
147
  rules: {
171
148
 
172
149
  // class
@@ -20,7 +20,6 @@ export const tailwind = [
20
20
  "eslint-plugin-tailwindcss/no-contradicting-classname": ["warn", tailwindOptions],
21
21
 
22
22
  "eslint-plugin-readable-tailwind/multiline": ["warn", { ...tailwindOptions, printWidth: 119 }],
23
- "eslint-plugin-readable-tailwind/jsx-attribute-expression": "warn",
24
23
  "eslint-plugin-readable-tailwind/no-unnecessary-whitespace": ["warn", { ...tailwindOptions }],
25
24
  "eslint-plugin-readable-tailwind/sort-classes": ["warn", { ...tailwindOptions }]
26
25
  }
@@ -17,12 +17,17 @@ export const typescript = [
17
17
 
18
18
  // typescript
19
19
  {
20
+
20
21
  languageOptions: {
21
22
  parser: eslintParserTypeScript,
22
23
  parserOptions: {
23
24
  project: "./tsconfig.json"
24
25
  }
25
26
  },
27
+ files: ["**/*.{ts,tsx}"]
28
+ },
29
+
30
+ {
26
31
  files: ["**/*.{ts,tsx}"],
27
32
  plugins: {
28
33
  "eslint-plugin-import": eslintPluginImport,
@@ -146,8 +151,7 @@ export const typescript = [
146
151
  ],
147
152
 
148
153
  // naming conventions
149
- "eslint-plugin-typescript/naming-convention": [
150
- "warn",
154
+ "eslint-plugin-typescript/naming-convention": ["warn",
151
155
  {
152
156
  filter: {
153
157
  match: false,
@@ -201,8 +205,12 @@ export const typescript = [
201
205
  format: ["PascalCase"],
202
206
  selector: "class",
203
207
  trailingUnderscore: "allow"
204
- }
205
- ],
208
+ },
209
+ {
210
+ format: ["PascalCase"],
211
+ selector: "variable",
212
+ trailingUnderscore: "allow"
213
+ }],
206
214
  "eslint-plugin-typescript/no-base-to-string": "warn",
207
215
 
208
216
  "eslint-plugin-typescript/no-confusing-void-expression": ["warn", {
@@ -301,5 +309,4 @@ export const typescript = [
301
309
  ...eslintPluginTypeScript.configs["disable-type-checked"].rules
302
310
  }
303
311
  }
304
-
305
312
  ];
package/eslint/yaml.js CHANGED
@@ -6,11 +6,15 @@ export const yaml = [
6
6
  {
7
7
  files: ["**/*.{yaml,yml}"],
8
8
  ignores: ["pnpm-lock.yaml"],
9
- plugins: {
10
- "eslint-plugin-yml": eslintPluginYml
11
- },
12
9
  languageOptions: {
13
10
  parser: eslintParserYaml
11
+ }
12
+ },
13
+ {
14
+ files: ["**/*.{yaml,yml}"],
15
+ ignores: ["pnpm-lock.yaml"],
16
+ plugins: {
17
+ "eslint-plugin-yml": eslintPluginYml
14
18
  },
15
19
  rules: {
16
20
  "eslint-plugin-yml/quotes": ["warn", { avoidEscape: true, prefer: "double" }],
@@ -26,9 +30,6 @@ export const yaml = [
26
30
  plugins: {
27
31
  "eslint-plugin-yml": eslintPluginYml
28
32
  },
29
- languageOptions: {
30
- parser: eslintParserYaml
31
- },
32
33
  rules: {
33
34
  "eslint-plugin-yml/sort-keys": [
34
35
  "warn",
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
- "version": "0.0.0-beta.1",
2
+ "version": "0.0.0-beta.10",
3
3
  "type": "module",
4
4
  "name": "@schoero/configs",
5
5
  "description": "",
6
6
  "license": "MIT",
7
7
  "author": "Roger Schönbächler",
8
8
  "exports": {
9
- "./changelogen": "./changelogen/changelogen.js",
9
+ "./changelogen": "./changelogen/changelog.js",
10
10
  "./cspell": "./cspell/cspell.json",
11
11
  "./eslint": "./eslint/index.js",
12
12
  "./markdownlint": "./markdownlint/markdownlint.jsonc",
@@ -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": {