Skip to content

Commit

Permalink
[#174416949] Add basic README content
Browse files Browse the repository at this point in the history
  • Loading branch information
BurnedMarshal committed Dec 21, 2020
1 parent 7dd1a75 commit 32366af
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,37 @@
# ESLint rules
# PagoPA ESLint config

Shared eslint rules
This package provide the following ESLint custom rules for Typescript projects.

- `recommendend`
- `react`
- `strong`

## Usage

To use this package install as devDependecy inside any typescript project with

```
yarn install -D @pagopa/eslint-config
```

Create on the project an `.eslintrc.js` file with the following content

```
module.exports = {
"extends": [
"@pagopa/eslint-config/strong",
],
"rules": {
// Any project level custom rule
}
}
```

Add inside the `package.json` file a `lint` script as:

```
"scripts": {
"lint": "eslint . -c .eslintrc.js --ext .ts,.tsx",
...
}
```

0 comments on commit 32366af

Please sign in to comment.