Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/facile-it/eslint-config-facile
eslint-config-facile
https://github.com/facile-it/eslint-config-facile
Last synced: about 1 month ago
JSON representation
eslint-config-facile
- Host: GitHub
- URL: https://github.com/facile-it/eslint-config-facile
- Owner: facile-it
- Created: 2020-07-28T08:18:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-11T10:07:18.000Z (12 months ago)
- Last Synced: 2024-04-26T16:04:33.286Z (8 months ago)
- Language: TypeScript
- Size: 925 KB
- Stars: 6
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESlint-config-facile
facile.it ESLint & Prettier extensible configuration
## Installation
```sh
npm install -D eslint-config-facile eslint prettier
```**Note** `eslint`, `prettier`, `typescript` are a peer dependencies
## Prettier config
_create .prettierrc.js_
```js
module.exports = require('eslint-config-facile/prettierrc.json')
```## ESLint config
### React
_create .eslintrc.json_
```json
{
"extends": "facile/react",
"parserOptions": {
"project": "./tsconfig.json"
}
}
```### Next
_create .eslintrc.json_
```json
{
"extends": "facile/next",
"parserOptions": {
"project": "./tsconfig.json"
}
}
```### Node
_create .eslintrc.json_
```json
{
"extends": "facile/node",
"parserOptions": {
"project": "./tsconfig.json"
}
}
```