@egy186/eslint-config 0.118.0 → 1.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,62 +8,48 @@
8
8
  npm install @egy186/eslint-config
9
9
  ```
10
10
 
11
- ## `.eslintrc.json`
11
+ ## `eslint.config.js`
12
12
 
13
13
  Node.js, ESM:
14
14
 
15
- ```json
16
- {
17
- "extends": [
18
- "@egy186/eslint-config"
19
- ]
20
- }
15
+ ```js
16
+ export { default } from '@egy186/eslint-config';
21
17
  ```
22
18
 
23
19
  Node.js, CommonJS:
24
20
 
25
- ```json
26
- {
27
- "extends": [
28
- "@egy186/eslint-config",
29
- "@egy186/eslint-config/commonjs"
30
- ]
31
- }
21
+ ```js
22
+ export { commonjs as default } from '@egy186/eslint-config';
32
23
  ```
33
24
 
34
25
  Browser, React:
35
26
 
36
- ```json
37
- {
38
- "extends": [
39
- "@egy186/eslint-config",
40
- "@egy186/eslint-config/browser",
41
- "@egy186/eslint-config/react"
42
- ]
43
- }
27
+ ```js
28
+ import { browser, react } from '@egy186/eslint-config';
29
+
30
+ export default [browser, react];
44
31
  ```
45
32
 
46
33
  TypeScript:
47
34
 
48
- ```json
49
- {
50
- "extends": [
51
- "@egy186/eslint-config",
52
- "@egy186/eslint-config/typescript"
53
- ],
54
- "parserOptions": {
55
- "project": "./path/to/tsconfig.json"
56
- }
57
- }
35
+ ```js
36
+ import { base, typescript } from '@egy186/eslint-config';
37
+
38
+ export default [base, typescript];
39
+ ```
40
+
41
+ TypeScript, tsconfig:
42
+
43
+ ```js
44
+ import { base, typescriptConfig } from '@egy186/eslint-config';
45
+
46
+ export default [base, typescriptConfig({ project: 'path/to/tsconfig.eslint.json' })];
58
47
  ```
59
48
 
60
49
  Jest:
61
50
 
62
- ```json
63
- {
64
- "extends": [
65
- "@egy186/eslint-config",
66
- "@egy186/eslint-config/jest"
67
- ]
68
- }
51
+ ```js
52
+ import { base, jest } from '@egy186/eslint-config';
53
+
54
+ export default [base, jest];
69
55
  ```