@eslinted/core 23.1.0 → 23.1.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.
@@ -1,36 +1,30 @@
1
+ --- # RELEASE.yml
1
2
  name: NPM Publish (RELEASE)
2
- on:
3
- push:
4
- tags:
5
- - v[0-9]+.[0-9]+.[0-9]+
3
+ on: { push: { tags: ['v[0-9]+.[0-9]+.[0-9]+'] } }
6
4
  jobs:
7
5
  publish-release:
8
6
  name: Build/Publish (RELEASE)
9
7
  environment:
10
8
  name: RELEASE
11
9
  url: https://www.npmjs.com/package/@eslinted/core?activeTab=versions
12
- permissions:
13
- contents: read
10
+ permissions: { contents: read }
14
11
  runs-on: ubuntu-latest
15
12
  steps:
16
13
  - name: Checkout
17
14
  id: checkout
18
15
  uses: actions/checkout@v4
19
- with:
20
- submodules: true
21
- lfs: false
22
16
  - name: Install Node
23
17
  id: node
24
18
  uses: actions/setup-node@v4
25
19
  with:
26
20
  node-version: 22
27
- check-latest: true
28
- registry-url: "https://registry.npmjs.org"
21
+ registry-url: https://registry.npmjs.org
29
22
  - name: Install Dependencies
30
23
  id: ci
31
24
  run: npm ci
32
25
  - name: Publish to NPM
33
26
  id: publish
34
27
  run: npm publish
35
- env:
36
- NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
28
+ env: { NODE_AUTH_TOKEN: "${{secrets.NPM_TOKEN}}" }
29
+
30
+ ...
@@ -1,36 +1,30 @@
1
+ --- # rc.yml
1
2
  name: NPM Publish (rc)
2
- on:
3
- push:
4
- tags:
5
- - v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+
3
+ on: { push: { tags: ['v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'] } }
6
4
  jobs:
7
5
  publish-rc:
8
6
  name: Build/Publish (rc)
9
7
  environment:
10
8
  name: rc
11
9
  url: https://www.npmjs.com/package/@eslinted/core?activeTab=versions
12
- permissions:
13
- contents: read
10
+ permissions: { contents: read }
14
11
  runs-on: ubuntu-latest
15
12
  steps:
16
13
  - name: Checkout
17
14
  id: checkout
18
15
  uses: actions/checkout@v4
19
- with:
20
- submodules: true
21
- lfs: false
22
16
  - name: Install Node
23
17
  id: node
24
18
  uses: actions/setup-node@v4
25
19
  with:
26
20
  node-version: 22
27
- check-latest: true
28
- registry-url: "https://registry.npmjs.org"
21
+ registry-url: https://registry.npmjs.org
29
22
  - name: Install Dependencies
30
23
  id: ci
31
24
  run: npm ci
32
25
  - name: Publish to NPM
33
26
  id: publish
34
27
  run: npm publish
35
- env:
36
- NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
28
+ env: { NODE_AUTH_TOKEN: "${{secrets.NPM_TOKEN}}" }
29
+
30
+ ...
package/.mocharc.yml CHANGED
@@ -1,15 +1,11 @@
1
1
  ####################
2
2
  ### .mocharc ###
3
- ### 1105.1.0 ###
3
+ ### 1107.0.0 ###
4
4
  ####################
5
5
 
6
6
  # https://mochajs.org/#configuration-format
7
7
  # https://mochajs.org/#command-line-usage
8
8
 
9
- spec:
10
- - "dist/**/*.spec.js"
11
- extension:
12
- - js
13
- - cjs
14
- - mjs
9
+ spec: [dist/**/*.spec.js]
10
+ extension: [js]
15
11
  # require: dist/_test/hooks.js
