chore: refactor eslint globals
Michael Smith committed
Jan 14, 2026 at 08:06 UTC
a2e92d7ac670bb8615334eb5304f3a0cceacbfb4
1 file changed
+13
-13
.eslintrc.js
+13
-13
@@ -1,5 +1,3 @@
1
-const {getGlobals} = require('eslint-plugin-mdx')
2
-
1
module.exports = {
2
root: true,
3
ignorePatterns: ['.cache/', 'public/'],
@@ -40,23 +38,25 @@ module.exports = {
38
parserOptions: {
39
sourceType: 'module',
40
},
43
- globals: getGlobals([
44
- 'Index',
45
- 'Note',
46
- 'Prompt',
47
- 'Screenshot',
48
- 'Link',
49
- 'YouTube',
50
- 'DataTable',
51
- 'InlineCode',
52
- 'Strikethrough',
53
- ]),
41
+ globals: {
42
+ Index: 'readonly',
43
+ Note: 'readonly',
44
+ Prompt: 'readonly',
45
+ Screenshot: 'readonly',
46
+ Link: 'readonly',
47
+ YouTube: 'readonly',
48
+ DataTable: 'readonly',
49
+ InlineCode: 'readonly',
50
+ Strikethrough: 'readonly',
51
+ CliLink: 'readonly',
52
+ },
53
settings: {
54
'import/resolver': 'webpack',
55
},
56
rules: {
57
'no-irregular-whitespace': 'off',
58
'react/no-unescaped-entities': 'off',
59
+ 'react/jsx-key': 'off',
60
},
61
},
62
{