@kitschpatrol/eslint-config 2.1.1 → 2.2.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.
@@ -1,3 +1,5 @@
1
1
  module.exports = {
2
2
  extends: ['@kitschpatrol/eslint-config'],
3
+ root: true,
4
+ // Overrides
3
5
  };
package/main.cjs CHANGED
@@ -1,15 +1,15 @@
1
- /* @type {import('eslint').Linter.Config} */
2
-
3
1
  const extendsPrefix = [
4
2
  'eslint:recommended',
5
3
  'plugin:n/recommended',
6
4
  'plugin:unicorn/recommended',
5
+ 'plugin:mdx/recommended', // Run over all files because it can lint comments
7
6
  'xo',
8
7
  'plugin:perfectionist/recommended-natural',
9
8
  ];
10
9
 
11
10
  const extendsSuffix = ['prettier'];
12
11
 
12
+ /* @type {import('eslint').Linter.Config} */
13
13
  const rulesConfig = {
14
14
  // Possible perfectionist conflicts
15
15
  '@typescript-eslint/adjacent-overload-signatures': 'off',
@@ -47,6 +47,12 @@ module.exports = {
47
47
  },
48
48
  extends: [...extendsPrefix, ...extendsSuffix],
49
49
  overrides: [
50
+ {
51
+ extends: [...extendsPrefix, ...extendsSuffix],
52
+ files: ['*.md', '*.mdx'],
53
+ parser: 'eslint-mdx',
54
+ rules: rulesConfig,
55
+ },
50
56
  {
51
57
  extends: [...extendsPrefix, 'plugin:@typescript-eslint/recommended', 'xo-typescript', ...extendsSuffix],
52
58
  files: ['*.ts', '*.tsx', '*.mts', '*.cts'],
@@ -99,4 +105,7 @@ module.exports = {
99
105
  },
100
106
  ],
101
107
  rules: rulesConfig,
108
+ settings: {
109
+ 'mdx/code-blocks': true,
110
+ },
102
111
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitschpatrol/eslint-config",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "type": "module",
5
5
  "description": "Eslint config for @kitschpatrol/shared-config",
6
6
  "repository": {
@@ -43,13 +43,15 @@
43
43
  "eslint-config-xo-typescript": "^1.0.1",
44
44
  "eslint-plugin-astro": "^0.30.0",
45
45
  "eslint-plugin-jsx-a11y": "^6.8.0",
46
+ "eslint-plugin-mdx": "^3.0.0",
46
47
  "eslint-plugin-n": "^16.4.0",
47
48
  "eslint-plugin-perfectionist": "^2.5.0",
48
49
  "eslint-plugin-svelte": "^2.35.1",
49
50
  "eslint-plugin-unicorn": "^49.0.0",
50
51
  "execa": "^8.0.1",
51
52
  "meow": "^12.1.1",
52
- "package-up": "^5.0.0"
53
+ "package-up": "^5.0.0",
54
+ "up": "^1.0.2"
53
55
  },
54
56
  "publishConfig": {
55
57
  "access": "public"