@hughescr/eslint-config-default 3.0.0 → 3.0.2
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 +8 -26
- package/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,42 +4,24 @@ Overview
|
|
|
4
4
|
This is a default configuration set-up for how I like my ESLint to be set up.
|
|
5
5
|
|
|
6
6
|
```
|
|
7
|
-
|
|
7
|
+
yarn add -D @hughescr/eslint-config-default eslint
|
|
8
8
|
```
|
|
9
9
|
|
|
10
|
-
Then put this in .
|
|
10
|
+
Then put this in `eslint.config.mjs`:
|
|
11
11
|
|
|
12
12
|
```
|
|
13
|
-
|
|
13
|
+
import defaultConfig from '@hughescr/eslint-config-default';
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
export default [
|
|
16
|
+
defaultConfig.configs.recommended,
|
|
17
|
+
];
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
Developer
|
|
21
21
|
---------
|
|
22
22
|
|
|
23
|
-
If you want to
|
|
23
|
+
If you want to browse the config, find un-configured rules, etc:
|
|
24
24
|
|
|
25
25
|
```
|
|
26
|
-
yarn
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
These rules are turned off:
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
yarn disabled-rules
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
Errors:
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
yarn error-rules
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
and warnings:
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
yarn warn-rules
|
|
26
|
+
yarn rules-checkup
|
|
45
27
|
```
|
package/index.mjs
CHANGED
|
@@ -95,7 +95,7 @@ const recommendedRules = {
|
|
|
95
95
|
'@stylistic/comma-style': ['error', 'last'],
|
|
96
96
|
'@stylistic/eol-last': 'warn',
|
|
97
97
|
'@stylistic/func-call-spacing': 'warn',
|
|
98
|
-
'@stylistic/indent': ['warn', 4, { SwitchCase: 1 }],
|
|
98
|
+
'@stylistic/indent': ['warn', 4, { SwitchCase: 1, MemberExpression: 'off' }],
|
|
99
99
|
'@stylistic/keyword-spacing': ['warn', {
|
|
100
100
|
before: true,
|
|
101
101
|
after: true,
|