@meteorlxy/eslint-config 2.27.2 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,13 +8,31 @@ npm i -D @meteorlxy/eslint-config
8
8
 
9
9
  ## Usage
10
10
 
11
- Create `.eslintrc.cjs`:
11
+ Create `eslint.config.js`:
12
12
 
13
- ```cjs
14
- module.exports = {
15
- extends: ['@meteorlxy'],
16
- rules: {
17
- // override rules
13
+ ```js
14
+ import { meteorlxy } from '@meteorlxy/eslint-config';
15
+
16
+ export default meteorlxy({
17
+ react: true,
18
+ typescript: {
19
+ tsconfigPath: './tsconfig.json',
18
20
  },
19
- };
21
+ vue: true,
22
+ });
23
+ ```
24
+
25
+ Configure `.vscode/settings.json`:
26
+
27
+ ```jsonc
28
+ {
29
+ "eslint.experimental.useFlatConfig": true,
30
+ "eslint.validate": [
31
+ "javascript",
32
+ "javascriptreact",
33
+ "typescript",
34
+ "typescriptreact",
35
+ "vue",
36
+ ],
37
+ }
20
38
  ```