@kitschpatrol/eslint-config 3.1.0 → 4.1.0

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.
@@ -6,9 +6,9 @@ const extendsPrefix = [
6
6
  'xo',
7
7
  'plugin:perfectionist/recommended-natural',
8
8
  'prettier', // Needed here as well for files not caught by overrides
9
- ];
10
- const extendsTypescript = ['plugin:@typescript-eslint/recommended-type-checked', 'xo-typescript'];
11
- const extendsSuffix = ['prettier'];
9
+ ]
10
+ const extendsTypescript = ['plugin:@typescript-eslint/recommended-type-checked', 'xo-typescript']
11
+ const extendsSuffix = ['prettier']
12
12
 
13
13
  const globalRulesPrefix = {
14
14
  'max-params': 'off',
@@ -68,7 +68,7 @@ const globalRulesPrefix = {
68
68
  'import/order': 'off',
69
69
  'react/jsx-sort-props': 'off',
70
70
  'sort-imports': 'off',
71
- };
71
+ }
72
72
 
73
73
  const globalRulesTypescript = {
74
74
  '@typescript-eslint/no-unused-vars': [
@@ -83,7 +83,7 @@ const globalRulesTypescript = {
83
83
  // https://typescript-eslint.io/linting/troubleshooting/#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
84
84
  'no-undef': 'off',
85
85
  'no-unused-vars': 'off',
86
- };
86
+ }
87
87
 
88
88
  /* @type {import('eslint').Linter.Config} */
89
89
  module.exports = {
@@ -236,4 +236,4 @@ module.exports = {
236
236
  },
237
237
  },
238
238
  ],
239
- };
239
+ }
@@ -3,4 +3,4 @@ module.exports = {
3
3
  extends: ['@kitschpatrol/eslint-config'],
4
4
  root: true,
5
5
  // Overrides
6
- };
6
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "recommendations": ["dbaeumer.vscode-eslint"]
3
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "editor.codeActionsOnSave": {
3
+ "source.fixAll": "explicit"
4
+ },
5
+ "eslint.enable": true,
6
+ "eslint.validate": [
7
+ "javascript",
8
+ "javascriptreact",
9
+ "typescript",
10
+ "typescriptreact",
11
+ "svelte",
12
+ "astro",
13
+ "markdown",
14
+ "mdx"
15
+ ]
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/eslint-config",
3
- "version": "3.1.0",
3
+ "version": "4.1.0",
4
4
  "type": "module",
5
5
  "description": "Eslint config for @kitschpatrol/shared-config",
6
6
  "repository": {
@@ -25,7 +25,7 @@
25
25
  "bin": {
26
26
  "eslint-config": "bin/cli.js"
27
27
  },
28
- "main": "./main.cjs",
28
+ "main": "./eslint.config.cjs",
29
29
  "files": [
30
30
  "bin/*",
31
31
  "init/*"
@@ -48,7 +48,8 @@
48
48
  "eslint-plugin-perfectionist": "^2.5.0",
49
49
  "eslint-plugin-svelte": "^2.35.1",
50
50
  "eslint-plugin-unicorn": "^49.0.0",
51
- "execa": "^8.0.1"
51
+ "execa": "^8.0.1",
52
+ "fs-extra": "^11.2.0"
52
53
  },
53
54
  "publishConfig": {
54
55
  "access": "public"