1234567891011121314151617181920212223242526272829303132333435 |
- 'use strict';
- const checkAgainstRule = require('./utils/checkAgainstRule');
- const createPlugin = require('./createPlugin');
- const createStylelint = require('./createStylelint');
- const formatters = require('./formatters');
- const postcssPlugin = require('./postcssPlugin');
- const report = require('./utils/report');
- const resolveConfig = require('./resolveConfig');
- const ruleMessages = require('./utils/ruleMessages');
- const rules = require('./rules');
- const { longhandSubPropertiesOfShorthandProperties } = require('./reference/properties');
- const standalone = require('./standalone');
- const validateOptions = require('./utils/validateOptions');
- /** @type {import('stylelint').PublicApi} */
- const stylelint = Object.assign(postcssPlugin, {
- lint: standalone,
- rules,
- formatters,
- createPlugin,
- resolveConfig,
- createLinter: createStylelint,
- utils: {
- report,
- ruleMessages,
- validateOptions,
- checkAgainstRule,
- },
- reference: {
- longhandSubPropertiesOfShorthandProperties,
- },
- });
- module.exports = stylelint;
|