1- import jasmine from " eslint-plugin-jasmine" ;
2- import globals from " globals" ;
3- import path from " node:path" ;
4- import { fileURLToPath } from " node:url" ;
5- import js from " @eslint/js" ;
6- import { FlatCompat } from " @eslint/eslintrc" ;
1+ import jasmine from ' eslint-plugin-jasmine' ;
2+ import globals from ' globals' ;
3+ import path from ' node:path' ;
4+ import { fileURLToPath } from ' node:url' ;
5+ import js from ' @eslint/js' ;
6+ import { FlatCompat } from ' @eslint/eslintrc' ;
77
88const __filename = fileURLToPath ( import . meta. url ) ;
99const __dirname = path . dirname ( __filename ) ;
@@ -14,32 +14,51 @@ const compat = new FlatCompat({
1414} ) ;
1515
1616export default [
17- ...compat . extends ( "eslint:recommended" , "plugin:jasmine/recommended" ) ,
17+ ...compat . extends (
18+ 'eslint:recommended' ,
19+ 'plugin:react/recommended' ,
20+ 'plugin:jasmine/recommended'
21+ ) ,
1822 {
1923 ignores : [
20- " src/lib/vendor/" ,
21- " node_modules/" ,
22- " dist/" ,
23- ]
24+ ' src/lib/vendor/' ,
25+ ' node_modules/' ,
26+ ' dist/' ,
27+ ] ,
2428 } ,
2529 {
30+ files : [ '**/*.{js,jsx,mjs}' ] ,
2631 plugins : {
2732 jasmine,
2833 } ,
2934
35+ settings : {
36+ react : {
37+ version : 'detect' ,
38+ } ,
39+ } ,
40+
3041 languageOptions : {
3142 globals : {
3243 ...globals . browser ,
3344 ...globals . jasmine ,
3445 ...globals . node ,
35- Atomics : " readonly" ,
36- SharedArrayBuffer : " readonly" ,
46+ Atomics : ' readonly' ,
47+ SharedArrayBuffer : ' readonly' ,
3748 } ,
3849
39- ecmaVersion : "latest" ,
40- sourceType : "module" ,
50+ ecmaVersion : 'latest' ,
51+ sourceType : 'module' ,
52+
53+ parserOptions : {
54+ ecmaFeatures : {
55+ jsx : true ,
56+ } ,
57+ } ,
4158 } ,
4259
43- rules : { } ,
60+ rules : {
61+ 'react/prop-types' : 'off' ,
62+ } ,
4463 }
4564] ;
0 commit comments