UNPKG

@addon24/eslint-config

Version:

ESLint configuration rules for WorldOfTextcraft projects - Centralized configuration for all project types

71 lines (67 loc) 2.78 kB
/** * Regexp Rules * * Performance und Sicherheit für reguläre Ausdrücke * Ursprünglich aus dem Image-Server */ export default { rules: { // Regexp-Regeln für Performance "regexp/confusing-quantifier": "error", "regexp/control-character-escape": "error", "regexp/negation": "error", "regexp/no-dupe-characters-character-class": "error", "regexp/no-dupe-disjunctions": "error", "regexp/no-empty-alternative": "error", "regexp/no-empty-capturing-group": "error", "regexp/no-empty-character-class": "error", "regexp/no-empty-group": "error", "regexp/no-empty-lookarounds-assertion": "error", "regexp/no-escape-backspace": "error", "regexp/no-invalid-regexp": "error", "regexp/no-lazy-ends": "error", "regexp/no-misleading-capturing-group": "error", "regexp/no-misleading-unicode-character": "error", "regexp/no-missing-g-flag": "error", "regexp/no-potentially-useless-backreference": "error", "regexp/no-super-linear-backtracking": "error", "regexp/no-super-linear-move": "error", "regexp/no-trivially-nested-assertion": "error", "regexp/no-trivially-nested-quantifier": "error", "regexp/no-unused-capturing-group": "error", "regexp/no-useless-assertions": "error", "regexp/no-useless-backreference": "error", "regexp/no-useless-character-class": "error", "regexp/no-useless-dollar-replacements": "error", "regexp/no-useless-escape": "error", "regexp/no-useless-flag": "error", "regexp/no-useless-lazy": "error", "regexp/no-useless-quantifier": "error", "regexp/no-useless-range": "error", "regexp/no-useless-two-nums-quantifier": "error", "regexp/no-zero-quantifier": "error", "regexp/optimal-lookaround-quantifier": "error", "regexp/optimal-quantifier-concatenation": "error", "regexp/prefer-lookaround": "error", "regexp/prefer-named-backreference": "error", "regexp/prefer-named-capture-group": "error", "regexp/prefer-named-replacement": "error", "regexp/prefer-plus-quantifier": "error", "regexp/prefer-predefined-assertion": "error", "regexp/prefer-quantifier": "error", "regexp/prefer-range": "error", "regexp/prefer-regexp-exec": "error", "regexp/prefer-regexp-test": "error", "regexp/prefer-result-array-groups": "error", "regexp/prefer-set-operation": "error", "regexp/prefer-star-quantifier": "error", "regexp/prefer-unicode-codepoint-escapes": "error", "regexp/require-unicode-regexp": "error", "regexp/simplify-set-operations": "error", "regexp/sort-alternatives": "error", "regexp/sort-character-class-elements": "error", "regexp/sort-flags": "error", "regexp/strict": "error", "regexp/use-ignore-case": "error", }, };