@codacy/tools-stylelint-0 0.6.1 → 0.8.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/dist/index.js CHANGED
@@ -1360,7 +1360,8 @@ var patterns_default = [
1360
1360
  default: "null",
1361
1361
  description: "no-display-none"
1362
1362
  }
1363
- ]
1363
+ ],
1364
+ tags: ["accessibility"]
1364
1365
  },
1365
1366
  {
1366
1367
  id: "Stylelint_no-duplicate-at-import-rules",
@@ -1510,7 +1511,8 @@ var patterns_default = [
1510
1511
  default: "null",
1511
1512
  description: "no-outline-none"
1512
1513
  }
1513
- ]
1514
+ ],
1515
+ tags: ["accessibility"]
1514
1516
  },
1515
1517
  {
1516
1518
  id: "Stylelint_no-spread-text",
@@ -1735,7 +1737,8 @@ var patterns_default = [
1735
1737
  default: "null",
1736
1738
  description: "at-else-closing-brace-newline-after"
1737
1739
  }
1738
- ]
1740
+ ],
1741
+ tags: ["scss"]
1739
1742
  },
1740
1743
  {
1741
1744
  id: "Stylelint_scss_at-else-closing-brace-space-after",
@@ -1765,7 +1768,8 @@ var patterns_default = [
1765
1768
  default: "null",
1766
1769
  description: "at-else-empty-line-before"
1767
1770
  }
1768
- ]
1771
+ ],
1772
+ tags: ["scss"]
1769
1773
  },
1770
1774
  {
1771
1775
  id: "Stylelint_scss_at-else-if-parentheses-space-before",
@@ -1795,7 +1799,8 @@ var patterns_default = [
1795
1799
  default: "null",
1796
1800
  description: "at-extend-no-missing-placeholder"
1797
1801
  }
1798
- ]
1802
+ ],
1803
+ tags: ["scss"]
1799
1804
  },
1800
1805
  {
1801
1806
  id: "Stylelint_scss_at-function-named-arguments",
@@ -1855,7 +1860,8 @@ var patterns_default = [
1855
1860
  default: "null",
1856
1861
  description: "at-if-closing-brace-newline-after"
1857
1862
  }
1858
- ]
1863
+ ],
1864
+ tags: ["scss"]
1859
1865
  },
1860
1866
  {
1861
1867
  id: "Stylelint_scss_at-if-closing-brace-space-after",
@@ -1870,7 +1876,8 @@ var patterns_default = [
1870
1876
  default: "null",
1871
1877
  description: "at-if-closing-brace-space-after"
1872
1878
  }
1873
- ]
1879
+ ],
1880
+ tags: ["scss", "stylelint"]
1874
1881
  },
1875
1882
  {
1876
1883
  id: "Stylelint_scss_at-if-no-null",
@@ -1885,7 +1892,8 @@ var patterns_default = [
1885
1892
  default: "null",
1886
1893
  description: "at-if-no-null"
1887
1894
  }
1888
- ]
1895
+ ],
1896
+ tags: ["scss"]
1889
1897
  },
1890
1898
  {
1891
1899
  id: "Stylelint_scss_at-import-no-partial-leading-underscore",
@@ -1900,7 +1908,8 @@ var patterns_default = [
1900
1908
  default: "null",
1901
1909
  description: "at-import-no-partial-leading-underscore"
1902
1910
  }
1903
- ]
1911
+ ],
1912
+ tags: ["scss"]
1904
1913
  },
1905
1914
  {
1906
1915
  id: "Stylelint_scss_at-import-partial-extension",
@@ -1930,7 +1939,8 @@ var patterns_default = [
1930
1939
  default: "null",
1931
1940
  description: "at-import-partial-extension-allowed-list"
1932
1941
  }
1933
- ]
1942
+ ],
1943
+ tags: ["scss"]
1934
1944
  },
1935
1945
  {
1936
1946
  id: "Stylelint_scss_at-import-partial-extension-blacklist",
@@ -1945,7 +1955,8 @@ var patterns_default = [
1945
1955
  default: "null",
1946
1956
  description: "at-import-partial-extension-blacklist"
1947
1957
  }
1948
- ]
1958
+ ],
1959
+ tags: ["scss"]
1949
1960
  },
1950
1961
  {
1951
1962
  id: "Stylelint_scss_at-import-partial-extension-disallowed-list",
@@ -1960,7 +1971,8 @@ var patterns_default = [
1960
1971
  default: "null",
1961
1972
  description: "at-import-partial-extension-disallowed-list"
1962
1973
  }
1963
- ]
1974
+ ],
1975
+ tags: ["scss"]
1964
1976
  },
