Skip to content

Commit b0837bf

Browse files
authored
Add Prettier as formatter & apply its code style (#591)
* chore: Add & configure Prettier * style: Apply Prettier styling
1 parent d101b90 commit b0837bf

File tree

132 files changed

+4573
-4052
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+4573
-4052
lines changed

.eslintrc.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ overrides:
1111
- files: ["*/src/*.js"]
1212
extends:
1313
- ./eslint-base.yaml
14+
- prettier
1415

1516
- files: ["*/src/*.ts"]
1617
parser: "@typescript-eslint/parser"
@@ -21,6 +22,7 @@ overrides:
2122
- ./eslint-base.yaml
2223
- plugin:@typescript-eslint/recommended
2324
- plugin:@typescript-eslint/recommended-requiring-type-checking
25+
- prettier
2426
rules:
2527
complexity: off
2628
prefer-const: off

.prettierignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
node_modules
2+
html
3+
.*
4+
5+
coverage/
6+
dist/
7+
esm/
8+
/fluent-*/index.js
9+
/tools/**/*.ftl
10+
/tools/**/*.json
11+
12+
fixtures/
13+
fixtures_*/

CODE_OF_CONDUCT.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@ This repository is governed by Mozilla's code of conduct and etiquette
44
guidelines. For more details, please read the [Mozilla Community Participation
55
Guidelines][].
66

7-
87
## How to Report
98

109
For more information on how to report violations of the Community Participation
1110
Guidelines, please read our [How to Report][] page.
1211

13-
14-
[Mozilla Community Participation Guidelines]: https://www.mozilla.org/about/governance/policies/participation/
15-
[How to Report]: https://www.mozilla.org/about/governance/policies/participation/reporting/
12+
[mozilla community participation guidelines]: https://www.mozilla.org/about/governance/policies/participation/
13+
[how to report]: https://www.mozilla.org/about/governance/policies/participation/reporting/

README.md

+23-34
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,30 @@
1-
Project Fluent
2-
==============
1+
# Project Fluent
32

43
Fluent.js is a JavaScript implementation of Project Fluent, a localization
54
framework designed to unleash the expressive power of the natural language.
65

76
Project Fluent keeps simple things simple and makes complex things possible.
8-
The syntax used for describing translations is easy to read and understand. At
7+
The syntax used for describing translations is easy to read and understand. At
98
the same time it allows, when necessary, to represent complex concepts from
109
natural languages like gender, plurals, conjugations, and others.
1110

12-
13-
Packages
14-
--------
11+
## Packages
1512

1613
Fluent.js consists of a set of packages which have different use-cases and can
1714
be installed independently of each other.
1815

19-
- [@fluent/bundle](https://github.com/projectfluent/fluent.js/tree/master/fluent-bundle)
20-
- [@fluent/dedent](https://github.com/projectfluent/fluent.js/tree/master/fluent-dedent)
21-
- [@fluent/dom](https://github.com/projectfluent/fluent.js/tree/master/fluent-dom)
22-
- [@fluent/langneg](https://github.com/projectfluent/fluent.js/tree/master/fluent-langneg)
23-
- [@fluent/react](https://github.com/projectfluent/fluent.js/tree/master/fluent-react)
24-
- [@fluent/sequence](https://github.com/projectfluent/fluent.js/tree/master/fluent-sequence)
25-
- [@fluent/syntax](https://github.com/projectfluent/fluent.js/tree/master/fluent-syntax)
16+
- [@fluent/bundle](https://github.com/projectfluent/fluent.js/tree/master/fluent-bundle)
17+
- [@fluent/dedent](https://github.com/projectfluent/fluent.js/tree/master/fluent-dedent)
18+
- [@fluent/dom](https://github.com/projectfluent/fluent.js/tree/master/fluent-dom)
19+
- [@fluent/langneg](https://github.com/projectfluent/fluent.js/tree/master/fluent-langneg)
20+
- [@fluent/react](https://github.com/projectfluent/fluent.js/tree/master/fluent-react)
21+
- [@fluent/sequence](https://github.com/projectfluent/fluent.js/tree/master/fluent-sequence)
22+
- [@fluent/syntax](https://github.com/projectfluent/fluent.js/tree/master/fluent-syntax)
2623

2724
You can install each of the above packages via `npm`, e.g. `npm install @fluent/react`.
2825
See the end of this `README` for instructions on how to build `fluent.js` locally.
2926

30-
31-
Learn the FTL syntax
32-
--------------------
27+
## Learn the FTL syntax
3328

3429
FTL is a localization file format used for describing translation resources.
3530
FTL stands for _Fluent Translation List_.
@@ -40,34 +35,28 @@ and others.
4035

4136
hello-user = Hello, { $username }!
4237

43-
[Read the Fluent Syntax Guide][] in order to learn more about the syntax. If
38+
[Read the Fluent Syntax Guide][] in order to learn more about the syntax. If
4439
you're a tool author you may be interested in the formal [EBNF grammar][].
4540

46-
[Read the Fluent Syntax Guide]: https://projectfluent.org/fluent/guide/
47-
[EBNF grammar]: https://github.com/projectfluent/fluent/tree/master/spec
48-
41+
[read the fluent syntax guide]: https://projectfluent.org/fluent/guide/
42+
[ebnf grammar]: https://github.com/projectfluent/fluent/tree/master/spec
4943

50-
Discuss
51-
-------
44+
## Discuss
5245

53-
We'd love to hear your thoughts on Project Fluent! Whether you're a localizer looking
54-
for a better way to express yourself in your language, or a developer trying to
55-
make your app localizable and multilingual, or a hacker looking for a project
46+
We'd love to hear your thoughts on Project Fluent! Whether you're a localizer looking
47+
for a better way to express yourself in your language, or a developer trying to
48+
make your app localizable and multilingual, or a hacker looking for a project
5649
to contribute to, please do get in touch!
5750

58-
- Discourse: https://discourse.mozilla.org/c/fluent
51+
- Discourse: https://discourse.mozilla.org/c/fluent
5952

53+
## Get Involved
6054

61-
Get Involved
62-
------------
63-
64-
Fluent.js is open-source, licensed under the Apache License, Version 2.0. We
65-
encourage everyone to take a look at our code and we'll listen to your
55+
Fluent.js is open-source, licensed under the Apache License, Version 2.0. We
56+
encourage everyone to take a look at our code and we'll listen to your
6657
feedback.
6758

68-
69-
Local Development
70-
-----------------
59+
## Local Development
7160

7261
Hacking on `fluent.js` is easy! To quickly get started clone the repo:
7362

0 commit comments

Comments
 (0)