@diplodoc/lint 1.13.1 → 1.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/lint",
3
- "version": "1.13.1",
3
+ "version": "1.14.0",
4
4
  "description": "Diplodoc platform internal utility set for linting",
5
5
  "bin": {
6
6
  "lint": "./bin/lint.js",
@@ -66,6 +66,7 @@
66
66
  "@typescript-eslint/eslint-plugin": "^8.40.0",
67
67
  "@typescript-eslint/parser": "^8.40.0",
68
68
  "esbuild": "^0.27.3",
69
+ "esbuild-sass-plugin": "^3.6.0",
69
70
  "eslint": "^8.57.0",
70
71
  "eslint-config-prettier": "^9.1.0",
71
72
  "eslint-import-resolver-typescript": "^3.6.1",
@@ -61,3 +61,10 @@ jobs:
61
61
  name: coverage
62
62
  path: coverage/
63
63
  retention-days: 7
64
+
65
+ - name: SonarCloud Scan
66
+ if: success() && steps.coverage-run.outputs.ran == 'true'
67
+ uses: SonarSource/sonarqube-scan-action@v7.0.0
68
+ env:
69
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
@@ -3,7 +3,7 @@
3
3
  # To modify this workflow, edit it in diplodoc/devops/lint/scaffolding/.github/workflows/
4
4
  # and then run the scaffolding update process.
5
5
 
6
- name: Release Package to npm
6
+ name: Release to npm
7
7
 
8
8
  # This workflow handles both stable and prerelease publishing to npm
9
9
  # - Stable: triggered by release event or manual dispatch with 'stable' type
@@ -3,7 +3,7 @@
3
3
  # To modify this workflow, edit it in diplodoc/devops/lint/scaffolding/.github/workflows/
4
4
  # and then run the scaffolding update process.
5
5
 
6
- name: Tests
6
+ name: Quality
7
7
 
8
8
  on:
9
9
  push:
package/src/esbuild.cjs CHANGED
@@ -1 +1,3 @@
1
1
  module.exports = require('esbuild');
2
+
3
+ module.exports.sassPlugin = require('esbuild-sass-plugin').default;
package/src/esbuild.d.ts CHANGED
@@ -1,3 +1,6 @@
1
1
  declare module 'esbuild' {
2
+ import {sassPlugin} from 'esbuild-sass-plugin';
3
+
2
4
  export * from 'esbuild';
5
+ export {sassPlugin};
3
6
  }
package/src/esbuild.mjs CHANGED
@@ -1 +1,4 @@
1
1
  export * from 'esbuild';
2
+ export * from 'esbuild-sass-plugin';
3
+
4
+ export default require('esbuild');
@@ -1,50 +0,0 @@
1
- name: SonarCloud Analysis
2
-
3
- on:
4
- push:
5
- branches: [master, main]
6
- pull_request:
7
- branches: [master, main]
8
- types: [opened, synchronize, reopened]
9
-
10
- jobs:
11
- sonarcloud:
12
- name: SonarCloud Analysis
13
- runs-on: ubuntu-latest
14
- steps:
15
- - name: Checkout code
16
- uses: actions/checkout@v4
17
- with:
18
- fetch-depth: 0 # Shallow clones should be disabled for better analysis
19
-
20
- - name: Setup Node.js
21
- uses: actions/setup-node@v4
22
- with:
23
- node-version: 22
24
- cache: 'npm'
25
-
26
- - name: Install latest npm (>= 11.5.1)
27
- run: |
28
- [ "$(printf '%s\n' "11.5.1" "$(npm -v)" | sort -V | head -n1)" = "11.5.1" ] || npm install -g npm@latest
29
- shell: bash
30
-
31
- - name: Install dependencies
32
- run: npm ci
33
-
34
- - name: Run tests with coverage
35
- id: coverage-run
36
- run: |
37
- if node -e "const s=require('./package.json').scripts; process.exit(s && s['test:coverage'] ? 0 : 1)"; then
38
- npm run test:coverage
39
- echo "ran=true" >> "$GITHUB_OUTPUT"
40
- else
41
- echo "test:coverage script not found, skipping."
42
- echo "ran=false" >> "$GITHUB_OUTPUT"
43
- fi
44
-
45
- - name: SonarCloud Scan
46
- if: success() && steps.coverage-run.outputs.ran == 'true'
47
- uses: SonarSource/sonarqube-scan-action@v7.0.0
48
- env:
49
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50
- SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}