1965
1977
  {
1966
1978
  id: "Stylelint_scss_at-import-partial-extension-whitelist",
@@ -1975,7 +1987,8 @@ var patterns_default = [
1975
1987
  default: "null",
1976
1988
  description: "at-import-partial-extension-whitelist"
1977
1989
  }
1978
- ]
1990
+ ],
1991
+ tags: ["scss"]
1979
1992
  },
1980
1993
  {
1981
1994
  id: "Stylelint_scss_at-mixin-argumentless-call-parentheses",
@@ -1990,7 +2003,8 @@ var patterns_default = [
1990
2003
  default: "null",
1991
2004
  description: "at-mixin-argumentless-call-parentheses"
1992
2005
  }
1993
- ]
2006
+ ],
2007
+ tags: ["scss"]
1994
2008
  },
1995
2009
  {
1996
2010
  id: "Stylelint_scss_at-mixin-named-arguments",
@@ -2005,7 +2019,8 @@ var patterns_default = [
2005
2019
  default: "null",
2006
2020
  description: "at-mixin-named-arguments"
2007
2021
  }
2008
- ]
2022
+ ],
2023
+ tags: ["scss"]
2009
2024
  },
2010
2025
  {
2011
2026
  id: "Stylelint_scss_at-mixin-no-risky-nesting-selector",
@@ -2020,7 +2035,8 @@ var patterns_default = [
2020
2035
  default: "null",
2021
2036
  description: "at-mixin-no-risky-nesting-selector"
2022
2037
  }
2023
- ]
2038
+ ],
2039
+ tags: ["scss"]
2024
2040
  },
2025
2041
  {
2026
2042
  id: "Stylelint_scss_at-mixin-parentheses-space-before",
@@ -2035,7 +2051,8 @@ var patterns_default = [
2035
2051
  default: "null",
2036
2052
  description: "at-mixin-parentheses-space-before"
2037
2053
  }
2038
- ]
2054
+ ],
2055
+ tags: ["scss"]
2039
2056
  },
2040
2057
  {
2041
2058
  id: "Stylelint_scss_at-mixin-pattern",
@@ -2050,7 +2067,8 @@ var patterns_default = [
2050
2067
  default: "null",
2051
2068
  description: "at-mixin-pattern"
2052
2069
  }
2053
- ]
2070
+ ],
2071
+ tags: ["scss"]
2054
2072
  },
2055
2073
  {
2056
2074
  id: "Stylelint_scss_at-root-no-redundant",
@@ -2065,7 +2083,8 @@ var patterns_default = [
2065
2083
  default: "null",
2066
2084
  description: "at-root-no-redundant"
2067
2085
  }
2068
- ]
2086
+ ],
2087
+ tags: ["scss"]
2069
2088
  },
2070
2089
  {
2071
2090
  id: "Stylelint_scss_at-rule-conditional-no-parentheses",
@@ -2095,7 +2114,8 @@ var patterns_default = [
2095
2114
  default: "true",
2096
2115
  description: "at-rule-no-unknown"
2097
2116
  }
2098
- ]
2117
+ ],
2118
+ tags: ["scss"]
2099
2119
  },
2100
2120
  {
2101
2121
  id: "Stylelint_scss_at-use-no-redundant-alias",
@@ -2110,7 +2130,8 @@ var patterns_default = [
2110
2130
  default: "null",
2111
2131
  description: "at-use-no-redundant-alias"
2112
2132
  }
2113
- ]
2133
+ ],
2134
+ tags: ["scss"]
2114
2135
  },
2115
2136
  {
2116
2137
  id: "Stylelint_scss_at-use-no-unnamespaced",
@@ -2155,7 +2176,8 @@ var patterns_default = [
2155
2176
  default: "true",
2156
2177
  description: "comment-no-empty"
2157
2178
  }
2158
- ]
2179
+ ],
2180
+ tags: ["scss"]
2159
2181
  },
2160
2182
  {
2161
2183
  id: "Stylelint_scss_comment-no-loud",
@@ -2185,7 +2207,8 @@ var patterns_default = [
2185
2207
  default: "null",
2186
2208
  description: "declaration-nested-properties"
2187
2209
  }
2188
- ]
2210
+ ],
2211
+ tags: ["scss"]
2189
2212
  },
