@eslinted/defaults 16.0.0-rc.3 → 16.0.0-rc.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/ignores/global.ts"],"names":[],"mappings":";AAoBA,wBAeI"}
1
+ {"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/ignores/global.ts"],"names":[],"mappings":";AAEA,wBAgBI"}
@@ -1,17 +1,17 @@
1
- import { ROOTS, SUBROOTS, } from "../_pattern/index.js";
2
- const ext = [
1
+ import { pattern } from "../_pattern/index.js";
2
+ export default [
3
+ "**/.git/",
3
4
  "**/*.js",
4
5
  "**/*.cjs",
5
6
  "**/*.mjs",
6
- ], subroots = SUBROOTS.filter(subroot => subroot !== ""), folders = ext.flatMap(ext => subroots.map(subroot => subroot.concat("/", ext)));
7
- export default [
8
- "**/.git/",
9
- ...ext,
10
7
  "!*.js",
11
8
  "!*.cjs",
12
9
  "!*.mjs",
13
10
  ]
14
- .concat(ROOTS
15
- .flatMap(root => folders.map(folder => root.concat(folder)))
11
+ .concat(pattern([
12
+ "*.js",
13
+ "*.cjs",
14
+ "*.mjs",
15
+ ])
16
16
  .map(path => "!".concat(path)));
17
17
  //# sourceMappingURL=global.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/ignores/global.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,QAAQ,GACT,MAAM,aAAa,CAAC;AAErB,MAAM,GAAG,GAAG;IACV,SAAS;IACT,UAAU;IACV,UAAU;CACX,EACD,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,KAAK,EAAE,CAAC,EACrD,OAAO,GAAG,GAAG,CAAC,OAAO,CACnB,GAAG,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,CACjB,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CACvB,GAAG,EACH,GAAG,CACJ,CACF,CACF,CAAC;AAEF,eAAe;IACb,UAAU;IACV,GAAG,GAAG;IACN,OAAO;IACP,QAAQ;IACR,QAAQ;CACT;KACE,MAAM,CACL,KAAK;KACF,OAAO,CACN,IAAI,CAAC,EAAE,CAAC,OAAO,CAAC,GAAG,CACjB,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAC9B,CACF;KACA,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CACjC,CAAC"}
1
+ {"version":3,"file":"global.js","sourceRoot":"","sources":["../../src/ignores/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,eAAe;IACb,UAAU;IACV,SAAS;IACT,UAAU;IACV,UAAU;IACV,OAAO;IACP,QAAQ;IACR,QAAQ;CACT;KACE,MAAM,CACL,OAAO,CAAC;IACN,MAAM;IACN,OAAO;IACP,OAAO;CACR,CAAC;KACC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CACjC,CAAC"}
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "@eslinted/defaults",
6
- "version": "16.0.0-rc.3",
6
+ "version": "16.0.0-rc.4",
7
7
  "repository": "github:jimmy-zhening-luo/linted-defaults",
8
8
  "description": "Default scopes for `linted`",
9
9
  "keywords": [],
@@ -1,36 +1,19 @@
1
- import {
2
- ROOTS,
3
- SUBROOTS,
4
- } from "../_pattern";
1
+ import { pattern } from "../_pattern";
5
2
 
6
- const ext = [
3
+ export default [
4
+ "**/.git/",
7
5
  "**/*.js",
8
6
  "**/*.cjs",
9
7
  "**/*.mjs",
10
- ],
11
- subroots = SUBROOTS.filter(subroot => subroot !== ""),
12
- folders = ext.flatMap(
13
- ext => subroots.map(
14
- subroot => subroot.concat(
15
- "/",
16
- ext,
17
- ),
18
- ),
19
- );
20
-
21
- export default [
22
- "**/.git/",
23
- ...ext,
24
8
  "!*.js",
25
9
  "!*.cjs",
26
10
  "!*.mjs",
27
11
  ]
28
12
  .concat(
29
- ROOTS
30
- .flatMap(
31
- root => folders.map(
32
- folder => root.concat(folder),
33
- ),
34
- )
13
+ pattern([
14
+ "*.js",
15
+ "*.cjs",
16
+ "*.mjs",
17
+ ])
35
18
  .map(path => "!".concat(path)),
36
19
  );