Currently, the lexical version diff component is completely unstyled, as the scss was never included in our css bundle. This PR ensures that the diff component scss is included in our css bundle
37 lines
782 B
JavaScript
37 lines
782 B
JavaScript
import lexical from '@lexical/eslint-plugin'
|
|
import { rootEslintConfig, rootParserOptions } from '../../eslint.config.js'
|
|
import reactCompiler from 'eslint-plugin-react-compiler'
|
|
const { rules } = reactCompiler
|
|
|
|
/** @typedef {import('eslint').Linter.Config} Config */
|
|
|
|
/** @type {Config[]} */
|
|
export const index = [
|
|
...rootEslintConfig,
|
|
{
|
|
ignores: ['bundle.js'],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
...rootParserOptions,
|
|
tsconfigRootDir: import.meta.dirname,
|
|
},
|
|
},
|
|
plugins: {
|
|
'@lexical': lexical,
|
|
},
|
|
rules: lexical.configs.recommended.rules,
|
|
},
|
|
{
|
|
plugins: {
|
|
'react-compiler': {
|
|
rules,
|
|
},
|
|
},
|
|
rules: {
|
|
'react-compiler/react-compiler': 'error',
|
|
},
|
|
},
|
|
]
|
|
|
|
export default index
|