mirror of
https://github.com/theoludwig/eslint-config-conventions.git
synced 2024-12-18 21:45:04 +01:00
Compare commits
No commits in common. "a578bb80ba381e7b6f8204d7c225e6bd5d8428d5" and "1719cd18b3eca98d0b4f1bce9d9f7556be0f7f40" have entirely different histories.
a578bb80ba
...
1719cd18b3
12
README.md
12
README.md
@ -29,7 +29,7 @@ More information about **formatting rules** vs **code-quality rules** can be fou
|
||||
|
||||
### Prerequisites
|
||||
|
||||
[Node.js](https://nodejs.org/) >= 20.11.0
|
||||
[Node.js](https://nodejs.org/) >= 20.9.0
|
||||
|
||||
### Installation
|
||||
|
||||
@ -40,8 +40,8 @@ npm install --save-dev \
|
||||
eslint-plugin-unicorn@^56.0.0 \
|
||||
eslint-plugin-import-x@^4.3.1 \
|
||||
globals@^15.10.0 \
|
||||
typescript@~5.5.4 \
|
||||
typescript-eslint@^8.8.0 \
|
||||
"typescript@~5.5.4" \
|
||||
"typescript-eslint@^8.8.0" \
|
||||
eslint-config-conventions@latest
|
||||
```
|
||||
|
||||
@ -62,12 +62,10 @@ Dependencies are:
|
||||
#### `eslint.config.js` (JavaScript and TypeScript)
|
||||
|
||||
```js
|
||||
// @ts-check
|
||||
|
||||
import typescriptESLint from "typescript-eslint"
|
||||
import configConventions from "eslint-config-conventions"
|
||||
import eslintConfigConventions from "eslint-config-conventions"
|
||||
|
||||
export default typescriptESLint.config(...configConventions)
|
||||
export default typescriptESLint.config(...eslintConfigConventions)
|
||||
```
|
||||
|
||||
#### Configuration with [Prettier](https://prettier.io/) (recommended)
|
||||
|
@ -1,5 +1,3 @@
|
||||
// @ts-check
|
||||
|
||||
import promise from "eslint-plugin-promise"
|
||||
import unicorn from "eslint-plugin-unicorn"
|
||||
import importX from "eslint-plugin-import-x"
|
||||
|
@ -1,8 +1,8 @@
|
||||
// @ts-check
|
||||
|
||||
import typescriptESLint from "typescript-eslint"
|
||||
import configConventions from "./eslint.config.js"
|
||||
import eslintConfigConventions from "./eslint.config.js"
|
||||
|
||||
export default typescriptESLint.config(...configConventions, {
|
||||
export default typescriptESLint.config(...eslintConfigConventions, {
|
||||
ignores: ["test/fixtures/*"],
|
||||
})
|
||||
|
@ -34,7 +34,7 @@
|
||||
"provenance": true
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.11.0"
|
||||
"node": ">=20.9.0"
|
||||
},
|
||||
"scripts": {
|
||||
"lint:editorconfig": "editorconfig-checker",
|
||||
|
Loading…
Reference in New Issue
Block a user