@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.
Files changed (3) hide show
  1. package/README.md +8 -26
  2. package/index.mjs +1 -1
  3. 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
- npm install eslint-config-default eslint eslint-plugin-promise
7
+ yarn add -D @hughescr/eslint-config-default eslint
8
8
  ```
9
9
 
10
- Then put this in .eslintrc:
10
+ Then put this in `eslint.config.mjs`:
11
11
 
12
12
  ```
13
- 'use strict';
13
+ import defaultConfig from '@hughescr/eslint-config-default';
14
14
 
15
- module.exports = {
16
- 'extends': '@hughescr/eslint-config-default',
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 know which new rules might exist out there which aren't specified:
23
+ If you want to browse the config, find un-configured rules, etc:
24
24
 
25
25
  ```
26
- yarn omitted-rules
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,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.0.0",
6
+ "version": "3.0.2",
7
7
  "description": "Default base config for eslint",
8
8
  "main": "index.mjs",
9
9
  "repository": {