How to use stylelint-config-standard - 1 common examples

To help you get started, we’ve selected a few stylelint-config-standard examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github connectivedx / fuzzy-chainsaw / submodules / task-lint-styles / lib / getOptions.js View on Github external
rules: {}
    }
  };

  if (options === undefined) {
    throw new Error(PluginName + ': options are not defined');
  }

  if (options.src === undefined) {
    throw new Error(PluginName + ': options.src is not defined');
  } else {
    opts.src = options.src
  }

  // assign rules
  Object.assign(opts.lintConfig.rules, defaultConfig.rules, ourRules, options.rules);

  return opts;
}

stylelint-config-standard

Standard shareable config for Stylelint

MIT
Latest version published 5 months ago

Package Health Score

87 / 100
Full package analysis

Popular stylelint-config-standard functions