Skip to content

Commit 4d17750

Browse files
committed
AC-13683::Investigate latest patch version of grunt-eslint
1 parent efb2a17 commit 4d17750

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

eslint/eslint.config.mjs

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/**
2+
* ESLint Configuration for Magento Project
3+
*
4+
* This configuration extends Magento, jQuery, and reset ESLint rules,
5+
* while enforcing Magento coding standards using the `magento-coding-standard-eslint-plugin`.
6+
* It uses FlatCompat to handle multiple config files in a modular way.
7+
*/
8+
19
import { defineConfig } from "eslint/config";
210
import magentoCodingStandardEslintPlugin from "magento-coding-standard-eslint-plugin";
311
import path from "node:path";
@@ -14,10 +22,10 @@ const compat = new FlatCompat({
1422
});
1523
export default defineConfig([{
1624
extends: compat.extends(
17-
"./.eslintrc-reset",
18-
"./.eslintrc-magento",
19-
"./.eslintrc-jquery",
20-
"./.eslintrc-misc",
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
2129
),
2230
plugins: {
2331
"magento-coding-standard-eslint-plugin": magentoCodingStandardEslintPlugin, // This is in flat config format (object)

eslint/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// Import individual rule files as modules
1+
/**
2+
* ESLint Plugin for jQuery Deprecation Rules
3+
* This module aggregates individual jQuery-related rules into a single .
4+
*/
25
import jqueryNoAndSelf from './rules/jquery-no-andSelf.js';
36
import jqueryNoBindUnbind from './rules/jquery-no-bind-unbind.js';
47
import jqueryNoDelegateUndelegate from './rules/jquery-no-delegate-undelegate.js';

0 commit comments

Comments
 (0)