Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | 1x | 'use strict'
// --- 📝 MDX files --------------------------
// 📝: https://github.com/mdx-js/eslint-mdx/blob/master/packages/eslint-plugin-mdx/src/configs/recommended.ts
module.exports = {
files: ['*.mdx'],
parser: 'eslint-mdx',
plugins: ['mdx'],
processor: 'mdx/remark',
globals: {
React: 'readonly',
},
rules: {
'lines-between-class-members': 'off',
'no-unused-expressions': 'off',
'react/react-in-jsx-scope': 'off',
'react/jsx-no-undef': ['error', { allowGlobals: true }],
// HTML style comments are not valid in MDX
'mdx/no-jsx-html-comments': 'error',
// Not sure what this is...
'mdx/no-unused-expressions': 'error',
// Integration with remark plugins
'mdx/remark': 'error',
},
}
|