package/package.json CHANGED
@@ -1,10 +1,13 @@
1
1
  {
2
- "$pkg": "2211.2.1",
2
+ "$pkg": "2211.4.0",
3
3
  "$schema": "https://json.schemastore.org/package",
4
4
  "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
5
5
  "name": "@eslinted/core",
6
- "version": "23.1.0",
6
+ "version": "23.1.2",
7
7
  "repository": "github:jimmy-zhening-luo/linted-core",
8
+ "description": "Internal core for npm package `linted`, responsible for producing an array of fully-formed ESLint configurations according to `linted` spec.",
9
+ "keywords": [],
10
+ "license": "MIT",
8
11
  "private": false,
9
12
  "engineStrict": true,
10
13
  "engines": {
@@ -17,7 +20,7 @@
17
20
  "@types/chai": "^5.2.2",
18
21
  "@types/mocha": "^10.0.10",
19
22
  "chai": "^6.0.1",
20
- "mocha": "^11.7.1",
23
+ "mocha": "^11.7.2",
21
24
  "ts-add-js-extension": "^1.6.6",
22
25
  "typescript": "^5.9.2"
23
26
  },
@@ -26,8 +29,7 @@
26
29
  "scripts": {
27
30
  "clean": "cmd --% /c \"(if exist dist rmdir /s /q dist) & (if exist build rmdir /s /q build) & (if exist .svelte-kit rmdir /s /q .svelte-kit) & (if exist .eslintcache del /f /q .eslintcache)\" || rm -rf dist build .svelte-kit .eslintcache",
28
31
  "prebuild": "npm run clean",
29
- "build": "cmd --% /c \"(if exist svelte.config.js (npm run build:svelte) else (npm run build:ts))\" || npm run build-unix",
30
- "build-unix": "if [ -f svelte.config.js ]; then npm run build:svelte; else npm run build:ts; fi",
32
+ "build": "cmd /c \"(if exist svelte.config.js (npm run build:svelte) else (npm run build:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run build:svelte; else npm run build:ts; fi'",
31
33
  "build:ts": "tsc && ts-add-js-extension --dir=dist",
32
34
  "build:svelte": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json && vite build",
33
35
  "postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
@@ -36,21 +38,16 @@
36
38
  "test": "npm run --if-present test:mocha",
37
39
  "test:mocha": "mocha",
38
40
  "prestart": "npm test",
39
- "start": "cmd --% /c \"(if exist svelte.config.js (npm run start:svelte) else (npm run start:ts))\" || npm run start-unix",
40
- "start-unix": "if [ -f svelte.config.js ]; then npm run start:svelte; else npm run start:ts; fi",
41
+ "start": "cmd --% /c \"(if exist svelte.config.js (npm run start:svelte) else (npm run start:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run start:svelte; else npm run start:ts; fi'",
41
42
  "start:ts": "node .",
42
43
  "start:svelte": "vite preview --open",
43
44
  "prepublishOnly": "npm test",
44
- "postpublish": "cmd --% /c \"for /f \"delims=-\" %a in (\"%npm_package_version%\") do if \"%a\" == \"%npm_package_version%\" npm dist-tag add \"%npm_package_name%@%npm_package_version%\" latest\" || npm run postpublish-unix",
45
- "postpublish-unix": "if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi",
45
+ "postpublish": "cmd --% /c \"for /f \"delims=-\" %a in (\"%npm_package_version%\") do if \"%a\" == \"%npm_package_version%\" npm dist-tag add \"%npm_package_name%@%npm_package_version%\" latest\" || bash -c 'if [ \"${npm_package_version#*-}\" = \"${npm_package_version}\" ]; then npm dist-tag add \"$npm_package_name@$npm_package_version\" latest; fi'",
46
46
  "predeploy": "npm test",
47
47
  "deploy": ""
48
48
  },
49
49
  "publishConfig": {
50
50
  "tag": "next"
51
51
  },
52
- "license": "MIT",
53
- "description": "Internal core for npm package `linted`, responsible for producing an array of fully-formed ESLint configurations according to `linted` spec.",
54
- "keywords": [],
55
52
  "author": "Jimmy Zhening Luo <jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
56
53
  }