Skip to content

Commit 5069189

Browse files
authored
style: apply prettier to all files in the repo (#1777)
* style: prettier config applies to all files * style: run prettier
1 parent ff42302 commit 5069189

File tree

61 files changed

+304
-320
lines changed

Some content is hidden

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

61 files changed

+304
-320
lines changed

.all-contributorsrc

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
"projectOwner": "i18next",
44
"repoType": "github",
55
"repoHost": "https://github.com",
6-
"files": [
7-
"README.md"
8-
],
6+
"files": ["README.md"],
97
"imageSize": 100,
108
"commit": false,
119
"contributors": [
@@ -14,45 +12,28 @@
1412
"name": "Jan Mühlemann",
1513
"avatar_url": "https://avatars3.githubusercontent.com/u/977772?v=4",
1614
"profile": "http://twitter.com/jamuhl",
17-
"contributions": [
18-
"code",
19-
"example",
20-
"doc",
21-
"question"
22-
]
15+
"contributions": ["code", "example", "doc", "question"]
2316
},
2417
{
2518
"login": "adrai",
2619
"name": "Adriano Raiano",
2720
"avatar_url": "https://avatars0.githubusercontent.com/u/1086194?v=4",
2821
"profile": "http://twitter.com/#!/adrirai",
29-
"contributions": [
30-
"code",
31-
"example",
32-
"doc",
33-
"question"
34-
]
22+
"contributions": ["code", "example", "doc", "question"]
3523
},
3624
{
3725
"login": "tigerabrodi",
3826
"name": "Tiger Abrodi",
3927
"avatar_url": "https://avatars1.githubusercontent.com/u/49603590?v=4",
4028
"profile": "https://tigerabrodi.dev/",
41-
"contributions": [
42-
"question",
43-
"code",
44-
"review"
45-
]
29+
"contributions": ["question", "code", "review"]
4630
},
4731
{
4832
"login": "pedrodurek",
4933
"name": "Pedro Durek",
5034
"avatar_url": "https://avatars1.githubusercontent.com/u/12190482?v=4",
5135
"profile": "https://github.com/pedrodurek",
52-
"contributions": [
53-
"code",
54-
"example"
55-
]
36+
"contributions": ["code", "example"]
5637
}
5738
],
5839
"commitConvention": "none"

