We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sapphiredev
Learn more about funding links in repositories.
Report abuse
1 parent 2df0bb7 commit 875402cCopy full SHA for 875402c
packages/eslint-config/README.md
@@ -44,6 +44,22 @@ Or to `eslintrc.js` / `.eslintrc.json`:
44
}
45
```
46
47
+Or to `eslint.config.js`:
48
+
49
+```
50
+const { FlatCompat } = require('@eslint/eslintrc')
51
+const sapphireEslintConfig = require('@sapphire/eslint-config')
52
53
+const compat = new FlatCompat()
54
55
+module.exports = [
56
+ ...compat.config(sapphireEslintConfig),
57
+ {
58
+ // other configs
59
+ }
60
+]
61
62
63
Create `tsconfig.eslint.json` next to the eslint config file, for example with content:
64
65
```json
0 commit comments