2190
2213
  {
2191
2214
  id: "Stylelint_scss_declaration-nested-properties-no-divided-groups",
@@ -2200,7 +2223,8 @@ var patterns_default = [
2200
2223
  default: "null",
2201
2224
  description: "declaration-nested-properties-no-divided-groups"
2202
2225
  }
2203
- ]
2226
+ ],
2227
+ tags: ["scss"]
2204
2228
  },
2205
2229
  {
2206
2230
  id: "Stylelint_scss_declaration-property-value-no-unknown",
@@ -2230,7 +2254,8 @@ var patterns_default = [
2230
2254
  default: "null",
2231
2255
  description: "dimension-no-non-numeric-values"
2232
2256
  }
2233
- ]
2257
+ ],
2258
+ tags: ["scss"]
2234
2259
  },
2235
2260
  {
2236
2261
  id: "Stylelint_scss_dollar-variable-colon-newline-after",
@@ -2275,7 +2300,8 @@ var patterns_default = [
2275
2300
  default: "null",
2276
2301
  description: "dollar-variable-colon-space-before"
2277
2302
  }
2278
- ]
2303
+ ],
2304
+ tags: ["scss"]
2279
2305
  },
2280
2306
  {
2281
2307
  id: "Stylelint_scss_dollar-variable-default",
@@ -2290,7 +2316,8 @@ var patterns_default = [
2290
2316
  default: "null",
2291
2317
  description: "dollar-variable-default"
2292
2318
  }
2293
- ]
2319
+ ],
2320
+ tags: ["scss"]
2294
2321
  },
2295
2322
  {
2296
2323
  id: "Stylelint_scss_dollar-variable-empty-line-after",
@@ -2305,7 +2332,8 @@ var patterns_default = [
2305
2332
  default: "null",
2306
2333
  description: "dollar-variable-empty-line-after"
2307
2334
  }
2308
- ]
2335
+ ],
2336
+ tags: ["scss"]
2309
2337
  },
2310
2338
  {
2311
2339
  id: "Stylelint_scss_dollar-variable-empty-line-before",
@@ -2320,7 +2348,8 @@ var patterns_default = [
2320
2348
  default: "null",
2321
2349
  description: "dollar-variable-empty-line-before"
2322
2350
  }
2323
- ]
2351
+ ],
2352
+ tags: ["scss"]
2324
2353
  },
2325
2354
  {
2326
2355
  id: "Stylelint_scss_dollar-variable-first-in-block",
@@ -2350,7 +2379,8 @@ var patterns_default = [
2350
2379
  default: "null",
2351
2380
  description: "dollar-variable-no-missing-interpolation"
2352
2381
  }
2353
- ]
2382
+ ],
2383
+ tags: ["sass"]
2354
2384
  },
2355
2385
  {
2356
2386
  id: "Stylelint_scss_dollar-variable-no-namespaced-assignment",
@@ -2380,7 +2410,8 @@ var patterns_default = [
2380
2410
  default: "null",
2381
2411
  description: "dollar-variable-pattern"
2382
2412
  }
2383
- ]
2413
+ ],
2414
+ tags: ["scss"]
2384
2415
  },
2385
2416
  {
2386
2417
  id: "Stylelint_scss_double-slash-comment-empty-line-before",
@@ -2395,7 +2426,8 @@ var patterns_default = [
2395
2426
  default: "null",
2396
2427
  description: "double-slash-comment-empty-line-before"
2397
2428
  }
2398
- ]
2429
+ ],
2430
+ tags: ["scss"]
2399
2431
  },
2400
2432
  {
2401
2433
  id: "Stylelint_scss_double-slash-comment-inline",
@@ -2410,7 +2442,8 @@ var patterns_default = [
2410
2442
  default: "null",
2411
2443
  description: "double-slash-comment-inline"
2412
2444
  }
2413
- ]
2445
+ ],
2446
+ tags: ["scss"]
2414
2447
  },
2415
2448
  {
2416
2449
  id: "Stylelint_scss_double-slash-comment-whitespace-inside",
@@ -2425,7 +2458,8 @@ var patterns_default = [
2425
2458
  default: "null",
2426
2459
  description: "double-slash-comment-whitespace-inside"
2427
2460
  }
2428
- ]
2461
+ ],
2462
+ tags: ["scss"]
2429
2463
  },
