Skip to content

Commit

Permalink
style: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ripecosta committed Aug 12, 2024
1 parent 5d05791 commit fd9acb7
Show file tree
Hide file tree
Showing 57 changed files with 295 additions and 312 deletions.
29 changes: 5 additions & 24 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"projectOwner": "i18next",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"files": ["README.md"],
"imageSize": 100,
"commit": false,
"contributors": [
Expand All @@ -14,45 +12,28 @@
"name": "Jan Mühlemann",
"avatar_url": "https://avatars3.githubusercontent.com/u/977772?v=4",
"profile": "http://twitter.com/jamuhl",
"contributions": [
"code",
"example",
"doc",
"question"
]
"contributions": ["code", "example", "doc", "question"]
},
{
"login": "adrai",
"name": "Adriano Raiano",
"avatar_url": "https://avatars0.githubusercontent.com/u/1086194?v=4",
"profile": "http://twitter.com/#!/adrirai",
"contributions": [
"code",
"example",
"doc",
"question"
]
"contributions": ["code", "example", "doc", "question"]
},
{
"login": "tigerabrodi",
"name": "Tiger Abrodi",
"avatar_url": "https://avatars1.githubusercontent.com/u/49603590?v=4",
"profile": "https://tigerabrodi.dev/",
"contributions": [
"question",
"code",
"review"
]
"contributions": ["question", "code", "review"]
},
{
"login": "pedrodurek",
"name": "Pedro Durek",
"avatar_url": "https://avatars1.githubusercontent.com/u/12190482?v=4",
"profile": "https://github.com/pedrodurek",
"contributions": [
"code",
"example"
]
"contributions": ["code", "example"]
}
],
"commitConvention": "none"
Expand Down
32 changes: 17 additions & 15 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
{
"env": {
"development": {
"presets": [["@babel/env", {
"targets": {
"browsers":[
"defaults"
]
}
}], "@babel/react"],
"presets": [
[
"@babel/env",
{
"targets": { "browsers": ["defaults"] }
}
],
"@babel/react"
],
"plugins": ["@babel/plugin-transform-runtime"]
},
"jsnext": {
"presets": [
["@babel/env", {
"targets": {
"browsers":[
"defaults"
]
},
"modules": false, "useBuiltIns": false
}],
[
"@babel/env",
{
"targets": { "browsers": ["defaults"] },
"modules": false,
"useBuiltIns": false
}
],
"@babel/react"
],
"plugins": ["@babel/plugin-transform-runtime"]
Expand Down
30 changes: 15 additions & 15 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,29 @@ engines:
enabled: true
config:
languages:
- ruby
- javascript:
mass_threshold: 58
- python
- php
- ruby
- javascript:
mass_threshold: 58
- python
- php
eslint:
# Disabled since this engine used a different set of version of
# `@typescript/eslint` and `typescript`
#
# @see https://github.com/i18next/i18next/pull/2098
enabled: false
channel: "eslint-8"
channel: 'eslint-8'
fixme:
enabled: true
ratings:
paths:
- "src/**/*"
- 'src/**/*'
exclude_paths:
- test/
- coverage/
- dist/
- example/
- "react-i18next.js"
- "react-i18next.min.js"
- "rollup.config.js"
- "src/shallowEqual.js"
- test/
- coverage/
- dist/
- example/
- 'react-i18next.js'
- 'react-i18next.min.js'
- 'rollup.config.js'
- 'src/shallowEqual.js'
19 changes: 9 additions & 10 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@

# Number of days of inactivity before an issue becomes stale
daysUntilStale: 7
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- "discussion"
- "feature request"
- "bug"
- "breaking change"
- "doc"
- "issue"
- "help wanted"
- "good first issue"
- "pr hold"
- 'discussion'
- 'feature request'
- 'bug'
- 'breaking change'
- 'doc'
- 'issue'
- 'help wanted'
- 'good first issue'
- 'pr hold'
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [ '20.x', '18.x' ]
node: ['20.x', '18.x']
os: [ubuntu-latest]
# Collect coverage only for node 20 and ubuntu-latest, no need to run it twice
# @see https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
include:
- collectCoverage: true
node: '20.x'
node: '20.x'
os: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -101,5 +101,5 @@ jobs:
- name: Install dependencies
run: npm install

- name: Test
- name: Test
run: npm run test:typescript
14 changes: 6 additions & 8 deletions example/devserver-save-missing/public/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand All @@ -22,9 +22,7 @@
<title>React App</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
Expand Down
8 changes: 6 additions & 2 deletions example/devserver-save-missing/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
}

@keyframes App-logo-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
14 changes: 6 additions & 8 deletions example/locize/public/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand All @@ -22,9 +22,7 @@
<title>React App</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
Expand Down
8 changes: 6 additions & 2 deletions example/locize/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
}

@keyframes App-logo-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
2 changes: 1 addition & 1 deletion example/razzle-ssr/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
}
8 changes: 6 additions & 2 deletions example/razzle-ssr/src/Home.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
}

@keyframes Home-logo-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
14 changes: 6 additions & 8 deletions example/react-component-lib/public/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand All @@ -22,9 +22,7 @@
<title>React App</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
Expand Down
8 changes: 6 additions & 2 deletions example/react-component-lib/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
}

@keyframes App-logo-spin {
from { transform: rotate(0deg); }
to { transform: rotate(360deg); }
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
14 changes: 6 additions & 8 deletions example/react-fluent/public/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="theme-color" content="#000000">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="theme-color" content="#000000" />
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand All @@ -22,9 +22,7 @@
<title>React App</title>
</head>
<body>
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
Expand Down
Loading

0 comments on commit fd9acb7

Please sign in to comment.