@sequencemedia/eslint-config-standard 0.0.4 → 0.0.5

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/index.mjs +4 -4
  2. package/merge.mjs +11 -0
  3. package/package.json +4 -2
package/index.mjs CHANGED
@@ -4,12 +4,12 @@ import stylistic from './config/stylistic.mjs'
4
4
  export default [
5
5
  {
6
6
  name: '@sequencemedia/eslint-config-standard',
7
- languageOptions: {
8
- ecmaVersion: 'latest'
9
- },
10
7
  files: [
11
8
  '**/*.{mjs,cjs}'
12
- ]
9
+ ],
10
+ languageOptions: {
11
+ ecmaVersion: 'latest'
12
+ }
13
13
  },
14
14
  standard,
15
15
  stylistic
package/merge.mjs ADDED
@@ -0,0 +1,11 @@
1
+ import standard from '#eslint-config-standard'
2
+
3
+ export default function merge (alpha) {
4
+ return (
5
+ standard
6
+ .map((omega) => ({
7
+ ...omega,
8
+ ...alpha
9
+ }))
10
+ )
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sequencemedia/eslint-config-standard",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Standard configuration for ESLint 9",
5
5
  "main": "./index.mjs",
6
6
  "type": "module",
@@ -54,6 +54,7 @@
54
54
  "@typescript-eslint/eslint-plugin": "8.0.0-alpha.34",
55
55
  "@typescript-eslint/utils": "8.0.0-alpha.34",
56
56
  "eslint-plugin-n": "^17.9.0",
57
+ "globals": "^15.8.0",
57
58
  "typescript-eslint": "8.0.0-alpha.34"
58
59
  },
59
60
  "devDependencies": {
@@ -69,6 +70,7 @@
69
70
  },
70
71
  "exports": {
71
72
  ".": "./index.mjs",
72
- "./config/*": "./config/*.mjs"
73
+ "./config/*": "./config/*.mjs",
74
+ "./merge": "./merge.mjs"
73
75
  }
74
76
  }