2430
2464
  {
2431
2465
  id: "Stylelint_scss_function-calculation-no-interpolation",
@@ -2470,7 +2504,8 @@ var patterns_default = [
2470
2504
  default: "null",
2471
2505
  description: "function-color-relative"
2472
2506
  }
2473
- ]
2507
+ ],
2508
+ tags: ["sass"]
2474
2509
  },
2475
2510
  {
2476
2511
  id: "Stylelint_scss_function-disallowed-list",
@@ -2485,7 +2520,8 @@ var patterns_default = [
2485
2520
  default: "null",
2486
2521
  description: "function-disallowed-list"
2487
2522
  }
2488
- ]
2523
+ ],
2524
+ tags: ["scss"]
2489
2525
  },
2490
2526
  {
2491
2527
  id: "Stylelint_scss_function-no-unknown",
@@ -2500,7 +2536,8 @@ var patterns_default = [
2500
2536
  default: "true",
2501
2537
  description: "function-no-unknown"
2502
2538
  }
2503
- ]
2539
+ ],
2540
+ tags: ["scss"]
2504
2541
  },
2505
2542
  {
2506
2543
  id: "Stylelint_scss_function-quote-no-quoted-strings-inside",
@@ -2515,7 +2552,8 @@ var patterns_default = [
2515
2552
  default: "null",
2516
2553
  description: "function-quote-no-quoted-strings-inside"
2517
2554
  }
2518
- ]
2555
+ ],
2556
+ tags: ["scss"]
2519
2557
  },
2520
2558
  {
2521
2559
  id: "Stylelint_scss_function-unquote-no-unquoted-strings-inside",
@@ -2530,7 +2568,8 @@ var patterns_default = [
2530
2568
  default: "null",
2531
2569
  description: "function-unquote-no-unquoted-strings-inside"
2532
2570
  }
2533
- ]
2571
+ ],
2572
+ tags: ["scss"]
2534
2573
  },
2535
2574
  {
2536
2575
  id: "Stylelint_scss_load-no-partial-leading-underscore",
@@ -2545,7 +2584,8 @@ var patterns_default = [
2545
2584
  default: "null",
2546
2585
  description: "load-no-partial-leading-underscore"
2547
2586
  }
2548
- ]
2587
+ ],
2588
+ tags: ["scss"]
2549
2589
  },
2550
2590
  {
2551
2591
  id: "Stylelint_scss_load-partial-extension",
@@ -2560,7 +2600,8 @@ var patterns_default = [
2560
2600
  default: "null",
2561
2601
  description: "load-partial-extension"
2562
2602
  }
2563
- ]
2603
+ ],
2604
+ tags: ["scss"]
2564
2605
  },
2565
2606
  {
2566
2607
  id: "Stylelint_scss_map-keys-quotes",
@@ -2620,7 +2661,8 @@ var patterns_default = [
2620
2661
  default: "null",
2621
2662
  description: "no-duplicate-dollar-variables"
2622
2663
  }
2623
- ]
2664
+ ],
2665
+ tags: ["scss"]
2624
2666
  },
2625
2667
  {
2626
2668
  id: "Stylelint_scss_no-duplicate-load-rules",
@@ -2650,7 +2692,8 @@ var patterns_default = [
2650
2692
  default: "null",
2651
2693
  description: "no-duplicate-mixins"
2652
2694
  }
2653
- ]
2695
+ ],
2696
+ tags: ["scss"]
2654
2697
  },
2655
2698
  {
2656
2699
  id: "Stylelint_scss_no-global-function-names",
@@ -2695,7 +2738,8 @@ var patterns_default = [
2695
2738
  default: "null",
2696
2739
  description: "operator-no-newline-after"
2697
2740
  }
2698
- ]
2741
+ ],
2742
+ tags: ["sass"]
2699
2743
  },
2700
2744
  {
2701
2745
  id: "Stylelint_scss_operator-no-newline-before",
@@ -2725,7 +2769,8 @@ var patterns_default = [
2725
2769
  default: "null",
2726
2770
  description: "operator-no-unspaced"
2727
2771
  }
2728
- ]
2772
+ ],
2773
+ tags: ["sass"]
2729
2774
  },
2730
2775
  {
2731
2776
  id: "Stylelint_scss_partial-no-import",
@@ -2740,7 +2785,8 @@ var patterns_default = [
2740
2785
  default: "null",
2741
2786
  description: "partial-no-import"
2742
2787
  }
2743
- ]
2788
+ ],
2789
+ tags: ["scss"]
2744
2790
  },
