Skip to content

Commit 411874f

Browse files
authored
Merge pull request #8284 from sylvestre/moz-fluent
Use mozilla fluent linter (and remove mine)
2 parents eefe70f + eaa6d22 commit 411874f

2 files changed

Lines changed: 33 additions & 3 deletions

File tree

.github/fluent_linter_config.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
ID01:
3+
enabled: true
4+
exclusions:
5+
messages: []
6+
files: []
7+
ID02:
8+
enabled: true
9+
min_length: 7
10+
VC:
11+
disabled: true
12+
# Disable: # TE01: single quote instead of apostrophe for genitive (foo's)
13+
TE01:
14+
enabled: false
15+
# TE03: single quotes ('foo')
16+
TE03:
17+
enabled: false
18+
# TE04: Double-quoted strings should use Unicode " instead of "foo".
19+
TE04:
20+
enabled: false
21+
# Disable: TE05: 3 dots for ellipsis ("...")
22+
TE05:
23+
enabled: false
24+
# Should be fixed
25+
VC01:
26+
disabled: true
27+
ID03:
28+
enabled: true

.pre-commit-config.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ repos:
1919
args: [ --fix=lf ]
2020
- id: trailing-whitespace
2121

22-
- repo: https://github.com/uutils/pre-commit-fluent-hook
23-
rev: v0.0.1
22+
- repo: https://github.com/mozilla-l10n/moz-fluent-linter
23+
rev: v0.4.8
2424
hooks:
25-
- id: check-fluent
25+
- id: fluent_linter
26+
files: \.ftl$
27+
args: [--config, .github/fluent_linter_config.yml, src/uu/]
2628

2729
- repo: local
2830
hooks:

0 commit comments

Comments
 (0)