Skip to content

Commit

Permalink
Fix JS template for fuzzy rules and ignore generated file
Browse files Browse the repository at this point in the history
- Fix the JS template to be as much in-line with prettier requirement
- Ignore however the generated file, we do not care about remaining
  issues (lines too long) / it would be hard to fix
  • Loading branch information
benoit74 committed Apr 12, 2024
1 parent b180c13 commit fcfc8aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions javascript/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/fuzzyRules.js
5 changes: 3 additions & 2 deletions rules/generate_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
export const fuzzyRules = [
{% for rule in FUZZY_RULES %} {
match: "{{ rule['match'] }}",
replace: "{{ rule['replace'] }}",
match: '{{ rule['match'] }}',
replace: '{{ rule['replace'] }}',
},
{% endfor %}
];
"""

js_parent = Path(__file__).parent.parent / "javascript" / "src"
Expand Down

0 comments on commit fcfc8aa

Please sign in to comment.