.babelrc

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,27 @@
11
{
22
"env": {
33
"development": {
4-
"presets": [["@babel/env", {
5-
"targets": {
6-
"browsers":[
7-
"defaults"
8-
]
9-
}
10-
}], "@babel/react"],
4+
"presets": [
5+
[
6+
"@babel/env",
7+
{
8+
"targets": { "browsers": ["defaults"] }
9+
}
10+
],
11+
"@babel/react"
12+
],
1113
"plugins": ["@babel/plugin-transform-runtime"]
1214
},
1315
"jsnext": {
1416
"presets": [
15-
["@babel/env", {
16-
"targets": {
17-
"browsers":[
18-
"defaults"
19-
]
20-
},
21-
"modules": false, "useBuiltIns": false
22-
}],
17+
[
18+
"@babel/env",
19+
{
20+
"targets": { "browsers": ["defaults"] },
21+
"modules": false,
22+
"useBuiltIns": false
23+
}
24+
],
2325
"@babel/react"
2426
],
2527
"plugins": ["@babel/plugin-transform-runtime"]

.codeclimate.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,29 @@ engines:
33
enabled: true
44
config:
55
languages:
6-
- ruby
7-
- javascript:
8-
mass_threshold: 58
9-
- python
10-
- php
6+
- ruby
7+
- javascript:
8+
mass_threshold: 58
9+
- python
10+
- php
1111
eslint:
1212
# Disabled since this engine used a different set of version of
1313
# `@typescript/eslint` and `typescript`
1414
#
1515
# @see https://github.com/i18next/i18next/pull/2098
1616
enabled: false
17-
channel: "eslint-8"
17+
channel: 'eslint-8'
1818
fixme:
1919
enabled: true
2020
ratings:
2121
paths:
22-
- "src/**/*"
22+
- 'src/**/*'
2323
exclude_paths:
24-
- test/
25-
- coverage/
26-
- dist/
27-
- example/
28-
- "react-i18next.js"
29-
- "react-i18next.min.js"
30-
- "rollup.config.js"
31-
- "src/shallowEqual.js"
24+
- test/
25+
- coverage/
26+
- dist/
27+
- example/
28+
- 'react-i18next.js'
29+
- 'react-i18next.min.js'
30+
- 'rollup.config.js'
31+
- 'src/shallowEqual.js'

.editorconfig

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# EditorConfig is awesome: http://EditorConfig.org
22
root = true
33

4-
[*.{js,jsx,json}]
5-
end_of_line = lf
6-
insert_final_newline = true
4+
[*]
75
charset = utf-8
8-
indent_style = space
6+
end_of_line = lf
97
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true

.github/stale.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
1-
21
# Number of days of inactivity before an issue becomes stale
32
daysUntilStale: 7
43
# Number of days of inactivity before a stale issue is closed
54
daysUntilClose: 7
65
# Issues with these labels will never be considered stale
76
exemptLabels:
8-
- "discussion"
9-
- "feature request"
10-
- "bug"
11-
- "breaking change"
12-
- "doc"
13-
- "issue"
14-
- "help wanted"
15-
- "good first issue"
16-
- "pr hold"
7+
- 'discussion'
8+
- 'feature request'
9+
- 'bug'
10+
- 'breaking change'
11+
- 'doc'
12+
- 'issue'
13+
- 'help wanted'
14+
- 'good first issue'
15+
- 'pr hold'
1716
# Label to use when marking an issue as stale
1817
staleLabel: stale
1918
# Comment to post when marking an issue as stale. Set to `false` to disable

.github/workflows/CI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ jobs:
5454
runs-on: ${{ matrix.os }}
5555
strategy:
5656
matrix:
57-
node: [ '20.x', '18.x' ]
57+
node: ['20.x', '18.x']
5858
os: [ubuntu-latest]
5959
# Collect coverage only for node 20 and ubuntu-latest, no need to run it twice
6060
# @see https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
6161
include:
6262
- collectCoverage: true
63-
node: '20.x'
63+
node: '20.x'
6464
os: ubuntu-latest
6565
steps:
6666
- uses: actions/checkout@v4
@@ -101,5 +101,5 @@ jobs:
101101
- name: Install dependencies
102102
run: npm install
103103

104-
- name: Test
104+
- name: Test
105105
run: npm run test:typescript

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
**/dist/**/*.js
1+
**/dist/
22
**/react-i18next.js
33
**/react-i18next.min.js

example/devserver-save-missing/public/index.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4-
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6-
<meta name="theme-color" content="#000000">
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
6+
<meta name="theme-color" content="#000000" />
77
<!--
88
manifest.json provides metadata used when your web app is added to the
99
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
1010
-->
11-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
12-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
11+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
12+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
1313
<!--
1414
Notice the use of %PUBLIC_URL% in the tags above.
1515
It will be replaced with the URL of the `public` folder during the build.
@@ -22,9 +22,7 @@
2222
<title>React App</title>
2323
</head>
2424
<body>
25-
<noscript>
26-
You need to enable JavaScript to run this app.
27-
</noscript>
25+
<noscript>You need to enable JavaScript to run this app.</noscript>
2826
<div id="root"></div>
2927
<!--
3028
This HTML file is a template.

example/devserver-save-missing/src/App.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
}
2020

2121
@keyframes App-logo-spin {
22-
from { transform: rotate(0deg); }
23-
to { transform: rotate(360deg); }
22+
from {
23+
transform: rotate(0deg);
24+
}
25+
to {
26+
transform: rotate(360deg);
27+
}
2428
}

example/locize/public/index.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4-
<meta charset="utf-8">
5-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6-
<meta name="theme-color" content="#000000">
4+
<meta charset="utf-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
6+
<meta name="theme-color" content="#000000" />
77
<!--
88
manifest.json provides metadata used when your web app is added to the
99
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
1010
-->
11-
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
12-
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
11+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
12+
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
1313
<!--
1414
Notice the use of %PUBLIC_URL% in the tags above.
1515
It will be replaced with the URL of the `public` folder during the build.
@@ -22,9 +22,7 @@
2222
<title>React App</title>
2323
</head>
2424
<body>
25-
<noscript>
26-
You need to enable JavaScript to run this app.
27-
</noscript>
25+
<noscript>You need to enable JavaScript to run this app.</noscript>
2826
<div id="root"></div>
2927
<!--
3028
This HTML file is a template.

0 commit comments

Comments
 (0)