@ocavue/eslint-config 1.11.1 → 1.11.2

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 +1 @@
1
- {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/markdown.js"],"names":[],"mappings":"AAMA,sGAuCC"}
1
+ {"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/markdown.js"],"names":[],"mappings":"AAMA,sGA8CC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocavue/eslint-config",
3
3
  "type": "module",
4
- "version": "1.11.1",
4
+ "version": "1.11.2",
5
5
  "packageManager": "pnpm@8.15.9",
6
6
  "description": "",
7
7
  "author": "ocavue <ocavue@gmail.com>",
package/src/markdown.js CHANGED
@@ -18,6 +18,8 @@ export function markdown() {
18
18
  },
19
19
  },
20
20
  rules: {
21
+ // Disable type-aware TypeScript rules, because the code blocks are not
22
+ // part of a compilable `tsconfig.json` project.
21
23
  '@typescript-eslint/no-redeclare': 'off',
22
24
  '@typescript-eslint/no-unused-vars': 'off',
23
25
  '@typescript-eslint/no-use-before-define': 'off',
@@ -35,6 +37,11 @@ export function markdown() {
35
37
  '@typescript-eslint/require-await': 'off',
36
38
  'deprecation/deprecation': 'off',
37
39
 
40
+ // Disable some import rules because they are not working well with
41
+ // twoslash ---cut--- imports.
42
+ 'import/first': 'off',
43
+ 'import/order': 'off',
44
+
38
45
  'no-alert': 'off',
39
46
  'no-console': 'off',
40
47
  'no-restricted-imports': 'off',