Skip to content

Commit

Permalink
Merge pull request #6 from victorsoares96/update-readme
Browse files Browse the repository at this point in the history
Update readme
  • Loading branch information
victorsoares96 authored Jun 21, 2022
2 parents 2a8b0a9 + 2a0235d commit 876bf2a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ eslint-plugin-react-intl-universal
## Installation

```sh
$ npm install eslint-plugin-react-intl-universal
$ npm install eslint-plugin-react-intl-universal --save-dev
```
```sh
$ yarn add eslint-plugin-react-intl-universal
$ yarn add -D eslint-plugin-react-intl-universal
```

## Usage
Expand Down Expand Up @@ -41,6 +41,8 @@ or
}
```

* By default `id-missing` rule, list of locale files, defaults to `['locales/en-US.json']`

## Supported Rules

* [id-missing](src/docs/id-missing.md) - This rule was based on the rule in this repository.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-react-intl-universal",
"version": "1.0.3",
"version": "1.0.4",
"description": "ESLint plugin for React Intl Universal",
"main": "lib/index.js",
"private": false,
Expand Down
11 changes: 11 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,15 @@ export = {
'no-use-intl': noUseIntl,
'id-missing': idMissing,
},
configs: {
recommended: {
plugins: [
'react-intl-universal'
],
rules: {
'react-intl-universal/no-literal-string': 'error',
'react-intl-universal/id-missing': 'error',
},
},
},
}

0 comments on commit 876bf2a

Please sign in to comment.