@@ -20,14 +20,25 @@ const compat = new FlatCompat({
2020 recommendedConfig : js . configs . recommended ,
2121 allConfig : js . configs . all
2222} ) ;
23- export default defineConfig ( [ {
24- extends : compat . extends (
25- "./.eslintrc-reset" , // Resets all rules before applying custom ones
26- "./.eslintrc-magento" , // Magento-specific coding standards
27- "./.eslintrc-jquery" , // jQuery-related ESLint Rules
28- "./.eslintrc-misc" , // Miscellaneous Rules
29- ) ,
30- plugins : {
31- "magento-coding-standard-eslint-plugin" : magentoCodingStandardEslintPlugin , // This is in flat config format (object)
23+ export default defineConfig ( [
24+ {
25+ extends : compat . extends (
26+ "./.eslintrc-reset" , // Resets all rules before applying custom ones
27+ "./.eslintrc-magento" , // Magento-specific coding standards
28+ "./.eslintrc-jquery" , // jQuery-related ESLint Rules
29+ "./.eslintrc-misc" , // Miscellaneous Rules
30+ ) ,
31+ plugins : {
32+ "magento-coding-standard-eslint-plugin" : magentoCodingStandardEslintPlugin , // This is in flat config format (object)
33+ }
34+ } ,
35+ {
36+ ignores : [ '**/eslint/rules/*.js' ] ,
37+ languageOptions : {
38+ sourceType : "script" // ensures non-module (classic script) parsing
39+ } ,
40+ rules : {
41+ strict : [ "error" , "function" ] // enforces "use strict" inside functions
42+ }
3243 }
33- } ] ) ;
44+ ] ) ;
0 commit comments