diff --git a/build/.eslintrc b/build/.eslintrc index 175a32adb3034..2d032f4222efe 100644 --- a/build/.eslintrc +++ b/build/.eslintrc @@ -1,13 +1,13 @@ { "extends": [ - // Extend the airbnb eslint config - "airbnb-base", - // Vue - "plugin:vue/vue3-recommended" + // Extend the airbnb eslint config + "airbnb-base", + // Vue + "plugin:vue/vue3-recommended" ], "parser": "vue-eslint-parser", "parserOptions": { - "sourceType": "module" + "sourceType": "module" }, // ESLint will not look in parent folders for eslint configs "root": true, @@ -20,8 +20,8 @@ // Additional global variables your script accesses during execution "globals": { "Joomla": true, - "MediaManager" : true, - "bootstrap": true + "MediaManager" : true, + "bootstrap": true }, // Rule overrides "rules": { @@ -33,7 +33,19 @@ "strict": [0], // Disable alert rule till we have a CE in place "no-alert": 0, - // Allow extensions on imports - "import/extensions": 0 + // Max length to match the .php files + "max-len": ["error", + 150, + 2, + { + "ignoreUrls": true, + "ignoreComments": false, + "ignoreRegExpLiterals": true, + "ignoreStrings": true, + "ignoreTemplateLiterals": true + } + ], + // Allow extensions on imports + "import/extensions": 0 } }