1
1
mirror of https://github.com/theoludwig/eslint-config-conventions.git synced 2024-09-09 00:25:53 +02:00

docs: improve recommended usage/setup

This commit is contained in:
Théo LUDWIG 2023-07-18 20:25:19 +02:00
parent 1e29cef968
commit d0e9004ce3
Signed by: theoludwig
GPG Key ID: ADFE5A563D718F3B
2 changed files with 3 additions and 2 deletions

View File

@ -86,6 +86,7 @@ echo "{}" > .prettierrc.json
{ {
"extends": ["conventions", "prettier"], "extends": ["conventions", "prettier"],
"plugins": ["prettier"], "plugins": ["prettier"],
"parser": "@typescript-eslint/parser",
"parserOptions": { "parserOptions": {
"project": "./tsconfig.json" "project": "./tsconfig.json"
}, },
@ -104,7 +105,7 @@ echo "{}" > .prettierrc.json
```jsonc ```jsonc
{ {
"scripts": { "scripts": {
"lint:eslint": "eslint . --ignore-path .gitignore", "lint:eslint": "eslint . --max-warnings 0 --report-unused-disable-directives --ignore-path .gitignore",
"lint:prettier": "prettier . --check" "lint:prettier": "prettier . --check"
} }
} }

View File

@ -39,7 +39,7 @@
"lint:commit": "commitlint", "lint:commit": "commitlint",
"lint:editorconfig": "editorconfig-checker", "lint:editorconfig": "editorconfig-checker",
"lint:markdown": "markdownlint-cli2", "lint:markdown": "markdownlint-cli2",
"lint:eslint": "eslint . -c eslintrc.json", "lint:eslint": "eslint . --max-warnings 0 --report-unused-disable-directives --config eslintrc.json",
"lint:prettier": "prettier . --check", "lint:prettier": "prettier . --check",
"lint:staged": "lint-staged", "lint:staged": "lint-staged",
"test": "node --test test/", "test": "node --test test/",