@aarongoldenthal/eslint-config-standard 20.0.0 → 20.1.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
@@ -12,9 +12,11 @@ Per recommended best practices, the following configurations include `overrides`
12
12
 
13
13
  The configuration as-defined includes a number of formatting rules. The `eslint-config-prettier` package is included as well, and can be added to the config if `prettier` is also being used so it takes priority for formatting.
14
14
 
15
+ There is also an `esm-config` included with overrides for projects using ES modules instead of Common JS modules.
16
+
15
17
  ### Usage
16
18
 
17
- There is a `recommended` configuration with all plugin configurations enabled (including `prettier`). To configure .eslintrc.json with this configuration:
19
+ There is a `recommended` configuration with all plugin configurations enabled except `esm-config` (but including `prettier`). To configure .eslintrc.json with this configuration:
18
20
 
19
21
  ```json
20
22
  {
@@ -35,6 +37,7 @@ To configure .eslintrc.json with individual plugins, use the appropriate subset
35
37
  "@aarongoldenthal/eslint-config-standard/sonarjs-config",
36
38
  "@aarongoldenthal/eslint-config-standard/unicorn-config",
37
39
  "@aarongoldenthal/eslint-config-standard",
40
+ "@aarongoldenthal/eslint-config-standard/esm-config",
38
41
  "prettier"
39
42
  ]
40
43
  }
@@ -42,5 +45,6 @@ To configure .eslintrc.json with individual plugins, use the appropriate subset
42
45
 
43
46
  Notes:
44
47
 
45
- - If used, the `@aarongoldenthal/eslint-config-standard` config should be included after any other `@aarongoldenthal/eslint-config-standard/*` configurations so those settings take precedence.
48
+ - If used, the `@aarongoldenthal/eslint-config-standard` config should be included after any other `@aarongoldenthal/eslint-config-standard/*` configurations except `esm-config` so those settings take precedence.
49
+ - If used, the `esm-config` should be configured after all functional rules to ensure the overridden settings take precedence.
46
50
  - If used, the `prettier` should be included last to take priority in disabling the applicable rules from all other configurations.
package/esm-config.js ADDED
@@ -0,0 +1,14 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+ parserOptions: {
5
+ sourceType: 'module'
6
+ },
7
+ plugins: ['unicorn'],
8
+ rules: {
9
+ 'unicorn/prefer-export-from': 'error',
10
+ 'unicorn/prefer-module': 'error',
11
+ 'unicorn/prefer-node-protocol': 'error',
12
+ 'unicorn/prefer-top-level-await': 'error'
13
+ }
14
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aarongoldenthal/eslint-config-standard",
3
- "version": "20.0.0",
3
+ "version": "20.1.0",
4
4
  "description": "Standard ESLint configuration settings",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
18
- "url": "git+ssh://git@gitlab.com/gitlab-ci-utils/eslint-config-standard.git"
18
+ "url": "https://gitlab.com/gitlab-ci-utils/eslint-config-standard.git"
19
19
  },
20
20
  "keywords": [
21
21
  "eslint"
@@ -35,21 +35,21 @@
35
35
  },
36
36
  "homepage": "https://gitlab.com/gitlab-ci-utils/eslint-config-standard",
37
37
  "dependencies": {
38
- "eslint-config-prettier": "8.6.0",
38
+ "eslint-config-prettier": "8.7.0",
39
39
  "eslint-plugin-jest": "27.2.1",
40
- "eslint-plugin-jsdoc": "39.6.7",
40
+ "eslint-plugin-jsdoc": "40.0.2",
41
41
  "eslint-plugin-n": "15.6.1",
42
42
  "eslint-plugin-playwright": "0.12.0",
43
43
  "eslint-plugin-promise": "6.1.1",
44
44
  "eslint-plugin-sonarjs": "0.18.0",
45
- "eslint-plugin-unicorn": "45.0.2"
45
+ "eslint-plugin-unicorn": "46.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "eslint": "^8.32.0",
49
- "jest": "^29.3.1",
48
+ "eslint": "^8.36.0",
49
+ "jest": "^29.5.0",
50
50
  "jest-junit": "^15.0.0",
51
51
  "markdownlint-cli": "^0.33.0",
52
- "prettier": "^2.8.3"
52
+ "prettier": "^2.8.4"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "eslint": "^8.27.0"