create-docusaurus 0.0.0-4470 → 0.0.0-4485
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/lib/index.js +3 -4
- package/package.json +3 -3
- package/templates/classic/package.json +3 -3
- package/templates/classic-typescript/package.json +4 -4
- package/templates/facebook/package.json +3 -3
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/CHANGELOG.md +0 -18
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/LICENSE +0 -21
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/README.md +0 -91
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/camel-case.js +0 -13
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/extract.js +0 -462
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/get-template.js +0 -7
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/index.js +0 -6
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/literal.js +0 -23
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/object-parse.js +0 -15
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/object-parser.js +0 -357
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/object-stringifier.js +0 -153
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/object-stringify.js +0 -9
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/object-syntax.js +0 -11
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/object.js +0 -24
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/package.json +0 -119
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/template-parse.js +0 -19
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/template-parser-helper.js +0 -260
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/template-parser.js +0 -20
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/template-safe-parse.js +0 -19
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/template-safe-parser.js +0 -21
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/template-stringifier.js +0 -23
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/template-stringify.js +0 -9
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/template-tokenize.js +0 -67
- package/templates/facebook/node_modules/@stylelint/postcss-css-in-js/un-camel-case.js +0 -13
- package/templates/facebook/node_modules/@stylelint/postcss-markdown/CHANGELOG.md +0 -13
- package/templates/facebook/node_modules/@stylelint/postcss-markdown/LICENSE +0 -21
- package/templates/facebook/node_modules/@stylelint/postcss-markdown/README.md +0 -92
- package/templates/facebook/node_modules/@stylelint/postcss-markdown/extract.js +0 -42
- package/templates/facebook/node_modules/@stylelint/postcss-markdown/index.js +0 -5
- package/templates/facebook/node_modules/@stylelint/postcss-markdown/package.json +0 -63
- package/templates/facebook/node_modules/autoprefixer/LICENSE +0 -20
- package/templates/facebook/node_modules/autoprefixer/README.md +0 -73
- package/templates/facebook/node_modules/autoprefixer/bin/autoprefixer +0 -22
- package/templates/facebook/node_modules/autoprefixer/data/prefixes.js +0 -714
- package/templates/facebook/node_modules/autoprefixer/lib/at-rule.js +0 -62
- package/templates/facebook/node_modules/autoprefixer/lib/autoprefixer.js +0 -150
- package/templates/facebook/node_modules/autoprefixer/lib/brackets.js +0 -64
- package/templates/facebook/node_modules/autoprefixer/lib/browsers.js +0 -96
- package/templates/facebook/node_modules/autoprefixer/lib/declaration.js +0 -243
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/align-content.js +0 -79
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/align-items.js +0 -76
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/align-self.js +0 -84
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/animation.js +0 -35
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/appearance.js +0 -39
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/backdrop-filter.js +0 -35
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/background-clip.js +0 -41
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/background-size.js +0 -38
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/block-logical.js +0 -48
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/border-image.js +0 -33
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/border-radius.js +0 -62
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/break-props.js +0 -76
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/color-adjust.js +0 -40
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/cross-fade.js +0 -54
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/display-flex.js +0 -94
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/display-grid.js +0 -41
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/filter-value.js +0 -31
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/filter.js +0 -33
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/flex-basis.js +0 -72
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/flex-direction.js +0 -108
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/flex-flow.js +0 -81
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/flex-grow.js +0 -57
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/flex-shrink.js +0 -72
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/flex-spec.js +0 -22
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/flex-wrap.js +0 -40
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/flex.js +0 -85
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/fullscreen.js +0 -40
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/gradient.js +0 -519
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/grid-area.js +0 -52
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/grid-column-align.js +0 -48
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/grid-end.js +0 -62
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/grid-row-align.js +0 -48
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/grid-row-column.js +0 -52
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/grid-rows-columns.js +0 -149
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/grid-start.js +0 -55
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/grid-template-areas.js +0 -101
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/grid-template.js +0 -90
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/grid-utils.js +0 -1123
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/image-rendering.js +0 -71
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/image-set.js +0 -38
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/inline-logical.js +0 -40
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/intrinsic.js +0 -74
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/justify-content.js +0 -85
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/mask-border.js +0 -46
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/mask-composite.js +0 -104
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/order.js +0 -72
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/overscroll-behavior.js +0 -54
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/pixelated.js +0 -58
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/place-self.js +0 -55
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/placeholder-shown.js +0 -36
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/placeholder.js +0 -56
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js +0 -38
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/text-decoration.js +0 -36
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/text-emphasis-position.js +0 -33
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/transform-decl.js +0 -105
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/user-select.js +0 -36
- package/templates/facebook/node_modules/autoprefixer/lib/hacks/writing-mode.js +0 -59
- package/templates/facebook/node_modules/autoprefixer/lib/info.js +0 -149
- package/templates/facebook/node_modules/autoprefixer/lib/old-selector.js +0 -88
- package/templates/facebook/node_modules/autoprefixer/lib/old-value.js +0 -30
- package/templates/facebook/node_modules/autoprefixer/lib/prefixer.js +0 -167
- package/templates/facebook/node_modules/autoprefixer/lib/prefixes.js +0 -471
- package/templates/facebook/node_modules/autoprefixer/lib/processor.js +0 -703
- package/templates/facebook/node_modules/autoprefixer/lib/resolution.js +0 -125
- package/templates/facebook/node_modules/autoprefixer/lib/selector.js +0 -198
- package/templates/facebook/node_modules/autoprefixer/lib/supports.js +0 -346
- package/templates/facebook/node_modules/autoprefixer/lib/transition.js +0 -411
- package/templates/facebook/node_modules/autoprefixer/lib/utils.js +0 -103
- package/templates/facebook/node_modules/autoprefixer/lib/value.js +0 -164
- package/templates/facebook/node_modules/autoprefixer/package.json +0 -30
- package/templates/facebook/node_modules/known-css-properties/LICENSE +0 -21
- package/templates/facebook/node_modules/known-css-properties/README.md +0 -48
- package/templates/facebook/node_modules/known-css-properties/data/all.json +0 -1144
- package/templates/facebook/node_modules/known-css-properties/index.js +0 -1
- package/templates/facebook/node_modules/known-css-properties/package.json +0 -56
- package/templates/facebook/node_modules/meow/index.d.ts +0 -315
- package/templates/facebook/node_modules/meow/index.js +0 -236
- package/templates/facebook/node_modules/meow/license +0 -9
- package/templates/facebook/node_modules/meow/package.json +0 -77
- package/templates/facebook/node_modules/meow/readme.md +0 -352
- package/templates/facebook/node_modules/picocolors/LICENSE +0 -15
- package/templates/facebook/node_modules/picocolors/README.md +0 -23
- package/templates/facebook/node_modules/picocolors/package.json +0 -25
- package/templates/facebook/node_modules/picocolors/picocolors.browser.js +0 -4
- package/templates/facebook/node_modules/picocolors/picocolors.d.ts +0 -5
- package/templates/facebook/node_modules/picocolors/picocolors.js +0 -60
- package/templates/facebook/node_modules/picocolors/types.ts +0 -30
- package/templates/facebook/node_modules/postcss/LICENSE +0 -20
- package/templates/facebook/node_modules/postcss/README.md +0 -43
- package/templates/facebook/node_modules/postcss/lib/at-rule.js +0 -127
- package/templates/facebook/node_modules/postcss/lib/comment.js +0 -55
- package/templates/facebook/node_modules/postcss/lib/container.js +0 -774
- package/templates/facebook/node_modules/postcss/lib/css-syntax-error.js +0 -296
- package/templates/facebook/node_modules/postcss/lib/declaration.js +0 -96
- package/templates/facebook/node_modules/postcss/lib/input.js +0 -214
- package/templates/facebook/node_modules/postcss/lib/lazy-result.js +0 -437
- package/templates/facebook/node_modules/postcss/lib/list.js +0 -93
- package/templates/facebook/node_modules/postcss/lib/map-generator.js +0 -347
- package/templates/facebook/node_modules/postcss/lib/node.js +0 -606
- package/templates/facebook/node_modules/postcss/lib/parse.js +0 -40
- package/templates/facebook/node_modules/postcss/lib/parser.js +0 -609
- package/templates/facebook/node_modules/postcss/lib/postcss.d.ts +0 -1283
- package/templates/facebook/node_modules/postcss/lib/postcss.js +0 -285
- package/templates/facebook/node_modules/postcss/lib/previous-map.js +0 -172
- package/templates/facebook/node_modules/postcss/lib/processor.js +0 -264
- package/templates/facebook/node_modules/postcss/lib/result.js +0 -213
- package/templates/facebook/node_modules/postcss/lib/root.js +0 -122
- package/templates/facebook/node_modules/postcss/lib/rule.js +0 -116
- package/templates/facebook/node_modules/postcss/lib/stringifier.js +0 -362
- package/templates/facebook/node_modules/postcss/lib/stringify.js +0 -18
- package/templates/facebook/node_modules/postcss/lib/terminal-highlight.js +0 -84
- package/templates/facebook/node_modules/postcss/lib/tokenize.js +0 -295
- package/templates/facebook/node_modules/postcss/lib/vendor.js +0 -53
- package/templates/facebook/node_modules/postcss/lib/warn-once.js +0 -17
- package/templates/facebook/node_modules/postcss/lib/warning.js +0 -131
- package/templates/facebook/node_modules/postcss/package.json +0 -37
- package/templates/facebook/node_modules/postcss-html/LICENSE +0 -21
- package/templates/facebook/node_modules/postcss-html/README.md +0 -78
- package/templates/facebook/node_modules/postcss-html/extract.js +0 -122
- package/templates/facebook/node_modules/postcss-html/index.js +0 -5
- package/templates/facebook/node_modules/postcss-html/package.json +0 -63
- package/templates/facebook/node_modules/postcss-html/template-parse.js +0 -14
- package/templates/facebook/node_modules/postcss-html/template-parser.js +0 -9
- package/templates/facebook/node_modules/postcss-html/template-safe-parse.js +0 -14
- package/templates/facebook/node_modules/postcss-html/template-safe-parser.js +0 -9
- package/templates/facebook/node_modules/postcss-html/template-tokenize.js +0 -49
- package/templates/facebook/node_modules/postcss-safe-parser/CHANGELOG.md +0 -51
- package/templates/facebook/node_modules/postcss-safe-parser/LICENSE +0 -20
- package/templates/facebook/node_modules/postcss-safe-parser/README.md +0 -33
- package/templates/facebook/node_modules/postcss-safe-parser/lib/safe-parse.js +0 -13
- package/templates/facebook/node_modules/postcss-safe-parser/lib/safe-parser.js +0 -115
- package/templates/facebook/node_modules/postcss-safe-parser/package.json +0 -102
- package/templates/facebook/node_modules/postcss-syntax/LICENSE +0 -21
- package/templates/facebook/node_modules/postcss-syntax/README.md +0 -85
- package/templates/facebook/node_modules/postcss-syntax/document.js +0 -41
- package/templates/facebook/node_modules/postcss-syntax/get-lang.js +0 -111
- package/templates/facebook/node_modules/postcss-syntax/get-syntax.js +0 -63
- package/templates/facebook/node_modules/postcss-syntax/index.js +0 -26
- package/templates/facebook/node_modules/postcss-syntax/load-syntax.js +0 -23
- package/templates/facebook/node_modules/postcss-syntax/normal-opts.js +0 -11
- package/templates/facebook/node_modules/postcss-syntax/package.json +0 -102
- package/templates/facebook/node_modules/postcss-syntax/parse-style.js +0 -127
- package/templates/facebook/node_modules/postcss-syntax/parse.js +0 -34
- package/templates/facebook/node_modules/postcss-syntax/parser.js +0 -18
- package/templates/facebook/node_modules/postcss-syntax/patch-postcss.js +0 -77
- package/templates/facebook/node_modules/postcss-syntax/processor.js +0 -29
- package/templates/facebook/node_modules/postcss-syntax/stringify.js +0 -20
- package/templates/facebook/node_modules/postcss-syntax/syntax.js +0 -37
- package/templates/facebook/node_modules/remark/index.js +0 -7
- package/templates/facebook/node_modules/remark/package.json +0 -46
- package/templates/facebook/node_modules/remark/readme.md +0 -260
- package/templates/facebook/node_modules/remark/types/index.d.ts +0 -19
- package/templates/facebook/node_modules/remark-parse/index.js +0 -24
- package/templates/facebook/node_modules/remark-parse/package.json +0 -46
- package/templates/facebook/node_modules/remark-parse/readme.md +0 -197
- package/templates/facebook/node_modules/remark-parse/types/index.d.ts +0 -14
- package/templates/facebook/node_modules/remark-stringify/index.js +0 -23
- package/templates/facebook/node_modules/remark-stringify/license +0 -22
- package/templates/facebook/node_modules/remark-stringify/package.json +0 -46
- package/templates/facebook/node_modules/remark-stringify/readme.md +0 -217
- package/templates/facebook/node_modules/remark-stringify/types/index.d.ts +0 -14
- package/templates/facebook/node_modules/stylelint/CHANGELOG.md +0 -1701
- package/templates/facebook/node_modules/stylelint/CONTRIBUTING.md +0 -81
- package/templates/facebook/node_modules/stylelint/LICENSE +0 -20
- package/templates/facebook/node_modules/stylelint/README.md +0 -48
- package/templates/facebook/node_modules/stylelint/bin/stylelint.js +0 -8
- package/templates/facebook/node_modules/stylelint/docs/about/linting.md +0 -34
- package/templates/facebook/node_modules/stylelint/docs/about/semantic-versioning.md +0 -37
- package/templates/facebook/node_modules/stylelint/docs/about/syntaxes.md +0 -18
- package/templates/facebook/node_modules/stylelint/docs/about/vision.md +0 -63
- package/templates/facebook/node_modules/stylelint/docs/developer-guide/formatters.md +0 -77
- package/templates/facebook/node_modules/stylelint/docs/developer-guide/plugins.md +0 -324
- package/templates/facebook/node_modules/stylelint/docs/developer-guide/processors.md +0 -28
- package/templates/facebook/node_modules/stylelint/docs/developer-guide/rules.md +0 -244
- package/templates/facebook/node_modules/stylelint/docs/developer-guide/syntaxes.md +0 -35
- package/templates/facebook/node_modules/stylelint/docs/developer-guide/system-tests.md +0 -23
- package/templates/facebook/node_modules/stylelint/docs/maintainer-guide/issues.md +0 -94
- package/templates/facebook/node_modules/stylelint/docs/maintainer-guide/pull-requests.md +0 -33
- package/templates/facebook/node_modules/stylelint/docs/maintainer-guide/releases.md +0 -47
- package/templates/facebook/node_modules/stylelint/docs/toc.md +0 -37
- package/templates/facebook/node_modules/stylelint/docs/user-guide/configure.md +0 -420
- package/templates/facebook/node_modules/stylelint/docs/user-guide/errors.md +0 -29
- package/templates/facebook/node_modules/stylelint/docs/user-guide/get-started.md +0 -55
- package/templates/facebook/node_modules/stylelint/docs/user-guide/ignore-code.md +0 -88
- package/templates/facebook/node_modules/stylelint/docs/user-guide/integrations/editor.md +0 -12
- package/templates/facebook/node_modules/stylelint/docs/user-guide/integrations/other.md +0 -19
- package/templates/facebook/node_modules/stylelint/docs/user-guide/integrations/task-runner.md +0 -10
- package/templates/facebook/node_modules/stylelint/docs/user-guide/rules/about.md +0 -203
- package/templates/facebook/node_modules/stylelint/docs/user-guide/rules/combine.md +0 -360
- package/templates/facebook/node_modules/stylelint/docs/user-guide/rules/list.md +0 -399
- package/templates/facebook/node_modules/stylelint/docs/user-guide/rules/regex.md +0 -29
- package/templates/facebook/node_modules/stylelint/docs/user-guide/usage/cli.md +0 -195
- package/templates/facebook/node_modules/stylelint/docs/user-guide/usage/node-api.md +0 -169
- package/templates/facebook/node_modules/stylelint/docs/user-guide/usage/options.md +0 -208
- package/templates/facebook/node_modules/stylelint/docs/user-guide/usage/postcss-plugin.md +0 -84
- package/templates/facebook/node_modules/stylelint/lib/assignDisabledRanges.js +0 -407
- package/templates/facebook/node_modules/stylelint/lib/augmentConfig.js +0 -359
- package/templates/facebook/node_modules/stylelint/lib/cli.js +0 -544
- package/templates/facebook/node_modules/stylelint/lib/createPartialStylelintResult.js +0 -103
- package/templates/facebook/node_modules/stylelint/lib/createPlugin.js +0 -15
- package/templates/facebook/node_modules/stylelint/lib/createStylelint.js +0 -88
- package/templates/facebook/node_modules/stylelint/lib/createStylelintResult.js +0 -39
- package/templates/facebook/node_modules/stylelint/lib/descriptionlessDisables.js +0 -62
- package/templates/facebook/node_modules/stylelint/lib/formatters/compactFormatter.js +0 -20
- package/templates/facebook/node_modules/stylelint/lib/formatters/index.js +0 -12
- package/templates/facebook/node_modules/stylelint/lib/formatters/jsonFormatter.js +0 -20
- package/templates/facebook/node_modules/stylelint/lib/formatters/stringFormatter.js +0 -225
- package/templates/facebook/node_modules/stylelint/lib/formatters/tapFormatter.js +0 -39
- package/templates/facebook/node_modules/stylelint/lib/formatters/unixFormatter.js +0 -26
- package/templates/facebook/node_modules/stylelint/lib/formatters/verboseFormatter.js +0 -61
- package/templates/facebook/node_modules/stylelint/lib/getConfigForFile.js +0 -61
- package/templates/facebook/node_modules/stylelint/lib/getPostcssResult.js +0 -182
- package/templates/facebook/node_modules/stylelint/lib/index.js +0 -33
- package/templates/facebook/node_modules/stylelint/lib/invalidScopeDisables.js +0 -50
- package/templates/facebook/node_modules/stylelint/lib/isPathIgnored.js +0 -48
- package/templates/facebook/node_modules/stylelint/lib/lintPostcssResult.js +0 -134
- package/templates/facebook/node_modules/stylelint/lib/lintSource.js +0 -133
- package/templates/facebook/node_modules/stylelint/lib/needlessDisables.js +0 -110
- package/templates/facebook/node_modules/stylelint/lib/normalizeAllRuleSettings.js +0 -41
- package/templates/facebook/node_modules/stylelint/lib/normalizeRuleSettings.js +0 -74
- package/templates/facebook/node_modules/stylelint/lib/postcssPlugin.js +0 -25
- package/templates/facebook/node_modules/stylelint/lib/prepareReturnValue.js +0 -59
- package/templates/facebook/node_modules/stylelint/lib/printConfig.js +0 -58
- package/templates/facebook/node_modules/stylelint/lib/reference/keywordSets.js +0 -690
- package/templates/facebook/node_modules/stylelint/lib/reference/mathFunctions.js +0 -3
- package/templates/facebook/node_modules/stylelint/lib/reference/namedColorData.js +0 -152
- package/templates/facebook/node_modules/stylelint/lib/reference/propertySets.js +0 -18
- package/templates/facebook/node_modules/stylelint/lib/reference/punctuationSets.js +0 -9
- package/templates/facebook/node_modules/stylelint/lib/reference/shorthandData.js +0 -143
- package/templates/facebook/node_modules/stylelint/lib/reportDisables.js +0 -62
- package/templates/facebook/node_modules/stylelint/lib/reportUnknownRuleNames.js +0 -76
- package/templates/facebook/node_modules/stylelint/lib/rules/alpha-value-notation/README.md +0 -110
- package/templates/facebook/node_modules/stylelint/lib/rules/alpha-value-notation/index.js +0 -160
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-allowed-list/README.md +0 -65
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-allowed-list/index.js +0 -57
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-blacklist/README.md +0 -52
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-blacklist/index.js +0 -64
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-disallowed-list/README.md +0 -50
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-disallowed-list/index.js +0 -57
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-empty-line-before/README.md +0 -421
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-empty-line-before/index.js +0 -161
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-name-case/README.md +0 -110
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-name-case/index.js +0 -58
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-name-newline-after/README.md +0 -108
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-name-newline-after/index.js +0 -40
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-name-space-after/README.md +0 -117
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-name-space-after/index.js +0 -45
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-no-unknown/README.md +0 -74
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-no-unknown/index.js +0 -67
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-no-vendor-prefix/README.md +0 -40
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-no-vendor-prefix/index.js +0 -58
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-property-required-list/README.md +0 -53
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-property-required-list/index.js +0 -65
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-property-requirelist/README.md +0 -55
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-property-requirelist/index.js +0 -74
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-semicolon-newline-after/README.md +0 -63
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-semicolon-newline-after/index.js +0 -78
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-semicolon-space-before/README.md +0 -50
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-semicolon-space-before/index.js +0 -63
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-whitelist/README.md +0 -67
- package/templates/facebook/node_modules/stylelint/lib/rules/at-rule-whitelist/index.js +0 -64
- package/templates/facebook/node_modules/stylelint/lib/rules/atRuleNameSpaceChecker.js +0 -43
- package/templates/facebook/node_modules/stylelint/lib/rules/block-closing-brace-empty-line-before/README.md +0 -238
- package/templates/facebook/node_modules/stylelint/lib/rules/block-closing-brace-empty-line-before/index.js +0 -118
- package/templates/facebook/node_modules/stylelint/lib/rules/block-closing-brace-newline-after/README.md +0 -196
- package/templates/facebook/node_modules/stylelint/lib/rules/block-closing-brace-newline-after/index.js +0 -137
- package/templates/facebook/node_modules/stylelint/lib/rules/block-closing-brace-newline-before/README.md +0 -93
- package/templates/facebook/node_modules/stylelint/lib/rules/block-closing-brace-newline-before/index.js +0 -117
- package/templates/facebook/node_modules/stylelint/lib/rules/block-closing-brace-space-after/README.md +0 -179
- package/templates/facebook/node_modules/stylelint/lib/rules/block-closing-brace-space-after/index.js +0 -88
- package/templates/facebook/node_modules/stylelint/lib/rules/block-closing-brace-space-before/README.md +0 -174
- package/templates/facebook/node_modules/stylelint/lib/rules/block-closing-brace-space-before/index.js +0 -96
- package/templates/facebook/node_modules/stylelint/lib/rules/block-no-empty/README.md +0 -75
- package/templates/facebook/node_modules/stylelint/lib/rules/block-no-empty/index.js +0 -83
- package/templates/facebook/node_modules/stylelint/lib/rules/block-opening-brace-newline-after/README.md +0 -125
- package/templates/facebook/node_modules/stylelint/lib/rules/block-opening-brace-newline-after/index.js +0 -145
- package/templates/facebook/node_modules/stylelint/lib/rules/block-opening-brace-newline-before/README.md +0 -176
- package/templates/facebook/node_modules/stylelint/lib/rules/block-opening-brace-newline-before/index.js +0 -107
- package/templates/facebook/node_modules/stylelint/lib/rules/block-opening-brace-space-after/README.md +0 -174
- package/templates/facebook/node_modules/stylelint/lib/rules/block-opening-brace-space-after/index.js +0 -88
- package/templates/facebook/node_modules/stylelint/lib/rules/block-opening-brace-space-before/README.md +0 -218
- package/templates/facebook/node_modules/stylelint/lib/rules/block-opening-brace-space-before/index.js +0 -124
- package/templates/facebook/node_modules/stylelint/lib/rules/color-function-notation/README.md +0 -116
- package/templates/facebook/node_modules/stylelint/lib/rules/color-function-notation/index.js +0 -108
- package/templates/facebook/node_modules/stylelint/lib/rules/color-hex-case/README.md +0 -58
- package/templates/facebook/node_modules/stylelint/lib/rules/color-hex-case/index.js +0 -82
- package/templates/facebook/node_modules/stylelint/lib/rules/color-hex-length/README.md +0 -73
- package/templates/facebook/node_modules/stylelint/lib/rules/color-hex-length/index.js +0 -120
- package/templates/facebook/node_modules/stylelint/lib/rules/color-named/README.md +0 -176
- package/templates/facebook/node_modules/stylelint/lib/rules/color-named/generateColorFuncs.js +0 -198
- package/templates/facebook/node_modules/stylelint/lib/rules/color-named/index.js +0 -169
- package/templates/facebook/node_modules/stylelint/lib/rules/color-no-hex/README.md +0 -60
- package/templates/facebook/node_modules/stylelint/lib/rules/color-no-hex/index.js +0 -60
- package/templates/facebook/node_modules/stylelint/lib/rules/color-no-invalid-hex/README.md +0 -55
- package/templates/facebook/node_modules/stylelint/lib/rules/color-no-invalid-hex/index.js +0 -54
- package/templates/facebook/node_modules/stylelint/lib/rules/comment-empty-line-before/README.md +0 -195
- package/templates/facebook/node_modules/stylelint/lib/rules/comment-empty-line-before/index.js +0 -126
- package/templates/facebook/node_modules/stylelint/lib/rules/comment-no-empty/README.md +0 -51
- package/templates/facebook/node_modules/stylelint/lib/rules/comment-no-empty/index.js +0 -46
- package/templates/facebook/node_modules/stylelint/lib/rules/comment-pattern/README.md +0 -38
- package/templates/facebook/node_modules/stylelint/lib/rules/comment-pattern/index.js +0 -48
- package/templates/facebook/node_modules/stylelint/lib/rules/comment-whitespace-inside/README.md +0 -99
- package/templates/facebook/node_modules/stylelint/lib/rules/comment-whitespace-inside/index.js +0 -117
- package/templates/facebook/node_modules/stylelint/lib/rules/comment-word-blacklist/README.md +0 -50
- package/templates/facebook/node_modules/stylelint/lib/rules/comment-word-blacklist/index.js +0 -66
- package/templates/facebook/node_modules/stylelint/lib/rules/comment-word-disallowed-list/README.md +0 -48
- package/templates/facebook/node_modules/stylelint/lib/rules/comment-word-disallowed-list/index.js +0 -59
- package/templates/facebook/node_modules/stylelint/lib/rules/custom-media-pattern/README.md +0 -36
- package/templates/facebook/node_modules/stylelint/lib/rules/custom-media-pattern/index.js +0 -54
- package/templates/facebook/node_modules/stylelint/lib/rules/custom-property-empty-line-before/README.md +0 -272
- package/templates/facebook/node_modules/stylelint/lib/rules/custom-property-empty-line-before/index.js +0 -129
- package/templates/facebook/node_modules/stylelint/lib/rules/custom-property-pattern/README.md +0 -36
- package/templates/facebook/node_modules/stylelint/lib/rules/custom-property-pattern/index.js +0 -53
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-bang-space-after/README.md +0 -72
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-bang-space-after/index.js +0 -82
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-bang-space-before/README.md +0 -67
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-bang-space-before/index.js +0 -83
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-no-duplicate-custom-properties/README.md +0 -40
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-no-duplicate-custom-properties/index.js +0 -61
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-no-duplicate-properties/README.md +0 -143
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-no-duplicate-properties/index.js +0 -121
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-no-redundant-longhand-properties/README.md +0 -197
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-no-redundant-longhand-properties/index.js +0 -99
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-no-shorthand-property-overrides/README.md +0 -69
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-no-shorthand-property-overrides/index.js +0 -61
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-semicolon-newline-after/README.md +0 -141
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-semicolon-newline-after/index.js +0 -95
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-semicolon-newline-before/README.md +0 -120
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-semicolon-newline-before/index.js +0 -62
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-semicolon-space-after/README.md +0 -147
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-semicolon-space-after/index.js +0 -84
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-semicolon-space-before/README.md +0 -130
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-semicolon-space-before/index.js +0 -91
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-single-line-max-declarations/README.md +0 -50
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-single-line-max-declarations/index.js +0 -58
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-trailing-semicolon/README.md +0 -108
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-block-trailing-semicolon/index.js +0 -123
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-colon-newline-after/README.md +0 -78
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-colon-newline-after/index.js +0 -90
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-colon-space-after/README.md +0 -111
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-colon-space-after/index.js +0 -63
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-colon-space-before/README.md +0 -72
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-colon-space-before/index.js +0 -62
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-empty-line-before/README.md +0 -322
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-empty-line-before/index.js +0 -139
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-no-important/README.md +0 -40
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-no-important/index.js +0 -41
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-unit-allowed-list/README.md +0 -119
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-unit-allowed-list/index.js +0 -94
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-unit-blacklist/README.md +0 -76
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-unit-blacklist/index.js +0 -86
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-unit-disallowed-list/README.md +0 -74
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-unit-disallowed-list/index.js +0 -76
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-unit-whitelist/README.md +0 -87
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-unit-whitelist/index.js +0 -86
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-value-allowed-list/README.md +0 -86
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-value-allowed-list/index.js +0 -58
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-value-blacklist/README.md +0 -107
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-value-blacklist/index.js +0 -68
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-value-disallowed-list/README.md +0 -105
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-value-disallowed-list/index.js +0 -58
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-value-whitelist/README.md +0 -98
- package/templates/facebook/node_modules/stylelint/lib/rules/declaration-property-value-whitelist/index.js +0 -68
- package/templates/facebook/node_modules/stylelint/lib/rules/declarationBangSpaceChecker.js +0 -43
- package/templates/facebook/node_modules/stylelint/lib/rules/declarationColonSpaceChecker.js +0 -48
- package/templates/facebook/node_modules/stylelint/lib/rules/findMediaOperator.js +0 -24
- package/templates/facebook/node_modules/stylelint/lib/rules/font-family-name-quotes/README.md +0 -163
- package/templates/facebook/node_modules/stylelint/lib/rules/font-family-name-quotes/index.js +0 -147
- package/templates/facebook/node_modules/stylelint/lib/rules/font-family-no-duplicate-names/README.md +0 -76
- package/templates/facebook/node_modules/stylelint/lib/rules/font-family-no-duplicate-names/index.js +0 -103
- package/templates/facebook/node_modules/stylelint/lib/rules/font-family-no-missing-generic-family-keyword/README.md +0 -89
- package/templates/facebook/node_modules/stylelint/lib/rules/font-family-no-missing-generic-family-keyword/index.js +0 -97
- package/templates/facebook/node_modules/stylelint/lib/rules/font-weight-notation/README.md +0 -94
- package/templates/facebook/node_modules/stylelint/lib/rules/font-weight-notation/index.js +0 -154
- package/templates/facebook/node_modules/stylelint/lib/rules/function-allowed-list/README.md +0 -73
- package/templates/facebook/node_modules/stylelint/lib/rules/function-allowed-list/index.js +0 -66
- package/templates/facebook/node_modules/stylelint/lib/rules/function-blacklist/README.md +0 -54
- package/templates/facebook/node_modules/stylelint/lib/rules/function-blacklist/index.js +0 -71
- package/templates/facebook/node_modules/stylelint/lib/rules/function-calc-no-invalid/README.md +0 -96
- package/templates/facebook/node_modules/stylelint/lib/rules/function-calc-no-invalid/index.js +0 -259
- package/templates/facebook/node_modules/stylelint/lib/rules/function-calc-no-unspaced-operator/README.md +0 -56
- package/templates/facebook/node_modules/stylelint/lib/rules/function-calc-no-unspaced-operator/index.js +0 -138
- package/templates/facebook/node_modules/stylelint/lib/rules/function-comma-newline-after/README.md +0 -113
- package/templates/facebook/node_modules/stylelint/lib/rules/function-comma-newline-after/index.js +0 -55
- package/templates/facebook/node_modules/stylelint/lib/rules/function-comma-newline-before/README.md +0 -129
- package/templates/facebook/node_modules/stylelint/lib/rules/function-comma-newline-before/index.js +0 -55
- package/templates/facebook/node_modules/stylelint/lib/rules/function-comma-space-after/README.md +0 -144
- package/templates/facebook/node_modules/stylelint/lib/rules/function-comma-space-after/index.js +0 -56
- package/templates/facebook/node_modules/stylelint/lib/rules/function-comma-space-before/README.md +0 -144
- package/templates/facebook/node_modules/stylelint/lib/rules/function-comma-space-before/index.js +0 -56
- package/templates/facebook/node_modules/stylelint/lib/rules/function-disallowed-list/README.md +0 -52
- package/templates/facebook/node_modules/stylelint/lib/rules/function-disallowed-list/index.js +0 -64
- package/templates/facebook/node_modules/stylelint/lib/rules/function-linear-gradient-no-nonstandard-direction/README.md +0 -77
- package/templates/facebook/node_modules/stylelint/lib/rules/function-linear-gradient-no-nonstandard-direction/index.js +0 -110
- package/templates/facebook/node_modules/stylelint/lib/rules/function-max-empty-lines/README.md +0 -78
- package/templates/facebook/node_modules/stylelint/lib/rules/function-max-empty-lines/index.js +0 -101
- package/templates/facebook/node_modules/stylelint/lib/rules/function-name-case/README.md +0 -181
- package/templates/facebook/node_modules/stylelint/lib/rules/function-name-case/index.js +0 -111
- package/templates/facebook/node_modules/stylelint/lib/rules/function-parentheses-newline-inside/README.md +0 -144
- package/templates/facebook/node_modules/stylelint/lib/rules/function-parentheses-newline-inside/index.js +0 -247
- package/templates/facebook/node_modules/stylelint/lib/rules/function-parentheses-space-inside/README.md +0 -140
- package/templates/facebook/node_modules/stylelint/lib/rules/function-parentheses-space-inside/index.js +0 -165
- package/templates/facebook/node_modules/stylelint/lib/rules/function-url-no-scheme-relative/README.md +0 -50
- package/templates/facebook/node_modules/stylelint/lib/rules/function-url-no-scheme-relative/index.js +0 -48
- package/templates/facebook/node_modules/stylelint/lib/rules/function-url-quotes/README.md +0 -120
- package/templates/facebook/node_modules/stylelint/lib/rules/function-url-quotes/index.js +0 -113
- package/templates/facebook/node_modules/stylelint/lib/rules/function-url-scheme-allowed-list/README.md +0 -76
- package/templates/facebook/node_modules/stylelint/lib/rules/function-url-scheme-allowed-list/index.js +0 -66
- package/templates/facebook/node_modules/stylelint/lib/rules/function-url-scheme-blacklist/README.md +0 -73
- package/templates/facebook/node_modules/stylelint/lib/rules/function-url-scheme-blacklist/index.js +0 -76
- package/templates/facebook/node_modules/stylelint/lib/rules/function-url-scheme-disallowed-list/README.md +0 -71
- package/templates/facebook/node_modules/stylelint/lib/rules/function-url-scheme-disallowed-list/index.js +0 -66
- package/templates/facebook/node_modules/stylelint/lib/rules/function-url-scheme-whitelist/README.md +0 -78
- package/templates/facebook/node_modules/stylelint/lib/rules/function-url-scheme-whitelist/index.js +0 -76
- package/templates/facebook/node_modules/stylelint/lib/rules/function-whitelist/README.md +0 -75
- package/templates/facebook/node_modules/stylelint/lib/rules/function-whitelist/index.js +0 -73
- package/templates/facebook/node_modules/stylelint/lib/rules/function-whitespace-after/README.md +0 -80
- package/templates/facebook/node_modules/stylelint/lib/rules/function-whitespace-after/index.js +0 -167
- package/templates/facebook/node_modules/stylelint/lib/rules/functionCommaSpaceChecker.js +0 -109
- package/templates/facebook/node_modules/stylelint/lib/rules/functionCommaSpaceFix.js +0 -34
- package/templates/facebook/node_modules/stylelint/lib/rules/hue-degree-notation/README.md +0 -74
- package/templates/facebook/node_modules/stylelint/lib/rules/hue-degree-notation/index.js +0 -122
- package/templates/facebook/node_modules/stylelint/lib/rules/indentation/README.md +0 -338
- package/templates/facebook/node_modules/stylelint/lib/rules/indentation/index.js +0 -615
- package/templates/facebook/node_modules/stylelint/lib/rules/index.js +0 -401
- package/templates/facebook/node_modules/stylelint/lib/rules/keyframe-declaration-no-important/README.md +0 -52
- package/templates/facebook/node_modules/stylelint/lib/rules/keyframe-declaration-no-important/index.js +0 -43
- package/templates/facebook/node_modules/stylelint/lib/rules/keyframes-name-pattern/README.md +0 -46
- package/templates/facebook/node_modules/stylelint/lib/rules/keyframes-name-pattern/index.js +0 -51
- package/templates/facebook/node_modules/stylelint/lib/rules/length-zero-no-unit/README.md +0 -69
- package/templates/facebook/node_modules/stylelint/lib/rules/length-zero-no-unit/index.js +0 -163
- package/templates/facebook/node_modules/stylelint/lib/rules/linebreaks/README.md +0 -21
- package/templates/facebook/node_modules/stylelint/lib/rules/linebreaks/index.js +0 -102
- package/templates/facebook/node_modules/stylelint/lib/rules/max-empty-lines/README.md +0 -116
- package/templates/facebook/node_modules/stylelint/lib/rules/max-empty-lines/index.js +0 -209
- package/templates/facebook/node_modules/stylelint/lib/rules/max-line-length/README.md +0 -151
- package/templates/facebook/node_modules/stylelint/lib/rules/max-line-length/index.js +0 -183
- package/templates/facebook/node_modules/stylelint/lib/rules/max-nesting-depth/README.md +0 -355
- package/templates/facebook/node_modules/stylelint/lib/rules/max-nesting-depth/index.js +0 -114
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-colon-space-after/README.md +0 -72
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-colon-space-after/index.js +0 -82
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-colon-space-before/README.md +0 -72
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-colon-space-before/index.js +0 -82
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-allowed-list/README.md +0 -64
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-allowed-list/index.js +0 -76
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-blacklist/README.md +0 -66
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-blacklist/index.js +0 -86
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-case/README.md +0 -108
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-case/index.js +0 -96
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-disallowed-list/README.md +0 -64
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-disallowed-list/index.js +0 -76
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-no-unknown/README.md +0 -94
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-no-unknown/index.js +0 -88
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-no-vendor-prefix/README.md +0 -47
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-no-vendor-prefix/index.js +0 -58
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-value-allowed-list/README.md +0 -84
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-value-allowed-list/index.js +0 -89
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-value-whitelist/README.md +0 -86
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-value-whitelist/index.js +0 -99
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-whitelist/README.md +0 -66
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-name-whitelist/index.js +0 -86
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-parentheses-space-inside/README.md +0 -62
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-parentheses-space-inside/index.js +0 -106
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-range-operator-space-after/README.md +0 -72
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-range-operator-space-after/index.js +0 -92
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-range-operator-space-before/README.md +0 -72
- package/templates/facebook/node_modules/stylelint/lib/rules/media-feature-range-operator-space-before/index.js +0 -92
- package/templates/facebook/node_modules/stylelint/lib/rules/media-query-list-comma-newline-after/README.md +0 -113
- package/templates/facebook/node_modules/stylelint/lib/rules/media-query-list-comma-newline-after/index.js +0 -88
- package/templates/facebook/node_modules/stylelint/lib/rules/media-query-list-comma-newline-before/README.md +0 -111
- package/templates/facebook/node_modules/stylelint/lib/rules/media-query-list-comma-newline-before/index.js +0 -42
- package/templates/facebook/node_modules/stylelint/lib/rules/media-query-list-comma-space-after/README.md +0 -136
- package/templates/facebook/node_modules/stylelint/lib/rules/media-query-list-comma-space-after/index.js +0 -84
- package/templates/facebook/node_modules/stylelint/lib/rules/media-query-list-comma-space-before/README.md +0 -136
- package/templates/facebook/node_modules/stylelint/lib/rules/media-query-list-comma-space-before/index.js +0 -84
- package/templates/facebook/node_modules/stylelint/lib/rules/mediaFeatureColonSpaceChecker.js +0 -39
- package/templates/facebook/node_modules/stylelint/lib/rules/mediaQueryListCommaWhitespaceChecker.js +0 -54
- package/templates/facebook/node_modules/stylelint/lib/rules/named-grid-areas-no-invalid/README.md +0 -50
- package/templates/facebook/node_modules/stylelint/lib/rules/named-grid-areas-no-invalid/index.js +0 -80
- package/templates/facebook/node_modules/stylelint/lib/rules/named-grid-areas-no-invalid/utils/findNotContiguousOrRectangular.js +0 -61
- package/templates/facebook/node_modules/stylelint/lib/rules/named-grid-areas-no-invalid/utils/isRectangular.js +0 -12
- package/templates/facebook/node_modules/stylelint/lib/rules/no-descending-specificity/README.md +0 -166
- package/templates/facebook/node_modules/stylelint/lib/rules/no-descending-specificity/index.js +0 -146
- package/templates/facebook/node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/README.md +0 -56
- package/templates/facebook/node_modules/stylelint/lib/rules/no-duplicate-at-import-rules/index.js +0 -68
- package/templates/facebook/node_modules/stylelint/lib/rules/no-duplicate-selectors/README.md +0 -136
- package/templates/facebook/node_modules/stylelint/lib/rules/no-duplicate-selectors/index.js +0 -149
- package/templates/facebook/node_modules/stylelint/lib/rules/no-empty-first-line/README.md +0 -34
- package/templates/facebook/node_modules/stylelint/lib/rules/no-empty-first-line/index.js +0 -49
- package/templates/facebook/node_modules/stylelint/lib/rules/no-empty-source/README.md +0 -45
- package/templates/facebook/node_modules/stylelint/lib/rules/no-empty-source/index.js +0 -40
- package/templates/facebook/node_modules/stylelint/lib/rules/no-eol-whitespace/README.md +0 -79
- package/templates/facebook/node_modules/stylelint/lib/rules/no-eol-whitespace/index.js +0 -260
- package/templates/facebook/node_modules/stylelint/lib/rules/no-extra-semicolons/README.md +0 -78
- package/templates/facebook/node_modules/stylelint/lib/rules/no-extra-semicolons/index.js +0 -243
- package/templates/facebook/node_modules/stylelint/lib/rules/no-invalid-double-slash-comments/README.md +0 -54
- package/templates/facebook/node_modules/stylelint/lib/rules/no-invalid-double-slash-comments/index.js +0 -51
- package/templates/facebook/node_modules/stylelint/lib/rules/no-invalid-position-at-import-rule/README.md +0 -51
- package/templates/facebook/node_modules/stylelint/lib/rules/no-invalid-position-at-import-rule/index.js +0 -58
- package/templates/facebook/node_modules/stylelint/lib/rules/no-irregular-whitespace/README.md +0 -57
- package/templates/facebook/node_modules/stylelint/lib/rules/no-irregular-whitespace/index.js +0 -134
- package/templates/facebook/node_modules/stylelint/lib/rules/no-missing-end-of-source-newline/README.md +0 -34
- package/templates/facebook/node_modules/stylelint/lib/rules/no-missing-end-of-source-newline/index.js +0 -52
- package/templates/facebook/node_modules/stylelint/lib/rules/no-unknown-animations/README.md +0 -76
- package/templates/facebook/node_modules/stylelint/lib/rules/no-unknown-animations/index.js +0 -64
- package/templates/facebook/node_modules/stylelint/lib/rules/number-leading-zero/README.md +0 -74
- package/templates/facebook/node_modules/stylelint/lib/rules/number-leading-zero/index.js +0 -163
- package/templates/facebook/node_modules/stylelint/lib/rules/number-max-precision/README.md +0 -107
- package/templates/facebook/node_modules/stylelint/lib/rules/number-max-precision/index.js +0 -101
- package/templates/facebook/node_modules/stylelint/lib/rules/number-no-trailing-zeros/README.md +0 -40
- package/templates/facebook/node_modules/stylelint/lib/rules/number-no-trailing-zeros/index.js +0 -119
- package/templates/facebook/node_modules/stylelint/lib/rules/property-allowed-list/README.md +0 -75
- package/templates/facebook/node_modules/stylelint/lib/rules/property-allowed-list/index.js +0 -60
- package/templates/facebook/node_modules/stylelint/lib/rules/property-blacklist/README.md +0 -66
- package/templates/facebook/node_modules/stylelint/lib/rules/property-blacklist/index.js +0 -67
- package/templates/facebook/node_modules/stylelint/lib/rules/property-case/README.md +0 -168
- package/templates/facebook/node_modules/stylelint/lib/rules/property-case/index.js +0 -63
- package/templates/facebook/node_modules/stylelint/lib/rules/property-disallowed-list/README.md +0 -64
- package/templates/facebook/node_modules/stylelint/lib/rules/property-disallowed-list/index.js +0 -60
- package/templates/facebook/node_modules/stylelint/lib/rules/property-no-unknown/README.md +0 -187
- package/templates/facebook/node_modules/stylelint/lib/rules/property-no-unknown/index.js +0 -107
- package/templates/facebook/node_modules/stylelint/lib/rules/property-no-vendor-prefix/README.md +0 -70
- package/templates/facebook/node_modules/stylelint/lib/rules/property-no-vendor-prefix/index.js +0 -76
- package/templates/facebook/node_modules/stylelint/lib/rules/property-whitelist/README.md +0 -77
- package/templates/facebook/node_modules/stylelint/lib/rules/property-whitelist/index.js +0 -67
- package/templates/facebook/node_modules/stylelint/lib/rules/rangeContextNodeParser.js +0 -65
- package/templates/facebook/node_modules/stylelint/lib/rules/rule-empty-line-before/README.md +0 -326
- package/templates/facebook/node_modules/stylelint/lib/rules/rule-empty-line-before/index.js +0 -145
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-brackets-space-inside/README.md +0 -112
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-brackets-space-inside/index.js +0 -182
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-name-disallowed-list/README.md +0 -54
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-name-disallowed-list/index.js +0 -66
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-operator-allowed-list/README.md +0 -54
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-operator-allowed-list/index.js +0 -65
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-operator-blacklist/README.md +0 -46
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-operator-blacklist/index.js +0 -75
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-operator-disallowed-list/README.md +0 -44
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-operator-disallowed-list/index.js +0 -65
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-operator-space-after/README.md +0 -162
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-operator-space-after/index.js +0 -89
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-operator-space-before/README.md +0 -162
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-operator-space-before/index.js +0 -73
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/README.md +0 -56
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-operator-whitelist/index.js +0 -75
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-quotes/README.md +0 -102
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-attribute-quotes/index.js +0 -94
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-class-pattern/README.md +0 -100
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-class-pattern/index.js +0 -121
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-combinator-allowed-list/README.md +0 -54
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-combinator-allowed-list/index.js +0 -70
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-combinator-blacklist/README.md +0 -56
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-combinator-blacklist/index.js +0 -80
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-combinator-disallowed-list/README.md +0 -54
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-combinator-disallowed-list/index.js +0 -70
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-combinator-space-after/README.md +0 -78
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-combinator-space-after/index.js +0 -57
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-combinator-space-before/README.md +0 -78
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-combinator-space-before/index.js +0 -57
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-combinator-whitelist/README.md +0 -56
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-combinator-whitelist/index.js +0 -80
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/README.md +0 -40
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-descendant-combinator-no-non-space/index.js +0 -86
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-disallowed-list/README.md +0 -68
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-disallowed-list/index.js +0 -56
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-id-pattern/README.md +0 -63
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-id-pattern/index.js +0 -67
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-list-comma-newline-after/README.md +0 -120
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-list-comma-newline-after/index.js +0 -117
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-list-comma-newline-before/README.md +0 -112
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-list-comma-newline-before/index.js +0 -91
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-list-comma-space-after/README.md +0 -110
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-list-comma-space-after/index.js +0 -83
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-list-comma-space-before/README.md +0 -110
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-list-comma-space-before/index.js +0 -83
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-attribute/README.md +0 -113
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-attribute/index.js +0 -96
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-class/README.md +0 -58
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-class/index.js +0 -71
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-combinators/README.md +0 -72
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-combinators/index.js +0 -72
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-compound-selectors/README.md +0 -59
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-compound-selectors/index.js +0 -79
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-empty-lines/README.md +0 -103
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-empty-lines/index.js +0 -65
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-id/README.md +0 -105
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-id/index.js +0 -95
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-pseudo-class/README.md +0 -50
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-pseudo-class/index.js +0 -85
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-specificity/README.md +0 -138
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-specificity/index.js +0 -182
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-type/README.md +0 -179
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-type/index.js +0 -176
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-universal/README.md +0 -76
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-max-universal/index.js +0 -84
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-nested-pattern/README.md +0 -77
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-nested-pattern/index.js +0 -58
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-no-qualifying-type/README.md +0 -105
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-no-qualifying-type/index.js +0 -134
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-no-vendor-prefix/README.md +0 -67
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-no-vendor-prefix/index.js +0 -75
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-allowed-list/README.md +0 -53
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-allowed-list/index.js +0 -74
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-blacklist/README.md +0 -55
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-blacklist/index.js +0 -85
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-case/README.md +0 -108
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-case/index.js +0 -97
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-disallowed-list/README.md +0 -53
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-disallowed-list/index.js +0 -75
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-no-unknown/README.md +0 -84
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-no-unknown/index.js +0 -157
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-parentheses-space-inside/README.md +0 -62
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-parentheses-space-inside/index.js +0 -141
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-whitelist/README.md +0 -55
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-class-whitelist/index.js +0 -84
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-allowed-list/README.md +0 -54
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-allowed-list/index.js +0 -74
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-blacklist/README.md +0 -56
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-blacklist/index.js +0 -84
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-case/README.md +0 -128
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-case/index.js +0 -84
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-colon-notation/README.md +0 -136
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-colon-notation/index.js +0 -94
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-disallowed-list/README.md +0 -54
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-disallowed-list/index.js +0 -74
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-no-unknown/README.md +0 -84
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-no-unknown/index.js +0 -92
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-whitelist/README.md +0 -56
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-pseudo-element-whitelist/index.js +0 -84
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-type-case/README.md +0 -91
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-type-case/index.js +0 -107
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-type-no-unknown/README.md +0 -140
- package/templates/facebook/node_modules/stylelint/lib/rules/selector-type-no-unknown/index.js +0 -115
- package/templates/facebook/node_modules/stylelint/lib/rules/selectorAttributeOperatorSpaceChecker.js +0 -74
- package/templates/facebook/node_modules/stylelint/lib/rules/selectorCombinatorSpaceChecker.js +0 -87
- package/templates/facebook/node_modules/stylelint/lib/rules/selectorListCommaWhitespaceChecker.js +0 -48
- package/templates/facebook/node_modules/stylelint/lib/rules/shorthand-property-no-redundant-values/README.md +0 -75
- package/templates/facebook/node_modules/stylelint/lib/rules/shorthand-property-no-redundant-values/index.js +0 -137
- package/templates/facebook/node_modules/stylelint/lib/rules/string-no-newline/README.md +0 -73
- package/templates/facebook/node_modules/stylelint/lib/rules/string-no-newline/index.js +0 -115
- package/templates/facebook/node_modules/stylelint/lib/rules/string-quotes/README.md +0 -130
- package/templates/facebook/node_modules/stylelint/lib/rules/string-quotes/index.js +0 -221
- package/templates/facebook/node_modules/stylelint/lib/rules/time-min-milliseconds/README.md +0 -77
- package/templates/facebook/node_modules/stylelint/lib/rules/time-min-milliseconds/index.js +0 -142
- package/templates/facebook/node_modules/stylelint/lib/rules/unicode-bom/README.md +0 -41
- package/templates/facebook/node_modules/stylelint/lib/rules/unicode-bom/index.js +0 -59
- package/templates/facebook/node_modules/stylelint/lib/rules/unit-allowed-list/README.md +0 -115
- package/templates/facebook/node_modules/stylelint/lib/rules/unit-allowed-list/index.js +0 -85
- package/templates/facebook/node_modules/stylelint/lib/rules/unit-blacklist/README.md +0 -161
- package/templates/facebook/node_modules/stylelint/lib/rules/unit-blacklist/index.js +0 -132
- package/templates/facebook/node_modules/stylelint/lib/rules/unit-case/README.md +0 -126
- package/templates/facebook/node_modules/stylelint/lib/rules/unit-case/index.js +0 -114
- package/templates/facebook/node_modules/stylelint/lib/rules/unit-disallowed-list/README.md +0 -159
- package/templates/facebook/node_modules/stylelint/lib/rules/unit-disallowed-list/index.js +0 -125
- package/templates/facebook/node_modules/stylelint/lib/rules/unit-no-unknown/README.md +0 -138
- package/templates/facebook/node_modules/stylelint/lib/rules/unit-no-unknown/index.js +0 -158
- package/templates/facebook/node_modules/stylelint/lib/rules/unit-whitelist/README.md +0 -117
- package/templates/facebook/node_modules/stylelint/lib/rules/unit-whitelist/index.js +0 -92
- package/templates/facebook/node_modules/stylelint/lib/rules/value-keyword-case/README.md +0 -320
- package/templates/facebook/node_modules/stylelint/lib/rules/value-keyword-case/index.js +0 -236
- package/templates/facebook/node_modules/stylelint/lib/rules/value-list-comma-newline-after/README.md +0 -102
- package/templates/facebook/node_modules/stylelint/lib/rules/value-list-comma-newline-after/index.js +0 -100
- package/templates/facebook/node_modules/stylelint/lib/rules/value-list-comma-newline-before/README.md +0 -100
- package/templates/facebook/node_modules/stylelint/lib/rules/value-list-comma-newline-before/index.js +0 -42
- package/templates/facebook/node_modules/stylelint/lib/rules/value-list-comma-space-after/README.md +0 -136
- package/templates/facebook/node_modules/stylelint/lib/rules/value-list-comma-space-after/index.js +0 -86
- package/templates/facebook/node_modules/stylelint/lib/rules/value-list-comma-space-before/README.md +0 -136
- package/templates/facebook/node_modules/stylelint/lib/rules/value-list-comma-space-before/index.js +0 -86
- package/templates/facebook/node_modules/stylelint/lib/rules/value-list-max-empty-lines/README.md +0 -121
- package/templates/facebook/node_modules/stylelint/lib/rules/value-list-max-empty-lines/index.js +0 -60
- package/templates/facebook/node_modules/stylelint/lib/rules/value-no-vendor-prefix/README.md +0 -74
- package/templates/facebook/node_modules/stylelint/lib/rules/value-no-vendor-prefix/index.js +0 -90
- package/templates/facebook/node_modules/stylelint/lib/rules/valueListCommaWhitespaceChecker.js +0 -57
- package/templates/facebook/node_modules/stylelint/lib/standalone.js +0 -334
- package/templates/facebook/node_modules/stylelint/lib/syntaxes/index.js +0 -16
- package/templates/facebook/node_modules/stylelint/lib/syntaxes/syntax-css-in-js.js +0 -3
- package/templates/facebook/node_modules/stylelint/lib/syntaxes/syntax-html.js +0 -8
- package/templates/facebook/node_modules/stylelint/lib/syntaxes/syntax-less.js +0 -3
- package/templates/facebook/node_modules/stylelint/lib/syntaxes/syntax-markdown.js +0 -8
- package/templates/facebook/node_modules/stylelint/lib/syntaxes/syntax-sass.js +0 -3
- package/templates/facebook/node_modules/stylelint/lib/syntaxes/syntax-scss.js +0 -3
- package/templates/facebook/node_modules/stylelint/lib/syntaxes/syntax-sugarss.js +0 -3
- package/templates/facebook/node_modules/stylelint/lib/utils/FileCache.js +0 -68
- package/templates/facebook/node_modules/stylelint/lib/utils/addEmptyLineAfter.js +0 -30
- package/templates/facebook/node_modules/stylelint/lib/utils/addEmptyLineBefore.js +0 -26
- package/templates/facebook/node_modules/stylelint/lib/utils/atRuleParamIndex.js +0 -16
- package/templates/facebook/node_modules/stylelint/lib/utils/beforeBlockString.js +0 -54
- package/templates/facebook/node_modules/stylelint/lib/utils/blockString.js +0 -25
- package/templates/facebook/node_modules/stylelint/lib/utils/blurComments.js +0 -10
- package/templates/facebook/node_modules/stylelint/lib/utils/blurFunctionArguments.js +0 -53
- package/templates/facebook/node_modules/stylelint/lib/utils/blurInterpolation.js +0 -10
- package/templates/facebook/node_modules/stylelint/lib/utils/checkAgainstRule.js +0 -52
- package/templates/facebook/node_modules/stylelint/lib/utils/checkInvalidCLIOptions.js +0 -92
- package/templates/facebook/node_modules/stylelint/lib/utils/configurationError.js +0 -15
- package/templates/facebook/node_modules/stylelint/lib/utils/containsString.js +0 -56
- package/templates/facebook/node_modules/stylelint/lib/utils/declarationValueIndex.js +0 -26
- package/templates/facebook/node_modules/stylelint/lib/utils/eachDeclarationBlock.js +0 -59
- package/templates/facebook/node_modules/stylelint/lib/utils/filterFilePaths.js +0 -19
- package/templates/facebook/node_modules/stylelint/lib/utils/findAnimationName.js +0 -69
- package/templates/facebook/node_modules/stylelint/lib/utils/findAtRuleContext.js +0 -23
- package/templates/facebook/node_modules/stylelint/lib/utils/findFontFamily.js +0 -128
- package/templates/facebook/node_modules/stylelint/lib/utils/findListStyleType.js +0 -60
- package/templates/facebook/node_modules/stylelint/lib/utils/functionArgumentsSearch.js +0 -41
- package/templates/facebook/node_modules/stylelint/lib/utils/getAtRuleParams.js +0 -11
- package/templates/facebook/node_modules/stylelint/lib/utils/getCacheFile.js +0 -52
- package/templates/facebook/node_modules/stylelint/lib/utils/getDeclarationValue.js +0 -11
- package/templates/facebook/node_modules/stylelint/lib/utils/getFileIgnorer.js +0 -34
- package/templates/facebook/node_modules/stylelint/lib/utils/getFormatterOptionsText.js +0 -19
- package/templates/facebook/node_modules/stylelint/lib/utils/getModulePath.js +0 -31
- package/templates/facebook/node_modules/stylelint/lib/utils/getNextNonSharedLineCommentNode.js +0 -38
- package/templates/facebook/node_modules/stylelint/lib/utils/getOsEol.js +0 -11
- package/templates/facebook/node_modules/stylelint/lib/utils/getPreviousNonSharedLineCommentNode.js +0 -40
- package/templates/facebook/node_modules/stylelint/lib/utils/getRuleSelector.js +0 -13
- package/templates/facebook/node_modules/stylelint/lib/utils/getSchemeFromUrl.js +0 -39
- package/templates/facebook/node_modules/stylelint/lib/utils/getUnitFromValueNode.js +0 -49
- package/templates/facebook/node_modules/stylelint/lib/utils/hasBlock.js +0 -11
- package/templates/facebook/node_modules/stylelint/lib/utils/hasEmptyBlock.js +0 -13
- package/templates/facebook/node_modules/stylelint/lib/utils/hasEmptyLine.js +0 -14
- package/templates/facebook/node_modules/stylelint/lib/utils/hasInterpolation.js +0 -26
- package/templates/facebook/node_modules/stylelint/lib/utils/hasLessInterpolation.js +0 -11
- package/templates/facebook/node_modules/stylelint/lib/utils/hasPsvInterpolation.js +0 -10
- package/templates/facebook/node_modules/stylelint/lib/utils/hasScssInterpolation.js +0 -10
- package/templates/facebook/node_modules/stylelint/lib/utils/hasTplInterpolation.js +0 -11
- package/templates/facebook/node_modules/stylelint/lib/utils/hash.js +0 -12
- package/templates/facebook/node_modules/stylelint/lib/utils/isAfterComment.js +0 -16
- package/templates/facebook/node_modules/stylelint/lib/utils/isAfterSingleLineComment.js +0 -22
- package/templates/facebook/node_modules/stylelint/lib/utils/isAfterStandardPropertyDeclaration.js +0 -20
- package/templates/facebook/node_modules/stylelint/lib/utils/isAutoprefixable.js +0 -86
- package/templates/facebook/node_modules/stylelint/lib/utils/isBlocklessAtRuleAfterBlocklessAtRule.js +0 -22
- package/templates/facebook/node_modules/stylelint/lib/utils/isBlocklessAtRuleAfterSameNameBlocklessAtRule.js +0 -19
- package/templates/facebook/node_modules/stylelint/lib/utils/isContextFunctionalPseudoClass.js +0 -23
- package/templates/facebook/node_modules/stylelint/lib/utils/isCounterIncrementCustomIdentValue.js +0 -21
- package/templates/facebook/node_modules/stylelint/lib/utils/isCounterResetCustomIdentValue.js +0 -21
- package/templates/facebook/node_modules/stylelint/lib/utils/isCustomElement.js +0 -46
- package/templates/facebook/node_modules/stylelint/lib/utils/isCustomMediaQuery.js +0 -10
- package/templates/facebook/node_modules/stylelint/lib/utils/isCustomProperty.js +0 -10
- package/templates/facebook/node_modules/stylelint/lib/utils/isCustomPropertySet.js +0 -18
- package/templates/facebook/node_modules/stylelint/lib/utils/isCustomSelector.js +0 -11
- package/templates/facebook/node_modules/stylelint/lib/utils/isFirstNested.js +0 -67
- package/templates/facebook/node_modules/stylelint/lib/utils/isFirstNodeOfRoot.js +0 -15
- package/templates/facebook/node_modules/stylelint/lib/utils/isKeyframeRule.js +0 -13
- package/templates/facebook/node_modules/stylelint/lib/utils/isKeyframeSelector.js +0 -22
- package/templates/facebook/node_modules/stylelint/lib/utils/isLessVariable.js +0 -14
- package/templates/facebook/node_modules/stylelint/lib/utils/isMap.js +0 -44
- package/templates/facebook/node_modules/stylelint/lib/utils/isMathFunction.js +0 -13
- package/templates/facebook/node_modules/stylelint/lib/utils/isNonNegativeInteger.js +0 -17
- package/templates/facebook/node_modules/stylelint/lib/utils/isNumbery.js +0 -13
- package/templates/facebook/node_modules/stylelint/lib/utils/isOnlyWhitespace.js +0 -22
- package/templates/facebook/node_modules/stylelint/lib/utils/isRangeContextMediaFeature.js +0 -11
- package/templates/facebook/node_modules/stylelint/lib/utils/isScssVariable.js +0 -21
- package/templates/facebook/node_modules/stylelint/lib/utils/isSharedLineComment.js +0 -53
- package/templates/facebook/node_modules/stylelint/lib/utils/isSingleLineString.js +0 -12
- package/templates/facebook/node_modules/stylelint/lib/utils/isStandardSyntaxAtRule.js +0 -29
- package/templates/facebook/node_modules/stylelint/lib/utils/isStandardSyntaxCombinator.js +0 -34
- package/templates/facebook/node_modules/stylelint/lib/utils/isStandardSyntaxDeclaration.js +0 -61
- package/templates/facebook/node_modules/stylelint/lib/utils/isStandardSyntaxFunction.js +0 -16
- package/templates/facebook/node_modules/stylelint/lib/utils/isStandardSyntaxMathFunction.js +0 -21
- package/templates/facebook/node_modules/stylelint/lib/utils/isStandardSyntaxMediaFeature.js +0 -26
- package/templates/facebook/node_modules/stylelint/lib/utils/isStandardSyntaxMediaFeatureName.js +0 -16
- package/templates/facebook/node_modules/stylelint/lib/utils/isStandardSyntaxProperty.js +0 -34
- package/templates/facebook/node_modules/stylelint/lib/utils/isStandardSyntaxRule.js +0 -69
- package/templates/facebook/node_modules/stylelint/lib/utils/isStandardSyntaxSelector.js +0 -38
- package/templates/facebook/node_modules/stylelint/lib/utils/isStandardSyntaxTypeSelector.js +0 -53
- package/templates/facebook/node_modules/stylelint/lib/utils/isStandardSyntaxUrl.js +0 -48
- package/templates/facebook/node_modules/stylelint/lib/utils/isStandardSyntaxValue.js +0 -47
- package/templates/facebook/node_modules/stylelint/lib/utils/isValidFontSize.js +0 -38
- package/templates/facebook/node_modules/stylelint/lib/utils/isValidHex.js +0 -11
- package/templates/facebook/node_modules/stylelint/lib/utils/isVariable.js +0 -11
- package/templates/facebook/node_modules/stylelint/lib/utils/isWhitespace.js +0 -11
- package/templates/facebook/node_modules/stylelint/lib/utils/matchesStringOrRegExp.js +0 -85
- package/templates/facebook/node_modules/stylelint/lib/utils/nextNonCommentNode.js +0 -20
- package/templates/facebook/node_modules/stylelint/lib/utils/noFilesFoundError.js +0 -20
- package/templates/facebook/node_modules/stylelint/lib/utils/nodeContextLookup.js +0 -43
- package/templates/facebook/node_modules/stylelint/lib/utils/optionsMatches.js +0 -22
- package/templates/facebook/node_modules/stylelint/lib/utils/parseCalcExpression/index.js +0 -15
- package/templates/facebook/node_modules/stylelint/lib/utils/parseCalcExpression/parser.jison +0 -172
- package/templates/facebook/node_modules/stylelint/lib/utils/parseCalcExpression/parser.js +0 -3929
- package/templates/facebook/node_modules/stylelint/lib/utils/parseSelector.js +0 -18
- package/templates/facebook/node_modules/stylelint/lib/utils/putIfAbsent.js +0 -22
- package/templates/facebook/node_modules/stylelint/lib/utils/rawNodeString.js +0 -20
- package/templates/facebook/node_modules/stylelint/lib/utils/removeEmptyLinesAfter.js +0 -15
- package/templates/facebook/node_modules/stylelint/lib/utils/removeEmptyLinesBefore.js +0 -15
- package/templates/facebook/node_modules/stylelint/lib/utils/report.js +0 -113
- package/templates/facebook/node_modules/stylelint/lib/utils/ruleMessages.js +0 -35
- package/templates/facebook/node_modules/stylelint/lib/utils/setAtRuleParams.js +0 -20
- package/templates/facebook/node_modules/stylelint/lib/utils/setDeclarationValue.js +0 -23
- package/templates/facebook/node_modules/stylelint/lib/utils/transformSelector.js +0 -17
- package/templates/facebook/node_modules/stylelint/lib/utils/typeGuards.js +0 -44
- package/templates/facebook/node_modules/stylelint/lib/utils/validateObjectWithArrayProps.js +0 -41
- package/templates/facebook/node_modules/stylelint/lib/utils/validateOptions.js +0 -169
- package/templates/facebook/node_modules/stylelint/lib/utils/vendor.js +0 -45
- package/templates/facebook/node_modules/stylelint/lib/utils/whitespaceChecker.js +0 -370
- package/templates/facebook/node_modules/stylelint/lib/validateDisableSettings.js +0 -79
- package/templates/facebook/node_modules/stylelint/lib/writeOutputFile.js +0 -13
- package/templates/facebook/node_modules/stylelint/package.json +0 -197
- package/templates/facebook/node_modules/type-fest/index.d.ts +0 -35
- package/templates/facebook/node_modules/type-fest/license +0 -9
- package/templates/facebook/node_modules/type-fest/package.json +0 -45
- package/templates/facebook/node_modules/type-fest/readme.md +0 -648
- package/templates/facebook/node_modules/type-fest/source/async-return-type.d.ts +0 -23
- package/templates/facebook/node_modules/type-fest/source/asyncify.d.ts +0 -31
- package/templates/facebook/node_modules/type-fest/source/basic.d.ts +0 -67
- package/templates/facebook/node_modules/type-fest/source/conditional-except.d.ts +0 -43
- package/templates/facebook/node_modules/type-fest/source/conditional-keys.d.ts +0 -43
- package/templates/facebook/node_modules/type-fest/source/conditional-pick.d.ts +0 -42
- package/templates/facebook/node_modules/type-fest/source/entries.d.ts +0 -57
- package/templates/facebook/node_modules/type-fest/source/entry.d.ts +0 -60
- package/templates/facebook/node_modules/type-fest/source/except.d.ts +0 -22
- package/templates/facebook/node_modules/type-fest/source/fixed-length-array.d.ts +0 -38
- package/templates/facebook/node_modules/type-fest/source/iterable-element.d.ts +0 -46
- package/templates/facebook/node_modules/type-fest/source/literal-union.d.ts +0 -33
- package/templates/facebook/node_modules/type-fest/source/merge-exclusive.d.ts +0 -39
- package/templates/facebook/node_modules/type-fest/source/merge.d.ts +0 -22
- package/templates/facebook/node_modules/type-fest/source/mutable.d.ts +0 -22
- package/templates/facebook/node_modules/type-fest/source/opaque.d.ts +0 -65
- package/templates/facebook/node_modules/type-fest/source/package-json.d.ts +0 -627
- package/templates/facebook/node_modules/type-fest/source/partial-deep.d.ts +0 -72
- package/templates/facebook/node_modules/type-fest/source/promisable.d.ts +0 -23
- package/templates/facebook/node_modules/type-fest/source/promise-value.d.ts +0 -27
- package/templates/facebook/node_modules/type-fest/source/readonly-deep.d.ts +0 -59
- package/templates/facebook/node_modules/type-fest/source/require-at-least-one.d.ts +0 -32
- package/templates/facebook/node_modules/type-fest/source/require-exactly-one.d.ts +0 -35
- package/templates/facebook/node_modules/type-fest/source/set-optional.d.ts +0 -34
- package/templates/facebook/node_modules/type-fest/source/set-required.d.ts +0 -34
- package/templates/facebook/node_modules/type-fest/source/set-return-type.d.ts +0 -29
- package/templates/facebook/node_modules/type-fest/source/stringified.d.ts +0 -21
- package/templates/facebook/node_modules/type-fest/source/tsconfig-json.d.ts +0 -872
- package/templates/facebook/node_modules/type-fest/source/union-to-intersection.d.ts +0 -58
- package/templates/facebook/node_modules/type-fest/source/value-of.d.ts +0 -40
|
@@ -1,324 +0,0 @@
|
|
|
1
|
-
# Writing plugins
|
|
2
|
-
|
|
3
|
-
Plugins are rules and sets of rules built by the community.
|
|
4
|
-
|
|
5
|
-
We recommend your plugin adheres to [stylelint's conventions](rules.md) for:
|
|
6
|
-
|
|
7
|
-
- names
|
|
8
|
-
- options
|
|
9
|
-
- messages
|
|
10
|
-
- tests
|
|
11
|
-
- docs
|
|
12
|
-
|
|
13
|
-
## The anatomy of a plugin
|
|
14
|
-
|
|
15
|
-
```js
|
|
16
|
-
// Abbreviated example
|
|
17
|
-
const stylelint = require("stylelint");
|
|
18
|
-
|
|
19
|
-
const ruleName = "plugin/foo-bar";
|
|
20
|
-
const messages = stylelint.utils.ruleMessages(ruleName, {
|
|
21
|
-
expected: "Expected ..."
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
module.exports = stylelint.createPlugin(
|
|
25
|
-
ruleName,
|
|
26
|
-
function (primaryOption, secondaryOptionObject) {
|
|
27
|
-
return function (postcssRoot, postcssResult) {
|
|
28
|
-
const validOptions = stylelint.utils.validateOptions(
|
|
29
|
-
postcssResult,
|
|
30
|
-
ruleName,
|
|
31
|
-
{
|
|
32
|
-
/* .. */
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
if (!validOptions) {
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// ... some logic ...
|
|
41
|
-
stylelint.utils.report({
|
|
42
|
-
/* .. */
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
module.exports.ruleName = ruleName;
|
|
49
|
-
module.exports.messages = messages;
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
Your plugin's rule name must be namespaced, e.g. `your-namespace/your-rule-name`, to ensure it never clashes with the built-in rules. If your plugin provides only a single rule or you can't think of a good namespace, you can use `plugin/my-rule`. _You should document your plugin's rule name (and namespace) because users need to use them in their config._
|
|
53
|
-
|
|
54
|
-
Use `stylelint.createPlugin(ruleName, ruleFunction)` to ensure that your plugin is set up properly alongside other rules.
|
|
55
|
-
|
|
56
|
-
For your plugin rule to work with the [standard configuration format](../user-guide/configure.md#rules), `ruleFunction` should accept 2 arguments:
|
|
57
|
-
|
|
58
|
-
- the primary option
|
|
59
|
-
- optionally, a secondary options object
|
|
60
|
-
|
|
61
|
-
If your plugin rule supports [autofixing](rules.md#add-autofix), then `ruleFunction` should also accept a third argument: `context`. You should try to support the `disableFix` option in your secondary options object. Within the rule, don't perform autofixing if the user has passed a `disableFix` option for your rule.
|
|
62
|
-
|
|
63
|
-
`ruleFunction` should return a function that is essentially a little [PostCSS plugin](https://github.com/postcss/postcss/blob/master/docs/writing-a-plugin.md). It takes 2 arguments:
|
|
64
|
-
|
|
65
|
-
- the PostCSS Root (the parsed AST)
|
|
66
|
-
- the PostCSS LazyResult
|
|
67
|
-
|
|
68
|
-
You'll have to [learn about the PostCSS API](https://api.postcss.org/).
|
|
69
|
-
|
|
70
|
-
### Asynchronous rules
|
|
71
|
-
|
|
72
|
-
You can return a `Promise` instance from your plugin function to create an asynchronous rule.
|
|
73
|
-
|
|
74
|
-
```js
|
|
75
|
-
// Abbreviated asynchronous example
|
|
76
|
-
const stylelint = require("stylelint");
|
|
77
|
-
|
|
78
|
-
const ruleName = "plugin/foo-bar-async";
|
|
79
|
-
const messages = stylelint.utils.ruleMessages(ruleName, {
|
|
80
|
-
expected: "Expected ..."
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
module.exports = stylelint.createPlugin(
|
|
84
|
-
ruleName,
|
|
85
|
-
function (primaryOption, secondaryOptionObject) {
|
|
86
|
-
return function (postcssRoot, postcssResult) {
|
|
87
|
-
const validOptions = stylelint.utils.validateOptions(
|
|
88
|
-
postcssResult,
|
|
89
|
-
ruleName,
|
|
90
|
-
{
|
|
91
|
-
/* .. */
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
|
|
95
|
-
if (!validOptions) {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
return new Promise(function (resolve) {
|
|
100
|
-
// some async operation
|
|
101
|
-
setTimeout(function () {
|
|
102
|
-
// ... some logic ...
|
|
103
|
-
stylelint.utils.report({
|
|
104
|
-
/* .. */
|
|
105
|
-
});
|
|
106
|
-
resolve();
|
|
107
|
-
}, 1);
|
|
108
|
-
});
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
);
|
|
112
|
-
|
|
113
|
-
module.exports.ruleName = ruleName;
|
|
114
|
-
module.exports.messages = messages;
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
## Testing
|
|
118
|
-
|
|
119
|
-
You should use [`jest-preset-stylelint`](https://github.com/stylelint/jest-preset-stylelint) to test your plugin. The preset exposes a global `testRule` function that you can use to efficiently test your plugin using a schema.
|
|
120
|
-
|
|
121
|
-
For example:
|
|
122
|
-
|
|
123
|
-
```js
|
|
124
|
-
// index.test.js
|
|
125
|
-
const { messages, ruleName } = require(".");
|
|
126
|
-
|
|
127
|
-
testRule({
|
|
128
|
-
plugins: ["./index.js"],
|
|
129
|
-
ruleName,
|
|
130
|
-
config: true,
|
|
131
|
-
fix: true,
|
|
132
|
-
|
|
133
|
-
accept: [
|
|
134
|
-
{
|
|
135
|
-
code: ".class {}"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
code: ".my-class {}"
|
|
139
|
-
}
|
|
140
|
-
],
|
|
141
|
-
|
|
142
|
-
reject: [
|
|
143
|
-
{
|
|
144
|
-
code: ".myClass {}",
|
|
145
|
-
fixed: ".my-class {}",
|
|
146
|
-
message: messages.expected(),
|
|
147
|
-
line: 1,
|
|
148
|
-
column: 1
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
});
|
|
152
|
-
```
|
|
153
|
-
|
|
154
|
-
However, if your plugin involves more than just checking syntax you can use stylelint directly.
|
|
155
|
-
|
|
156
|
-
For example:
|
|
157
|
-
|
|
158
|
-
```js
|
|
159
|
-
// index.test.js
|
|
160
|
-
const { lint } = require("stylelint");
|
|
161
|
-
|
|
162
|
-
const config = {
|
|
163
|
-
plugins: ["./index.js"],
|
|
164
|
-
rules: {
|
|
165
|
-
"plugin/at-import-no-unresolveable": [true]
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
|
|
169
|
-
it("warns for unresolveable import", async () => {
|
|
170
|
-
const {
|
|
171
|
-
results: [{ warnings, parseErrors }]
|
|
172
|
-
} = await lint({
|
|
173
|
-
files: "fixtures/contains-unresolveable-import.css",
|
|
174
|
-
config
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
expect(parseErrors).toHaveLength(0);
|
|
178
|
-
expect(warnings).toHaveLength(1);
|
|
179
|
-
|
|
180
|
-
const [{ line, column, text }] = warnings;
|
|
181
|
-
|
|
182
|
-
expect(text).toBe(
|
|
183
|
-
"Unexpected unresolveable import (plugin/at-import-no-unresolveable)"
|
|
184
|
-
);
|
|
185
|
-
expect(line).toBe(1);
|
|
186
|
-
expect(column).toBe(1);
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
it("doesn't warn for fileless sources", async () => {
|
|
190
|
-
const {
|
|
191
|
-
results: [{ warnings, parseErrors }]
|
|
192
|
-
} = await lint({
|
|
193
|
-
code: "@import url(unknown.css)",
|
|
194
|
-
config
|
|
195
|
-
});
|
|
196
|
-
expect(parseErrors).toHaveLength(0);
|
|
197
|
-
expect(warnings).toHaveLength(0);
|
|
198
|
-
});
|
|
199
|
-
```
|
|
200
|
-
|
|
201
|
-
Alternatively, if you don't want to use Jest you'll find more tools in [awesome stylelint](https://github.com/stylelint/awesome-stylelint#tools).
|
|
202
|
-
|
|
203
|
-
## `stylelint.utils`
|
|
204
|
-
|
|
205
|
-
stylelint exposes some useful utilities.
|
|
206
|
-
|
|
207
|
-
### `stylelint.utils.report`
|
|
208
|
-
|
|
209
|
-
Adds violations from your plugin to the list of violations that stylelint will report to the user.
|
|
210
|
-
|
|
211
|
-
Use `stylelint.utils.report` to ensure your plugin respects disabled ranges and other possible future features of stylelint. _Do not use PostCSS's `node.warn()` method directly._
|
|
212
|
-
|
|
213
|
-
### `stylelint.utils.ruleMessages`
|
|
214
|
-
|
|
215
|
-
Tailors your messages to the format of standard stylelint rules.
|
|
216
|
-
|
|
217
|
-
### `stylelint.utils.validateOptions`
|
|
218
|
-
|
|
219
|
-
Validates the options for your rule.
|
|
220
|
-
|
|
221
|
-
### `stylelint.utils.checkAgainstRule`
|
|
222
|
-
|
|
223
|
-
Checks CSS against a standard stylelint rule _within your own rule_. This function provides power and flexibility for plugins authors who wish to modify, constrain, or extend the functionality of existing stylelint rules.
|
|
224
|
-
|
|
225
|
-
It accepts an options object and a callback that is invoked with warnings from the specified rule. The options are:
|
|
226
|
-
|
|
227
|
-
- `ruleName`: the name of the rule you are invoking
|
|
228
|
-
- `ruleSettings`: settings for the rule you are invoking
|
|
229
|
-
- `root`: the root node to run this rule against
|
|
230
|
-
|
|
231
|
-
Use the warning to create a _new_ warning _from your plugin rule_ that you report with `stylelint.utils.report`.
|
|
232
|
-
|
|
233
|
-
For example, imagine you want to create a plugin that runs `at-rule-no-unknown` with a built-in list of exceptions for at-rules provided by your preprocessor-of-choice:
|
|
234
|
-
|
|
235
|
-
```js
|
|
236
|
-
const allowableAtRules = [
|
|
237
|
-
/* .. */
|
|
238
|
-
];
|
|
239
|
-
|
|
240
|
-
function myPluginRule(primaryOption, secondaryOptionObject) {
|
|
241
|
-
return function (postcssRoot, postcssResult) {
|
|
242
|
-
const defaultedOptions = Object.assign({}, secondaryOptionObject, {
|
|
243
|
-
ignoreAtRules: allowableAtRules.concat(options.ignoreAtRules || [])
|
|
244
|
-
});
|
|
245
|
-
|
|
246
|
-
stylelint.utils.checkAgainstRule(
|
|
247
|
-
{
|
|
248
|
-
ruleName: "at-rule-no-unknown",
|
|
249
|
-
ruleSettings: [primaryOption, defaultedOptions],
|
|
250
|
-
root: postcssRoot
|
|
251
|
-
},
|
|
252
|
-
(warning) => {
|
|
253
|
-
stylelint.utils.report({
|
|
254
|
-
message: myMessage,
|
|
255
|
-
ruleName: myRuleName,
|
|
256
|
-
result: postcssResult,
|
|
257
|
-
node: warning.node,
|
|
258
|
-
line: warning.line,
|
|
259
|
-
column: warning.column
|
|
260
|
-
});
|
|
261
|
-
}
|
|
262
|
-
);
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
## `stylelint.rules`
|
|
268
|
-
|
|
269
|
-
All of the rule functions are available at `stylelint.rules`. This allows you to build on top of existing rules for your particular needs.
|
|
270
|
-
|
|
271
|
-
A typical use-case is to build in more complex conditionals that the rule's options allow for. For example, maybe your codebase uses special comment directives to customize rule options for specific stylesheets. You could build a plugin that checks those directives and then runs the appropriate rules with the right options (or doesn't run them at all).
|
|
272
|
-
|
|
273
|
-
All rules share a common signature. They are a function that accepts two arguments: a primary option and a secondary options object. And that functions returns a function that has the signature of a PostCSS plugin, expecting a PostCSS root and result as its arguments.
|
|
274
|
-
|
|
275
|
-
Here's an example of a plugin that runs `color-hex-case` only if there is a special directive `@@check-color-hex-case` somewhere in the stylesheet:
|
|
276
|
-
|
|
277
|
-
```js
|
|
278
|
-
module.exports = stylelint.createPlugin(ruleName, function (expectation) {
|
|
279
|
-
const runColorHexCase = stylelint.rules["color-hex-case"](expectation);
|
|
280
|
-
|
|
281
|
-
return (root, result) => {
|
|
282
|
-
if (root.toString().indexOf("@@check-color-hex-case") === -1) {
|
|
283
|
-
return;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
runColorHexCase(root, result);
|
|
287
|
-
};
|
|
288
|
-
});
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
## Allow primary option arrays
|
|
292
|
-
|
|
293
|
-
If your plugin can accept an array as its primary option, you must designate this by setting the property `primaryOptionArray = true` on your rule function. For more information, check out the ["Working on rules"](rules.md) doc.
|
|
294
|
-
|
|
295
|
-
## External helper modules
|
|
296
|
-
|
|
297
|
-
In addition to the standard parsers mentioned in the ["Working on rules"](rules.md) doc, there are other external modules used within stylelint that we recommend using. These include:
|
|
298
|
-
|
|
299
|
-
- [normalize-selector](https://github.com/getify/normalize-selector): normalize CSS selectors.
|
|
300
|
-
- [postcss-resolve-nested-selector](https://github.com/davidtheclark/postcss-resolve-nested-selector): given a (nested) selector in a PostCSS AST, return an array of resolved selectors.
|
|
301
|
-
|
|
302
|
-
Have a look through [stylelint's internal utils](https://github.com/stylelint/stylelint/tree/master/lib/utils) and if you come across one that you need in your plugin, then please consider helping us extract it out into an external module.
|
|
303
|
-
|
|
304
|
-
## Peer dependencies
|
|
305
|
-
|
|
306
|
-
You should express, within the `peerDependencies` key (and **not** within the `dependencies` key) of your plugin's `package.json`, what version(s) of stylelint your plugin can be used with. This is to ensure that different versions of stylelint are not unexpectedly installed.
|
|
307
|
-
|
|
308
|
-
For example, to express that your plugin can be used with stylelint versions 7 and 8:
|
|
309
|
-
|
|
310
|
-
```json
|
|
311
|
-
{
|
|
312
|
-
"peerDependencies": {
|
|
313
|
-
"stylelint": "^7.0.0 || ^8.0.0"
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
```
|
|
317
|
-
|
|
318
|
-
## Plugin packs
|
|
319
|
-
|
|
320
|
-
To make a single module provide multiple rules, export an array of plugin objects (rather than a single object).
|
|
321
|
-
|
|
322
|
-
## Sharing plugins and plugin packs
|
|
323
|
-
|
|
324
|
-
Use the `stylelint-plugin` keyword within your `package.json`.
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Writing processors
|
|
2
|
-
|
|
3
|
-
Processors are functions that hook into stylelint's pipeline, modifying code on its way into stylelint and modifying results on their way out.
|
|
4
|
-
|
|
5
|
-
**Their use is discouraged in favor of [PostCSS syntaxes](../about/syntaxes.md).**
|
|
6
|
-
|
|
7
|
-
Processor modules are functions that accept an options object and return an object with the following the functions, which hook into the processing of each file:
|
|
8
|
-
|
|
9
|
-
- **code**: A function that accepts two arguments, the file's code and the file's path, and returns a string for stylelint to lint.
|
|
10
|
-
- **result**: A function that accepts two arguments, the file's stylelint result object and the file's path, and either mutates the result object (returning nothing) or returns a new one.
|
|
11
|
-
|
|
12
|
-
```js
|
|
13
|
-
// my-processor.js
|
|
14
|
-
module.exports = function (options) {
|
|
15
|
-
return {
|
|
16
|
-
code: function (input, filepath) {
|
|
17
|
-
// ...
|
|
18
|
-
return transformedCode;
|
|
19
|
-
},
|
|
20
|
-
result: function (stylelintResult, filepath) {
|
|
21
|
-
// ...
|
|
22
|
-
return transformedResult;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
_Processor options must be JSON-friendly_ because users will need to include them in `.stylelintrc` files.
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
# Working on rules
|
|
2
|
-
|
|
3
|
-
Please help us create, enhance, and debug our rules!
|
|
4
|
-
|
|
5
|
-
## Add a rule
|
|
6
|
-
|
|
7
|
-
You should:
|
|
8
|
-
|
|
9
|
-
1. Get yourself ready to [contribute code](../../CONTRIBUTING.md#code-contributions).
|
|
10
|
-
2. Familiarize yourself with the [conventions and patterns](../user-guide/rules/about.md) for rules.
|
|
11
|
-
|
|
12
|
-
### Write the rule
|
|
13
|
-
|
|
14
|
-
When writing the rule, you should:
|
|
15
|
-
|
|
16
|
-
- make the rule strict by default
|
|
17
|
-
- add secondary `ignore` options to make the rule more permissive
|
|
18
|
-
- not include code specific to language extensions, e.g. SCSS
|
|
19
|
-
|
|
20
|
-
You should make use of the:
|
|
21
|
-
|
|
22
|
-
- PostCSS API
|
|
23
|
-
- construct-specific parsers
|
|
24
|
-
- utility functions
|
|
25
|
-
|
|
26
|
-
#### PostCSS API
|
|
27
|
-
|
|
28
|
-
Use the [PostCSS API](https://api.postcss.org/) to navigate and analyze the CSS syntax tree. We recommend using the `walk` iterators (e.g. `walkDecls`), rather than using `forEach` to loop through the nodes.
|
|
29
|
-
|
|
30
|
-
When using array methods on nodes, e.g. `find`, `some`, `filter` etc, you should explicitly check the `type` property of the node before attempting to access other properties. For example:
|
|
31
|
-
|
|
32
|
-
```js
|
|
33
|
-
const hasProperty = nodes.find(
|
|
34
|
-
({ type, prop }) => type === "decl" && prop === propertyName
|
|
35
|
-
);
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Use `node.raws` instead of `node.raw()` when accessing raw strings from the [PostCSS AST](https://astexplorer.net/#/gist/ef718daf3e03f1d200b03dc5a550ec60/c8cbe9c6809a85894cebf3fb66de46215c377f1a).
|
|
39
|
-
|
|
40
|
-
#### Construct-specific parsers
|
|
41
|
-
|
|
42
|
-
Depending on the rule, we also recommend using:
|
|
43
|
-
|
|
44
|
-
- [postcss-value-parser](https://github.com/TrySound/postcss-value-parser)
|
|
45
|
-
- [postcss-selector-parser](https://github.com/postcss/postcss-selector-parser)
|
|
46
|
-
|
|
47
|
-
There are significant benefits to using these parsers instead of regular expressions or `indexOf` searches (even if they aren't always the most performant method).
|
|
48
|
-
|
|
49
|
-
#### Utility functions
|
|
50
|
-
|
|
51
|
-
stylelint has [utility functions](https://github.com/stylelint/stylelint/tree/master/lib/utils) that are used in existing rules and might prove useful to you, as well. Please look through those so that you know what's available. (And if you have a new function that you think might prove generally helpful, let's add it to the list!).
|
|
52
|
-
|
|
53
|
-
Use the:
|
|
54
|
-
|
|
55
|
-
- `validateOptions()` utility to warn users about invalid options
|
|
56
|
-
- `isStandardSyntax*` utilities to ignore non-standard syntax
|
|
57
|
-
|
|
58
|
-
### Add options
|
|
59
|
-
|
|
60
|
-
Only add an option to a rule if it addresses a _requested_ use case to avoid polluting the tool with unused features.
|
|
61
|
-
|
|
62
|
-
If your rule can accept an array as its primary option, you must designate this by setting the property `primaryOptionArray = true` on your rule function. For example:
|
|
63
|
-
|
|
64
|
-
```js
|
|
65
|
-
function rule(primary, secondary) {
|
|
66
|
-
return (root, result) => {
|
|
67
|
-
/* .. */
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
rule.primaryOptionArray = true;
|
|
72
|
-
|
|
73
|
-
module.exports = rule;
|
|
74
|
-
```
|
|
75
|
-
|
|
76
|
-
There is one caveat here: If your rule accepts a primary option array, it cannot also accept a primary option object. Whenever possible, if you want your rule to accept a primary option array, you should make an array the only possibility, instead of allowing for various data structures.
|
|
77
|
-
|
|
78
|
-
### Add autofix
|
|
79
|
-
|
|
80
|
-
Depending on the rule, it might be possible to automatically fix the rule's violations by mutating the PostCSS AST (Abstract Syntax Tree) using the [PostCSS API](http://api.postcss.org/).
|
|
81
|
-
|
|
82
|
-
Add `context` variable to rule parameters:
|
|
83
|
-
|
|
84
|
-
```js
|
|
85
|
-
function rule(primary, secondary, context) {
|
|
86
|
-
return (root, result) => {
|
|
87
|
-
/* .. */
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
`context` is an object which could have two properties:
|
|
93
|
-
|
|
94
|
-
- `fix`(boolean): If `true`, your rule can apply autofixes.
|
|
95
|
-
- `newline`(string): Line-ending used in current linted file.
|
|
96
|
-
|
|
97
|
-
If `context.fix` is `true`, then change `root` using PostCSS API and return early before `report()` is called.
|
|
98
|
-
|
|
99
|
-
```js
|
|
100
|
-
if (context.fix) {
|
|
101
|
-
// Apply fixes using PostCSS API
|
|
102
|
-
return; // Return and don't report a problem
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
report(/* .. */);
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
### Write tests
|
|
109
|
-
|
|
110
|
-
Each rule must have tests that cover all patterns that:
|
|
111
|
-
|
|
112
|
-
- are considered violations
|
|
113
|
-
- should _not_ be considered violations
|
|
114
|
-
|
|
115
|
-
Write as many as you can stand to.
|
|
116
|
-
|
|
117
|
-
You should:
|
|
118
|
-
|
|
119
|
-
- test errors in multiple positions, not the same place every time
|
|
120
|
-
- use realistic (if simple) CSS, and avoid the use of ellipses
|
|
121
|
-
- use standard CSS syntax by default, and only swap parsers when testing a specific piece of non-standard syntax
|
|
122
|
-
|
|
123
|
-
#### Commonly overlooked edge-cases
|
|
124
|
-
|
|
125
|
-
You should ask yourself how does your rule handle:
|
|
126
|
-
|
|
127
|
-
- variables (`$sass`, `@less` or `var(--custom-property)`)?
|
|
128
|
-
- CSS strings (e.g. `content: "anything goes";`)?
|
|
129
|
-
- CSS comments (e.g. `/* anything goes */`)?
|
|
130
|
-
- `url()` functions, including data URIs (e.g. `url(anything/goes.jpg)`)?
|
|
131
|
-
- vendor prefixes (e.g. `@-webkit-keyframes name {}`)?
|
|
132
|
-
- case sensitivity (e.g. `@KEYFRAMES name {}`)?
|
|
133
|
-
- a pseudo-class _combined_ with a pseudo-element (e.g. `a:hover::before`)?
|
|
134
|
-
- nesting (e.g. do you resolve `& a {}`, or check it as is?)?
|
|
135
|
-
- whitespace and punctuation (e.g. comparing `rgb(0,0,0)` with `rgb(0, 0, 0)`)?
|
|
136
|
-
|
|
137
|
-
### Write the README
|
|
138
|
-
|
|
139
|
-
You should:
|
|
140
|
-
|
|
141
|
-
- only use standard CSS syntax in example code and options
|
|
142
|
-
- use `<!-- prettier-ignore -->` before `css` code fences
|
|
143
|
-
- use "this rule" to refer to the rule, e.g. "This rule ignores ..."
|
|
144
|
-
- align the arrows within the prototypical code example with the beginning of the highlighted construct
|
|
145
|
-
- align the text within the prototypical code example as far to the left as possible
|
|
146
|
-
|
|
147
|
-
For example:
|
|
148
|
-
|
|
149
|
-
<!-- prettier-ignore -->
|
|
150
|
-
```css
|
|
151
|
-
@media screen and (min-width: 768px) {}
|
|
152
|
-
/** ↑ ↑
|
|
153
|
-
* These names and values */
|
|
154
|
-
```
|
|
155
|
-
|
|
156
|
-
When writing examples, you should use:
|
|
157
|
-
|
|
158
|
-
- complete CSS patterns i.e. avoid ellipses (`...`)
|
|
159
|
-
- the minimum amount of code possible to communicate the pattern, e.g. if the rule targets selectors then use an empty rule, e.g. `{}`
|
|
160
|
-
- `{}`, rather than `{ }` for empty rules
|
|
161
|
-
- the `a` type selector by default
|
|
162
|
-
- the `@media` at-rules by default
|
|
163
|
-
- the `color` property by default
|
|
164
|
-
- _foo_, _bar_ and _baz_ for names, e.g. `.foo`, `#bar`, `--baz`
|
|
165
|
-
|
|
166
|
-
Look at the READMEs of other rules to glean more conventional patterns.
|
|
167
|
-
|
|
168
|
-
### Wire up the rule
|
|
169
|
-
|
|
170
|
-
The final step is to add references to the new rule in the following places:
|
|
171
|
-
|
|
172
|
-
- [The rules `index.js` file](../../lib/rules/index.js)
|
|
173
|
-
- [The list of rules](../user-guide/rules/list.md)
|
|
174
|
-
|
|
175
|
-
## Add an option to a rule
|
|
176
|
-
|
|
177
|
-
You should:
|
|
178
|
-
|
|
179
|
-
1. Get ready to [contribute code](../../CONTRIBUTING.md#code-contributions).
|
|
180
|
-
2. Change the rule's validation to allow for the new option.
|
|
181
|
-
3. Add new unit tests to test the option.
|
|
182
|
-
4. Add (as little as possible) logic to the rule to make the tests pass.
|
|
183
|
-
5. Add documentation about the new option.
|
|
184
|
-
|
|
185
|
-
## Fix a bug in a rule
|
|
186
|
-
|
|
187
|
-
You should:
|
|
188
|
-
|
|
189
|
-
1. Get ready to [contribute code](../../CONTRIBUTING.md#code-contributions).
|
|
190
|
-
2. Write failing unit tests that exemplify the bug.
|
|
191
|
-
3. Fiddle with the rule until those new tests pass.
|
|
192
|
-
|
|
193
|
-
## Deprecate a rule
|
|
194
|
-
|
|
195
|
-
Deprecating rules doesn't happen very often. When you do, you must:
|
|
196
|
-
|
|
197
|
-
1. Point the `stylelintReference` link to the specific version of the rule README on the GitHub website, so that it is always accessible.
|
|
198
|
-
2. Add the appropriate meta data to mark the rule as deprecated.
|
|
199
|
-
|
|
200
|
-
## Improve the performance of a rule
|
|
201
|
-
|
|
202
|
-
You can run a benchmarks on any given rule with any valid config using:
|
|
203
|
-
|
|
204
|
-
```shell
|
|
205
|
-
npm run benchmark-rule -- ruleName ruleOptions [ruleContext]
|
|
206
|
-
```
|
|
207
|
-
|
|
208
|
-
If the `ruleOptions` argument is anything other than a string or a boolean, it must be valid JSON wrapped in quotation marks.
|
|
209
|
-
|
|
210
|
-
```shell
|
|
211
|
-
npm run benchmark-rule -- selector-combinator-space-after never
|
|
212
|
-
```
|
|
213
|
-
|
|
214
|
-
```shell
|
|
215
|
-
npm run benchmark-rule -- selector-combinator-space-after always
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
```shell
|
|
219
|
-
npm run benchmark-rule -- block-opening-brace-space-before "[\"always\", {\"ignoreAtRules\": [\"else\"]}]"
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
If the `ruleContext` argument is specified, the sames procedure would apply:
|
|
223
|
-
|
|
224
|
-
```shell
|
|
225
|
-
npm run benchmark-rule -- block-opening-brace-space-before "[\"always\", {\"ignoreAtRules\": [\"else\"]}]" "{\"fix\": \"true\"}"
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
The script loads Bootstrap's CSS (from its CDN) and runs it through the configured rule.
|
|
229
|
-
|
|
230
|
-
It will end up printing some simple stats like this:
|
|
231
|
-
|
|
232
|
-
```shell
|
|
233
|
-
Warnings: 1441
|
|
234
|
-
Mean: 74.17598357142856 ms
|
|
235
|
-
Deviation: 16.63969674310928 ms
|
|
236
|
-
```
|
|
237
|
-
|
|
238
|
-
When writing new rules or refactoring existing rules, use these measurements to determine the efficiency of your code.
|
|
239
|
-
|
|
240
|
-
A stylelint rule can repeat its core logic many, many times (e.g. checking every value node of every declaration in a vast CSS codebase). So it's worth paying attention to performance and doing what we can to improve it!
|
|
241
|
-
|
|
242
|
-
**Improving the performance of a rule is a great way to contribute if you want a quick little project.** Try picking a rule and seeing if there's anything you can do to speed it up.
|
|
243
|
-
|
|
244
|
-
Make sure you include benchmark measurements in your pull request!
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Working on syntaxes
|
|
2
|
-
|
|
3
|
-
Please help us enhance and debug the [syntaxes](../about/syntaxes.md) we use in stylelint:
|
|
4
|
-
|
|
5
|
-
- [postcss-css-in-js](https://github.com/stylelint/postcss-css-in-js)
|
|
6
|
-
- [postcss-html](https://github.com/gucong3000/postcss-html)
|
|
7
|
-
- [postcss-less](https://github.com/webschik/postcss-less)
|
|
8
|
-
- [postcss-markdown](https://github.com/stylelint/postcss-markdown)
|
|
9
|
-
- [postcss-sass](https://github.com/AleshaOleg/postcss-sass)
|
|
10
|
-
- [postcss-scss](https://github.com/postcss/postcss-scss)
|
|
11
|
-
|
|
12
|
-
To contribute to a syntax, you should:
|
|
13
|
-
|
|
14
|
-
1. Familiarize yourself with PostCSS's [how to write custom syntax](https://github.com/postcss/postcss/blob/master/docs/syntax.md) guide.
|
|
15
|
-
2. Use the [`syntax: *` labels](https://github.com/stylelint/stylelint/labels?utf8=%E2%9C%93&q=syntax%3A) to identify which syntax is behind an issue.
|
|
16
|
-
3. Go to the repository for that syntax.
|
|
17
|
-
4. Read their contributing guidelines.
|
|
18
|
-
|
|
19
|
-
## Workarounds
|
|
20
|
-
|
|
21
|
-
Fixing bugs in syntaxes can take time. stylelint can work around these bug by turning off autofix for incompatible sources. Autofix can then remain safe to use while contributors try to fix the underlying issue.
|
|
22
|
-
|
|
23
|
-
### Current workarounds
|
|
24
|
-
|
|
25
|
-
stylelint currently turns off autofix for sources that contain:
|
|
26
|
-
|
|
27
|
-
- ~~nested tagged template literals ([issue #4119](https://github.com/stylelint/stylelint/issues/4119))~~
|
|
28
|
-
|
|
29
|
-
### Add a workaround
|
|
30
|
-
|
|
31
|
-
To add a new workaround, you should:
|
|
32
|
-
|
|
33
|
-
1. Add code to [`lib/lintSource.js`](https://github.com/stylelint/stylelint/blob/master/lib/lintSource.js) to detect the incompatible pattern.
|
|
34
|
-
2. Add a corresponding test to [`lib/__tests__/standalone-fix.test.js`](https://github.com/stylelint/stylelint/blob/master/lib/__tests__/standalone-fix.test.js).
|
|
35
|
-
3. Document the workaround in [`docs/developer-guides/syntaxes.md`](https://github.com/stylelint/stylelint/blob/master/docs/developer-guide/syntaxes.md).
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Writing system tests
|
|
2
|
-
|
|
3
|
-
System tests verify that stylelint works as expected. They are another line of defense against regressions, after the unit tests and integration tests.
|
|
4
|
-
|
|
5
|
-
Each of these system tests asserts that we end up with some expected output, given a configuration and a stylesheet.
|
|
6
|
-
|
|
7
|
-
These tests should not be comprehensive and systematic (_the unit tests should_). They should reproduce real use-cases and verify that those use-cases work as expected.
|
|
8
|
-
|
|
9
|
-
## Jest snapshots
|
|
10
|
-
|
|
11
|
-
The tests use Jest snapshots, so we can easily:
|
|
12
|
-
|
|
13
|
-
- assert against potentially large objects and strings
|
|
14
|
-
- update expectations as needed.
|
|
15
|
-
|
|
16
|
-
## The pattern
|
|
17
|
-
|
|
18
|
-
To add a system test, you should:
|
|
19
|
-
|
|
20
|
-
- add a test-case folder to `system-tests/` incrementing the number from existing test cases
|
|
21
|
-
- add a configuration file and a stylesheet
|
|
22
|
-
- add a `fs.test.js` and `no-fs.test.js` following the format established by existing tests, and using the `systemTestUtils`
|
|
23
|
-
- take a snapshot of `output`
|