File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 11import reactPlugin from '@eslint-react/eslint-plugin' ;
22import a11yPlugin from 'eslint-plugin-jsx-a11y' ;
33import hooksPlugin from 'eslint-plugin-react-hooks' ;
4+ import { parser } from 'typescript-eslint' ;
45
56import { predicate } from '../utils/conditions.mjs' ;
7+ import { globs } from '../utils/globs.mjs' ;
68
79/** @return { import('eslint').Linter.Config } */
810function react ( options = { } ) {
@@ -14,6 +16,13 @@ function react(options = {}) {
1416 'react-hooks' : hooksPlugin ,
1517 'jsx-a11y' : a11yPlugin ,
1618 } ,
19+ ...predicate ( projectService , {
20+ languageOptions : {
21+ parser,
22+ parserOptions : { ...options . typescript } ,
23+ } ,
24+ ignores : [ globs . js , globs . jsx ] ,
25+ } ) ,
1726 settings : {
1827 'react' : {
1928 pragma : 'React' ,
You can’t perform that action at this time.
0 commit comments