1.0.18 • Published 3 months ago

eslint-config-ape v1.0.18

Weekly downloads
-
License
MIT
Repository
-
Last release
3 months ago

Setup

Install

yarn add eslint@7 eslint-config-ape

Config

.eslintrc.json

{
    "ignorePatterns": [
        "**/node_modules/**/*.js"
    ],
    "extends": [
        "eslint-config-ape"
    ],
    "settings": {
        "next": {
            "rootDir": "/for/monorepos"
        },
        "tailwindcss": {
            "config": "/for/monorepos"
        }
    }
}

Run

Alle js Files, behebe alle fehler und zeige keine warnings an

    yarn eslint **/*.js --fix --quiet

Alle js Files, zeige alle fehler und warnings an, keine automatischen fixes

    yarn eslint **/*.js

Commit hook setup

Um automatisch alle Dateien die comitted werden zu prüfen:

yarn add husky lint-staged

In package.json

{
    "scripts": {
        "postinstall": "husky install && husky set .husky/pre-commit \"yarn lint-staged\"",
    },
    "lint-staged": {
        "*.js": "eslint --config .eslintrc.json --fix --quiet",
        "*.jsx": "eslint --config .eslintrc.json --fix --quiet",
        "*.json": "eslint --config .eslintrc.json --fix --quiet"
    }
}
1.0.18

3 months ago

1.0.17

8 months ago

1.0.16

10 months ago

1.0.15

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.9

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.8

2 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago