linter-bundle 3.10.0 → 4.0.1

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.
@@ -6,6 +6,8 @@
6
6
 
7
7
  const path = require('node:path');
8
8
 
9
+ const config = require('../helper/config.js');
10
+
9
11
  module.exports = {
10
12
  reportNeedlessDisables: true,
11
13
  reportInvalidScopeDisables: true,
@@ -111,10 +113,10 @@ module.exports = {
111
113
  'comment-pattern': /^[^\s].+[^\s]$/u,
112
114
  'comment-whitespace-inside': 'always',
113
115
  'comment-word-disallowed-list': null,
114
- 'custom-media-pattern': (global.linterBundleSettings?.patternPrefix ? `${global.linterBundleSettings.patternPrefix}-[a-z][a-zA-Z]+(-[a-z][a-zA-Z]+\\d*)+` : null),
116
+ 'custom-media-pattern': (config.sass?.patternPrefix ? `${config.sass.patternPrefix}-[a-z][a-zA-Z]+(-[a-z][a-zA-Z]+\\d*)+` : null),
115
117
  'custom-property-empty-line-before': null, // Empty lines between custom properties are optional
116
118
  'custom-property-no-missing-var-function': true,
117
- 'custom-property-pattern': (global.linterBundleSettings?.patternPrefix ? `${global.linterBundleSettings.patternPrefix}-[a-z][a-zA-Z]+(-[a-z][a-zA-Z]+\\d*)*` : null),
119
+ 'custom-property-pattern': (config.sass?.patternPrefix ? `${config.sass.patternPrefix}-[a-z][a-zA-Z]+(-[a-z][a-zA-Z]+\\d*)*` : null),
118
120
  'declaration-block-no-duplicate-custom-properties': true,
119
121
  'declaration-block-no-duplicate-properties': [
120
122
  true,