Skip to content

facile-it/eslint-config-facile

Repository files navigation

ESlint-config-facile

facile.it ESLint & Prettier extensible configuration

Installation

npm install -D eslint-config-facile eslint prettier

Note eslint, prettier, typescript are a peer dependencies

Prettier config

create .prettierrc.js

module.exports = require('eslint-config-facile/prettierrc.json')

ESLint config

React

create .eslintrc.json

{
    "extends": "facile/react",
    "parserOptions": {
        "project": "./tsconfig.json"
    }
}

Next

create .eslintrc.json

{
    "extends": "facile/next",
    "parserOptions": {
        "project": "./tsconfig.json"
    }
}

Node

create .eslintrc.json

{
    "extends": "facile/node",
    "parserOptions": {
        "project": "./tsconfig.json"
    }
}