microsoft/hve-core
Publicmirrored from https://github.com/microsoft/hve-coreAvailable
docs/docusaurus/eslint.config.mjs
28lines · modecode
| 1 | import jsxA11y from 'eslint-plugin-jsx-a11y'; |
| 2 | import tsParser from '@typescript-eslint/parser'; |
| 3 | |
| 4 | export default [ |
| 5 | { |
| 6 | ignores: ['build/**', '.docusaurus/**', 'coverage/**', 'static/**'], |
| 7 | }, |
| 8 | { |
| 9 | files: ['src/**/*.{ts,tsx,js,jsx}'], |
| 10 | ...jsxA11y.flatConfigs.recommended, |
| 11 | languageOptions: { |
| 12 | ...jsxA11y.flatConfigs.recommended.languageOptions, |
| 13 | parser: tsParser, |
| 14 | parserOptions: { |
| 15 | ecmaFeatures: { jsx: true }, |
| 16 | }, |
| 17 | }, |
| 18 | }, |
| 19 | { |
| 20 | files: ['e2e/**/*.{ts,tsx}', '*.config.{ts,js,mjs}', 'sidebars.js'], |
| 21 | languageOptions: { |
| 22 | parser: tsParser, |
| 23 | parserOptions: { |
| 24 | ecmaFeatures: { jsx: true }, |
| 25 | }, |
| 26 | }, |
| 27 | }, |
| 28 | ]; |
| 29 | |