2745
2791
  {
2746
2792
  id: "Stylelint_scss_percent-placeholder-pattern",
@@ -2755,7 +2801,8 @@ var patterns_default = [
2755
2801
  default: "null",
2756
2802
  description: "percent-placeholder-pattern"
2757
2803
  }
2758
- ]
2804
+ ],
2805
+ tags: ["scss"]
2759
2806
  },
2760
2807
  {
2761
2808
  id: "Stylelint_scss_property-no-unknown",
@@ -2785,7 +2832,8 @@ var patterns_default = [
2785
2832
  default: "null",
2786
2833
  description: "selector-nest-combinators"
2787
2834
  }
2788
- ]
2835
+ ],
2836
+ tags: ["scss"]
2789
2837
  },
2790
2838
  {
2791
2839
  id: "Stylelint_scss_selector-no-redundant-nesting-selector",
@@ -2800,7 +2848,8 @@ var patterns_default = [
2800
2848
  default: "null",
2801
2849
  description: "selector-no-redundant-nesting-selector"
2802
2850
  }
2803
- ]
2851
+ ],
2852
+ tags: ["scss", "less"]
2804
2853
  },
2805
2854
  {
2806
2855
  id: "Stylelint_scss_selector-no-union-class-name",
@@ -3449,7 +3498,15 @@ var patterns_default = [
3449
3498
  }
3450
3499
  ];
3451
3500
 
3501
+ // src/pattern-mappings.json
3502
+ var pattern_mappings_default = {
3503
+ SASS: {
3504
+ prefixes: ["Stylelint_scss_"]
3505
+ }
3506
+ };
3507
+
3452
3508
  // src/metadata.ts
3509
+ var frameworkMappings = pattern_mappings_default;
3453
3510
  var descriptor = {
3454
3511
  id: "Stylelint",
3455
3512
  displayName: "Stylelint",
@@ -3458,7 +3515,8 @@ var descriptor = {
3458
3515
  filePatterns: ["**/*.css", "**/*.scss", "**/*.less"],
3459
3516
  supportedOS: ["linux", "darwin", "win32"],
3460
3517
  supportedArch: ["x64", "arm64"],
3461
- supportedRunners: ["local", "container"]
3518
+ supportedRunners: ["local", "container"],
3519
+ frameworkMappings
3462
3520
  };
3463
3521
 
3464
3522
  // src/plugin-registry.ts
@@ -3613,6 +3671,7 @@ async function importStylelint() {
3613
3671
  }
3614
3672
  var adapter = {
3615
3673
  ...descriptor,
3674
+ patternsMetadata: patterns_default,
3616
3675
  compatibleVersions: ">=16.0.0 <17.0.0",
3617
3676
  website: "https://stylelint.io",
3618
3677
  prerequisites: [],
package/dist/metadata.js CHANGED
@@ -23,6 +23,16 @@ __export(metadata_exports, {
23
23
  descriptor: () => descriptor
24
24
  });
25
25
  module.exports = __toCommonJS(metadata_exports);
26
+
27
+ // src/pattern-mappings.json
28
+ var pattern_mappings_default = {
29
+ SASS: {
30
+ prefixes: ["Stylelint_scss_"]
31
+ }
32
+ };
33
+
34
+ // src/metadata.ts
35
+ var frameworkMappings = pattern_mappings_default;
26
36
  var descriptor = {
27
37
  id: "Stylelint",
28
38
  displayName: "Stylelint",
@@ -31,7 +41,8 @@ var descriptor = {
31
41
  filePatterns: ["**/*.css", "**/*.scss", "**/*.less"],
32
42
  supportedOS: ["linux", "darwin", "win32"],
33
43
  supportedArch: ["x64", "arm64"],
34
- supportedRunners: ["local", "container"]
44
+ supportedRunners: ["local", "container"],
45
+ frameworkMappings
35
46
  };
36
47
  // Annotate the CommonJS export names for ESM import in node:
37
48
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/tools-stylelint-0",
3
- "version": "0.6.1",
3
+ "version": "0.8.0",
4
4
  "description": "Stylelint adapter — Library-mode CSS/SCSS/Less linter",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "stylelint": "^16.0.0",
13
13
  "stylelint-config-standard": "^36.0.0",
14
14
  "stylelint-scss": "^6.12.1",
15
- "@codacy/tooling": "0.6.1"
15
+ "@codacy/tooling": "0.8.0"
16
16
  },
17
17
  "license": "MIT",
18
18
  "author": "Codacy <support@codacy.com> (https://www.codacy.com)",