Skip to content

Commit

Permalink
Add lint-staged prettier (#1183)
Browse files Browse the repository at this point in the history
* Configure lint-staged and prettier for whole project

* prettier baseline run

* ignore and revert prettier changes to PluralResolver

* make eslint play nice with prettier

* bump codeclimate to allow for same exact code previous that checks different with prettier
  • Loading branch information
rosskevin committed Jan 23, 2019
1 parent 5134e75 commit 270904f
Show file tree
Hide file tree
Showing 65 changed files with 6,855 additions and 3,950 deletions.
13 changes: 13 additions & 0 deletions .codeclimate.yml
Expand Up @@ -25,3 +25,16 @@ exclude_paths:
- 'rollup.config.js'
- 'karma.conf.js'
- 'karma.backward.conf.js'
checks:
file-lines:
config:
threshold: 300
method-lines:
config:
threshold: 70
complex-logic:
config:
threshold: 5
nested-control-flow:
config:
threshold: 5
4 changes: 3 additions & 1 deletion .eslintrc
@@ -1,5 +1,7 @@
parser: babel-eslint
extends: airbnb
extends:
- airbnb
- prettier

rules:
max-len: [0, 100]
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
@@ -0,0 +1,3 @@
i18next.js
i18next.min.js
src/PluralResolver.js
10 changes: 4 additions & 6 deletions README.md
Expand Up @@ -12,7 +12,6 @@ i18next is a very popular internationalization framework for browser or any othe

![ecosystem](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-L9iS6Wm2hynS5H9Gj7j%2F-L9iS7LlT2W7wFtJH-2n%2F-L9iSBP9U65-bHJBRSDv%2Fi18next-ecosystem.jpg?generation=1523345318122913&alt=media)


i18next provides:

- Flexible connection to [backend](https://www.i18next.com/plugins-and-utils.html#backends) (loading translations via xhr, ...)
Expand All @@ -24,17 +23,15 @@ i18next provides:
- Extensibility: eg. [sprintf](https://www.i18next.com/plugins-and-utils.html#post-processors)
- ...


For more information visit the website:

- [Getting started](https://www.i18next.com/getting-started.html)
- [Translation Functionality](https://www.i18next.com/essentials.html)
- [API](https://www.i18next.com/api.html)


Our focus is providing the core to building a booming ecosystem. Independent of the building blocks you choose, be it react, angular or even good old jquery proper translation capabilities are just [one step away](https://www.i18next.com/supported-frameworks.html).

--------------
---

<h3 align="center">Gold Sponsors</h3>

Expand All @@ -44,7 +41,8 @@ Our focus is providing the core to building a booming ecosystem. Independent of
</a>
</p>

--------------
---

**NEWS: localization as a service - locize.com**

Having done a big rewrite of i18next in spring we are proud to announce the next big step to get your webproject translated with less effort. We just released [locize](http://locize.com/?utm_source=i18next_readme&utm_medium=github) a translation management system built around the i18next ecosystem.
Expand All @@ -53,4 +51,4 @@ Having done a big rewrite of i18next in spring we are proud to announce the next

With using [locize](http://locize.com/?utm_source=i18next_readme&utm_medium=github) you directly support the future of i18next.

--------------
---

0 comments on commit 270904f

Please sign in to comment.