@htyf-mp/stylelint-taro-rn 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/README.md +67 -0
  2. package/dist/index.cjs.js +378 -0
  3. package/dist/index.cjs.js.map +1 -0
  4. package/dist/index.d.ts +3 -0
  5. package/dist/index.esm.js +369 -0
  6. package/dist/index.esm.js.map +1 -0
  7. package/dist/index.js +10 -0
  8. package/dist/index.js.map +1 -0
  9. package/dist/rules/css-property-no-unknown/index.d.ts +5 -0
  10. package/dist/rules/css-property-no-unknown/index.js +62 -0
  11. package/dist/rules/css-property-no-unknown/index.js.map +1 -0
  12. package/dist/rules/font-weight-no-ignored-values/index.d.ts +5 -0
  13. package/dist/rules/font-weight-no-ignored-values/index.js +36 -0
  14. package/dist/rules/font-weight-no-ignored-values/index.js.map +1 -0
  15. package/dist/rules/index.d.ts +11 -0
  16. package/dist/rules/index.js +14 -0
  17. package/dist/rules/index.js.map +1 -0
  18. package/dist/rules/line-height-no-value-without-unit/index.d.ts +5 -0
  19. package/dist/rules/line-height-no-value-without-unit/index.js +37 -0
  20. package/dist/rules/line-height-no-value-without-unit/index.js.map +1 -0
  21. package/dist/rules/style-property-no-unknown/index.d.ts +5 -0
  22. package/dist/rules/style-property-no-unknown/index.js +58 -0
  23. package/dist/rules/style-property-no-unknown/index.js.map +1 -0
  24. package/dist/utils/endsWith.d.ts +1 -0
  25. package/dist/utils/endsWith.js +4 -0
  26. package/dist/utils/endsWith.js.map +1 -0
  27. package/dist/utils/hasInterpolation.d.ts +7 -0
  28. package/dist/utils/hasInterpolation.js +22 -0
  29. package/dist/utils/hasInterpolation.js.map +1 -0
  30. package/dist/utils/hasLessInterpolation.d.ts +7 -0
  31. package/dist/utils/hasLessInterpolation.js +15 -0
  32. package/dist/utils/hasLessInterpolation.js.map +1 -0
  33. package/dist/utils/hasPsvInterpolation.d.ts +4 -0
  34. package/dist/utils/hasPsvInterpolation.js +12 -0
  35. package/dist/utils/hasPsvInterpolation.js.map +1 -0
  36. package/dist/utils/hasScssInterpolation.d.ts +4 -0
  37. package/dist/utils/hasScssInterpolation.js +12 -0
  38. package/dist/utils/hasScssInterpolation.js.map +1 -0
  39. package/dist/utils/index.d.ts +13 -0
  40. package/dist/utils/isCustomProperty.d.ts +4 -0
  41. package/dist/utils/isCustomProperty.js +9 -0
  42. package/dist/utils/isCustomProperty.js.map +1 -0
  43. package/dist/utils/isExportBlock.d.ts +4 -0
  44. package/dist/utils/isExportBlock.js +12 -0
  45. package/dist/utils/isExportBlock.js.map +1 -0
  46. package/dist/utils/isStandardSyntaxDeclaration.d.ts +4 -0
  47. package/dist/utils/isStandardSyntaxDeclaration.js +29 -0
  48. package/dist/utils/isStandardSyntaxDeclaration.js.map +1 -0
  49. package/dist/utils/isStandardSyntaxProperty.d.ts +4 -0
  50. package/dist/utils/isStandardSyntaxProperty.js +28 -0
  51. package/dist/utils/isStandardSyntaxProperty.js.map +1 -0
  52. package/dist/utils/isString.d.ts +1 -0
  53. package/dist/utils/isString.js +4 -0
  54. package/dist/utils/isString.js.map +1 -0
  55. package/dist/utils/kebabCase.d.ts +1 -0
  56. package/dist/utils/kebabCase.js +4 -0
  57. package/dist/utils/kebabCase.js.map +1 -0
  58. package/dist/utils/matchesStringOrRegExp.d.ts +12 -0
  59. package/dist/utils/matchesStringOrRegExp.js +60 -0
  60. package/dist/utils/matchesStringOrRegExp.js.map +1 -0
  61. package/dist/utils/namespace.d.ts +1 -0
  62. package/dist/utils/namespace.js +7 -0
  63. package/dist/utils/namespace.js.map +1 -0
  64. package/dist/utils/optionsMatches.d.ts +5 -0
  65. package/dist/utils/optionsMatches.js +15 -0
  66. package/dist/utils/optionsMatches.js.map +1 -0
  67. package/package.json +55 -0
package/README.md ADDED
@@ -0,0 +1,67 @@
1
+ # stylelint-react-native
2
+
3
+ A collection of React Native specific linting rules for [stylelint](https://github.com/stylelint/stylelint) (in a form of a plugin).
4
+
5
+ ## Installation and usage
6
+
7
+ Install `stylelint-react-native` (and `stylelint`, if you haven't done so yet):
8
+
9
+ ```
10
+ yarn add stylelint stylelint-react-native --dev
11
+ ```
12
+
13
+ or
14
+
15
+ ```
16
+ npm install stylelint stylelint-react-native --save-dev
17
+ ```
18
+
19
+ Create the `.stylelintrc` config file (or open the existing one), add `stylelint-react-native` to the plugins array and the rules you need to the rules list. All rules from `stylelint-react-native` need to be namespaced with `react-native`.
20
+
21
+ ```json
22
+ {
23
+ "plugins": ["stylelint-taro-rn"],
24
+ "rules": {
25
+ "taro-rn/css-property-no-unknown": true
26
+ }
27
+ }
28
+ ```
29
+
30
+ Please refer to [stylelint docs](http://stylelint.io/user-guide/) for the detailed info on using this linter plugin.
31
+
32
+ ## List of rules
33
+
34
+ ### General rules
35
+
36
+ - [`font-weight-no-ignored-values`](./src/rules/font-weight-no-ignored-values/README.md): Disallow valid `font-weight` values that work on iOS, but are ignored and get mapped to `normal` or `bold` weight on Android.
37
+
38
+ ---
39
+
40
+ ### css- rules (for tools like styled-components)
41
+
42
+ These rules are meant to be used with tools that allow you to write CSS when using React Native, e.g. [styled-components](https://www.styled-components.com/), [React Native CSS modules](https://github.com/kristerkari/react-native-css-modules), etc.
43
+
44
+ - [`css-property-no-unknown`](./src/rules/css-property-no-unknown/README.md): Disallow unknown React Native CSS properties.
45
+
46
+ ---
47
+
48
+ ### style- rules (for React Native's built-in styling)
49
+
50
+ These rules are meant to be used when styling with React Native's built-in styling, or with tools that use React Native's default styling.
51
+
52
+ - [`style-property-no-unknown`](./src/rules/style-property-no-unknown/README.md): Disallow unknown React Native Style properties.
53
+
54
+ ## Help out
55
+
56
+ There work on the plugin's rules is still in progress, so if you feel like it, you're welcome to help out in any of these (the plugin follows stylelint guidelines so most part of this is based on its docs):
57
+
58
+ - Create, enhance, and debug rules (see stylelint's guide to "[Working on rules](https://github.com/stylelint/stylelint/blob/master/docs/developer-guide/rules.md)").
59
+ - Improve documentation.
60
+ - Chime in on any open issue or pull request.
61
+ - Open new issues about your ideas on new rules, or for how to improve the existing ones, and pull requests to show us how your idea works.
62
+ - Add new tests to absolutely anything.
63
+ - Work on improving performance of rules.
64
+ - Contribute to [stylelint](https://github.com/stylelint/stylelint)
65
+ - Spread the word.
66
+
67
+ There is also [stackoverflow](http://stackoverflow.com/questions/tagged/stylelint), which would be the preferred QA forum.
@@ -0,0 +1,378 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var stylelint = require('stylelint');
6
+ var reactNativeKnownStylingProperties = require('react-native-known-styling-properties');
7
+ var declarationValueIndex = require('stylelint/lib/utils/declarationValueIndex.cjs');
8
+
9
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
+
11
+ var stylelint__default = /*#__PURE__*/_interopDefaultLegacy(stylelint);
12
+ var declarationValueIndex__default = /*#__PURE__*/_interopDefaultLegacy(declarationValueIndex);
13
+
14
+ const endsWith = (str, suffix) => str.indexOf(suffix, str.length - suffix.length) !== -1;
15
+
16
+ /**
17
+ * Check whether a string has less interpolation
18
+ *
19
+ * @param {string} string
20
+ * @return {boolean} If `true`, a string has less interpolation
21
+ */
22
+ function hasLessInterpolation(string /*: string */) {
23
+ if (/@{.+?}/.test(string)) {
24
+ return true;
25
+ }
26
+ return false;
27
+ }
28
+
29
+ /**
30
+ * Check whether a string has postcss-simple-vars interpolation
31
+ */
32
+ function hasPsvInterpolation(string /*: string */) {
33
+ if (/\$\(.+?\)/.test(string)) {
34
+ return true;
35
+ }
36
+ return false;
37
+ }
38
+
39
+ /**
40
+ * Check whether a string has scss interpolation
41
+ */
42
+ function hasScssInterpolation(string /*: string */) {
43
+ if (/#{.+?}/.test(string)) {
44
+ return true;
45
+ }
46
+ return false;
47
+ }
48
+
49
+ /**
50
+ * Check whether a string has interpolation
51
+ *
52
+ * @param {string} string
53
+ * @return {boolean} If `true`, a string has interpolation
54
+ */
55
+ function hasInterpolation(string /*: string */) {
56
+ // SCSS or Less interpolation
57
+ if (hasLessInterpolation(string) ||
58
+ hasScssInterpolation(string) ||
59
+ hasPsvInterpolation(string)) {
60
+ return true;
61
+ }
62
+ return false;
63
+ }
64
+
65
+ /**
66
+ * Check whether a property is a custom one
67
+ */
68
+ function isCustomProperty(property /*: string */) {
69
+ return property.slice(0, 2) === '--';
70
+ }
71
+
72
+ /**
73
+ * Check whether a node is an :export block
74
+ */
75
+ function isExportBlock(node /*: Object */) {
76
+ if (node.type === 'rule' && node.selector && node.selector === ':export') {
77
+ return true;
78
+ }
79
+ return false;
80
+ }
81
+
82
+ /**
83
+ * Check whether a declaration is standard
84
+ */
85
+ function isStandardSyntaxDeclaration(decl /*: Object */) {
86
+ const prop = decl.prop;
87
+ const parent = decl.parent;
88
+ // Declarations belong in a declaration block
89
+ if (parent.type === 'root') {
90
+ return false;
91
+ }
92
+ // Sass var (e.g. $var: x), nested list (e.g. $list: (x)) or nested map (e.g. $map: (key:value))
93
+ if (prop[0] === '$') {
94
+ return false;
95
+ }
96
+ // Less var (e.g. @var: x), but exclude variable interpolation (e.g. @{var})
97
+ if (prop[0] === '@' && prop[1] !== '{') {
98
+ return false;
99
+ }
100
+ // Sass nested properties (e.g. border: { style: solid; color: red; })
101
+ if (parent.selector &&
102
+ parent.selector[parent.selector.length - 1] === ':' &&
103
+ parent.selector.substring(0, 2) !== '--') {
104
+ return false;
105
+ }
106
+ return true;
107
+ }
108
+
109
+ /**
110
+ * Check whether a property is standard
111
+ */
112
+ function isStandardSyntaxProperty(property /*: string */) {
113
+ // SCSS var (e.g. $var: x), list (e.g. $list: (x)) or map (e.g. $map: (key:value))
114
+ if (property[0] === '$') {
115
+ return false;
116
+ }
117
+ // Less var (e.g. @var: x)
118
+ if (property[0] === '@') {
119
+ return false;
120
+ }
121
+ // Less append property value with space (e.g. transform+_: scale(2))
122
+ if (endsWith(property, '+') || endsWith(property, '+_')) {
123
+ return false;
124
+ }
125
+ // SCSS or Less interpolation
126
+ if (hasInterpolation(property)) {
127
+ return false;
128
+ }
129
+ return true;
130
+ }
131
+
132
+ const isString = string => typeof string === 'string';
133
+
134
+ const kebabCase = string => string.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
135
+
136
+ const prefix = 'taro-rn';
137
+ function namespace(ruleName) {
138
+ return `${prefix}/${ruleName}`;
139
+ }
140
+
141
+ /**
142
+ * Compares a string to a second value that, if it fits a certain convention,
143
+ * is converted to a regular expression before the comparison.
144
+ * If it doesn't fit the convention, then two strings are compared.
145
+ *
146
+ * Any strings starting and ending with `/` are interpreted
147
+ * as regular expressions.
148
+ */
149
+ function matchesStringOrRegExp(input /*: string | Array<string> */, comparison /*: string | Array<string> */) {
150
+ if (!Array.isArray(input)) {
151
+ return testAgainstStringOrRegExpOrArray(input, comparison);
152
+ }
153
+ for (const inputItem of input) {
154
+ const testResult = testAgainstStringOrRegExpOrArray(inputItem, comparison);
155
+ if (testResult) {
156
+ return testResult;
157
+ }
158
+ }
159
+ return false;
160
+ }
161
+ function testAgainstStringOrRegExpOrArray(value, comparison) {
162
+ if (!Array.isArray(comparison)) {
163
+ return testAgainstStringOrRegExp(value, comparison);
164
+ }
165
+ for (const comparisonItem of comparison) {
166
+ const testResult = testAgainstStringOrRegExp(value, comparisonItem);
167
+ if (testResult) {
168
+ return testResult;
169
+ }
170
+ }
171
+ return false;
172
+ }
173
+ function testAgainstStringOrRegExp(value, comparison) {
174
+ // If it's a RegExp, test directly
175
+ if (comparison instanceof RegExp) {
176
+ return comparison.test(value)
177
+ ? { match: value, pattern: comparison }
178
+ : false;
179
+ }
180
+ // Check if it's RegExp in a string
181
+ const firstComparisonChar = comparison[0];
182
+ const lastComparisonChar = comparison[comparison.length - 1];
183
+ const secondToLastComparisonChar = comparison[comparison.length - 2];
184
+ const comparisonIsRegex = firstComparisonChar === '/' &&
185
+ (lastComparisonChar === '/' ||
186
+ (secondToLastComparisonChar === '/' && lastComparisonChar === 'i'));
187
+ const hasCaseInsensitiveFlag = comparisonIsRegex && lastComparisonChar === 'i';
188
+ // If so, create a new RegExp from it
189
+ if (comparisonIsRegex) {
190
+ const valueMatches = hasCaseInsensitiveFlag
191
+ ? new RegExp(comparison.slice(1, -2), 'i').test(value)
192
+ : new RegExp(comparison.slice(1, -1)).test(value);
193
+ return valueMatches ? { match: value, pattern: comparison } : false;
194
+ }
195
+ // Otherwise, it's a string. Do a strict comparison
196
+ return value === comparison ? { match: value, pattern: comparison } : false;
197
+ }
198
+
199
+ /**
200
+ * Check if an options object's propertyName contains a user-defined string or
201
+ * regex that matches the passed in input.
202
+ */
203
+ function optionsMatches(options /*: Object */, propertyName /*: string */, input /*: string */) {
204
+ return !!(options &&
205
+ options[propertyName] &&
206
+ typeof input === 'string' &&
207
+ matchesStringOrRegExp(input, options[propertyName]));
208
+ }
209
+
210
+ const ruleName$3 = namespace('css-property-no-unknown');
211
+ const messages$3 = stylelint__default["default"].utils.ruleMessages(ruleName$3, {
212
+ rejected: (property) => `无效的 React Native 样式属性 "${property}"`
213
+ });
214
+ const props$1 = reactNativeKnownStylingProperties.allCSS2RNProps.map(kebabCase);
215
+ function cssPropertyNoUnknown (actual, options) {
216
+ return function (root, result) {
217
+ const validOptions = stylelint__default["default"].utils.validateOptions(result, ruleName$3, {
218
+ actual
219
+ }, {
220
+ actual: options,
221
+ possible: {
222
+ ignoreProperties: [isString]
223
+ },
224
+ optional: true
225
+ });
226
+ if (!validOptions) {
227
+ return;
228
+ }
229
+ root.walkDecls((decl) => {
230
+ const prop = decl.prop;
231
+ if (!isStandardSyntaxProperty(prop)) {
232
+ return;
233
+ }
234
+ if (!isStandardSyntaxDeclaration(decl)) {
235
+ return;
236
+ }
237
+ if (isCustomProperty(prop)) {
238
+ return;
239
+ }
240
+ if (isExportBlock(decl.parent)) {
241
+ return;
242
+ }
243
+ if (optionsMatches(options, 'ignoreProperties', prop)) {
244
+ return;
245
+ }
246
+ if (props$1.indexOf(prop.toLowerCase()) !== -1) {
247
+ return;
248
+ }
249
+ stylelint__default["default"].utils.report({
250
+ message: messages$3.rejected(prop),
251
+ node: decl,
252
+ result,
253
+ ruleName: ruleName$3
254
+ });
255
+ });
256
+ };
257
+ }
258
+
259
+ const ruleName$2 = namespace('font-weight-no-ignored-values');
260
+ const messages$2 = stylelint__default["default"].utils.ruleMessages(ruleName$2, {
261
+ rejected: (weight) => `Unexpected font-weight "${weight}"`
262
+ });
263
+ const acceptedWeights = ['400', '700', 'normal', 'bold'];
264
+ function fontWeightNoIgnoredValues (actual) {
265
+ return function (root, result) {
266
+ const validOptions = stylelint__default["default"].utils.validateOptions(result, ruleName$2, {
267
+ actual
268
+ });
269
+ if (!validOptions) {
270
+ return;
271
+ }
272
+ root.walkDecls(/^font-weight$/i, (decl) => {
273
+ if (acceptedWeights.indexOf(decl.value) > -1) {
274
+ return;
275
+ }
276
+ const weightValueOffset = decl.value.indexOf(decl.value);
277
+ const index = declarationValueIndex__default["default"](decl) + weightValueOffset;
278
+ stylelint__default["default"].utils.report({
279
+ message: messages$2.rejected(decl.value),
280
+ node: decl,
281
+ result,
282
+ ruleName: ruleName$2,
283
+ index
284
+ });
285
+ });
286
+ };
287
+ }
288
+
289
+ const ruleName$1 = namespace('line-height-no-value-without-unit');
290
+ const messages$1 = stylelint__default["default"].utils.ruleMessages(ruleName$1, {
291
+ rejected: (height) => `Unexpected line-height "${height}", expect a value with units`
292
+ });
293
+ const lengthRe = /^(0$|(?:[+-]?(?:\d*\.)?\d+(?:[Ee][+-]?\d+)?)(?=px|PX|rem$))/;
294
+ const viewportUnitRe = /^([+-]?[0-9.]+)(vh|vw|vmin|vmax)$/;
295
+ function lineHeightNoValueWithoutUnit (actual) {
296
+ return function (root, result) {
297
+ const validOptions = stylelint__default["default"].utils.validateOptions(result, ruleName$1, {
298
+ actual
299
+ });
300
+ if (!validOptions) {
301
+ return;
302
+ }
303
+ root.walkDecls(/^line-height$/i, (decl) => {
304
+ if (lengthRe.test(decl.value) || viewportUnitRe.test(decl.value)) {
305
+ return;
306
+ }
307
+ const valueOffset = decl.value.indexOf(decl.value);
308
+ const index = declarationValueIndex__default["default"](decl) + valueOffset;
309
+ stylelint__default["default"].utils.report({
310
+ message: messages$1.rejected(decl.value),
311
+ node: decl,
312
+ result,
313
+ ruleName: ruleName$1,
314
+ index
315
+ });
316
+ });
317
+ };
318
+ }
319
+
320
+ const ruleName = namespace('style-property-no-unknown');
321
+ const messages = stylelint__default["default"].utils.ruleMessages(ruleName, {
322
+ rejected: (property) => `无效的 React Native 样式属性 "${property}"`
323
+ });
324
+ const props = reactNativeKnownStylingProperties.allProps.map(kebabCase);
325
+ function stylePropertyNoUnknown (actual, options) {
326
+ return function (root, result) {
327
+ const validOptions = stylelint__default["default"].utils.validateOptions(result, ruleName, {
328
+ actual
329
+ }, {
330
+ actual: options,
331
+ possible: {
332
+ ignoreProperties: [isString]
333
+ },
334
+ optional: true
335
+ });
336
+ if (!validOptions) {
337
+ return;
338
+ }
339
+ root.walkDecls((decl) => {
340
+ const prop = decl.prop;
341
+ if (!isStandardSyntaxProperty(prop)) {
342
+ return;
343
+ }
344
+ if (!isStandardSyntaxDeclaration(decl)) {
345
+ return;
346
+ }
347
+ if (isCustomProperty(prop)) {
348
+ return;
349
+ }
350
+ if (optionsMatches(options, 'ignoreProperties', prop)) {
351
+ return;
352
+ }
353
+ if (props.indexOf(prop.toLowerCase()) !== -1) {
354
+ return;
355
+ }
356
+ stylelint__default["default"].utils.report({
357
+ message: messages.rejected(prop),
358
+ node: decl,
359
+ result,
360
+ ruleName
361
+ });
362
+ });
363
+ };
364
+ }
365
+
366
+ var rules = {
367
+ 'font-weight-no-ignored-values': fontWeightNoIgnoredValues,
368
+ 'css-property-no-unknown': cssPropertyNoUnknown,
369
+ 'style-property-no-unknown': stylePropertyNoUnknown,
370
+ 'line-height-no-value-without-unit': lineHeightNoValueWithoutUnit
371
+ };
372
+
373
+ const rulesPlugins = Object.keys(rules).map((ruleName) => {
374
+ return stylelint__default["default"].createPlugin(namespace(ruleName), rules[ruleName]);
375
+ });
376
+
377
+ exports["default"] = rulesPlugins;
378
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":["../src/utils/endsWith.js","../src/utils/hasLessInterpolation.js","../src/utils/hasPsvInterpolation.js","../src/utils/hasScssInterpolation.js","../src/utils/hasInterpolation.js","../src/utils/isCustomProperty.js","../src/utils/isExportBlock.js","../src/utils/isStandardSyntaxDeclaration.js","../src/utils/isStandardSyntaxProperty.js","../src/utils/isString.js","../src/utils/kebabCase.js","../src/utils/namespace.js","../src/utils/matchesStringOrRegExp.js","../src/utils/optionsMatches.js","../src/rules/css-property-no-unknown/index.js","../src/rules/font-weight-no-ignored-values/index.js","../src/rules/line-height-no-value-without-unit/index.js","../src/rules/style-property-no-unknown/index.js","../src/rules/index.js","../src/index.js"],"sourcesContent":["export const endsWith = (str, suffix) =>\n str.indexOf(suffix, str.length - suffix.length) !== -1\n","/**\n * Check whether a string has less interpolation\n *\n * @param {string} string\n * @return {boolean} If `true`, a string has less interpolation\n */\nexport function hasLessInterpolation (string /*: string */) /*: boolean */ {\n if (/@{.+?}/.test(string)) {\n return true\n }\n\n return false\n}\n","/**\n * Check whether a string has postcss-simple-vars interpolation\n */\nexport function hasPsvInterpolation (string /*: string */) /*: boolean */ {\n if (/\\$\\(.+?\\)/.test(string)) {\n return true\n }\n\n return false\n}\n","/**\n * Check whether a string has scss interpolation\n */\nexport function hasScssInterpolation (string /*: string */) /*: boolean */ {\n if (/#{.+?}/.test(string)) {\n return true\n }\n\n return false\n}\n","import { hasLessInterpolation } from './hasLessInterpolation.js'\nimport { hasPsvInterpolation } from './hasPsvInterpolation.js'\nimport { hasScssInterpolation } from './hasScssInterpolation.js'\n\n/**\n * Check whether a string has interpolation\n *\n * @param {string} string\n * @return {boolean} If `true`, a string has interpolation\n */\nexport function hasInterpolation (string /*: string */) /*: boolean */ {\n // SCSS or Less interpolation\n if (\n hasLessInterpolation(string) ||\n hasScssInterpolation(string) ||\n hasPsvInterpolation(string)\n ) {\n return true\n }\n\n return false\n}\n","/**\n * Check whether a property is a custom one\n */\nexport function isCustomProperty (property /*: string */) /*: boolean */ {\n return property.slice(0, 2) === '--'\n}\n","/**\n * Check whether a node is an :export block\n */\nexport function isExportBlock (node /*: Object */) /*: boolean */ {\n if (node.type === 'rule' && node.selector && node.selector === ':export') {\n return true\n }\n\n return false\n}\n","/**\n * Check whether a declaration is standard\n */\nexport function isStandardSyntaxDeclaration (decl /*: Object */) /*: boolean */ {\n const prop = decl.prop\n const parent = decl.parent\n\n // Declarations belong in a declaration block\n\n if (parent.type === 'root') {\n return false\n }\n\n // Sass var (e.g. $var: x), nested list (e.g. $list: (x)) or nested map (e.g. $map: (key:value))\n if (prop[0] === '$') {\n return false\n }\n\n // Less var (e.g. @var: x), but exclude variable interpolation (e.g. @{var})\n if (prop[0] === '@' && prop[1] !== '{') {\n return false\n }\n\n // Sass nested properties (e.g. border: { style: solid; color: red; })\n if (\n parent.selector &&\n parent.selector[parent.selector.length - 1] === ':' &&\n parent.selector.substring(0, 2) !== '--'\n ) {\n return false\n }\n\n return true\n}\n","import { endsWith } from './endsWith.js'\nimport { hasInterpolation } from './hasInterpolation.js'\n\n/**\n * Check whether a property is standard\n */\nexport function isStandardSyntaxProperty (\n property /*: string */\n) /*: boolean */ {\n // SCSS var (e.g. $var: x), list (e.g. $list: (x)) or map (e.g. $map: (key:value))\n if (property[0] === '$') {\n return false\n }\n\n // Less var (e.g. @var: x)\n if (property[0] === '@') {\n return false\n }\n\n // Less append property value with space (e.g. transform+_: scale(2))\n if (endsWith(property, '+') || endsWith(property, '+_')) {\n return false\n }\n\n // SCSS or Less interpolation\n if (hasInterpolation(property)) {\n return false\n }\n\n return true\n}\n","export const isString = string => typeof string === 'string'\n","export const kebabCase = string =>\n string.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase()\n","const prefix = 'taro-rn'\n\nexport function namespace (ruleName) {\n return `${prefix}/${ruleName}`\n}\n","/**\n * Compares a string to a second value that, if it fits a certain convention,\n * is converted to a regular expression before the comparison.\n * If it doesn't fit the convention, then two strings are compared.\n *\n * Any strings starting and ending with `/` are interpreted\n * as regular expressions.\n */\nexport function matchesStringOrRegExp (\n input /*: string | Array<string> */,\n comparison /*: string | Array<string> */\n) /*: false | { match: string, pattern: string } */ {\n if (!Array.isArray(input)) {\n return testAgainstStringOrRegExpOrArray(input, comparison)\n }\n\n for (const inputItem of input) {\n const testResult = testAgainstStringOrRegExpOrArray(inputItem, comparison)\n if (testResult) {\n return testResult\n }\n }\n\n return false\n}\n\nfunction testAgainstStringOrRegExpOrArray (value, comparison) {\n if (!Array.isArray(comparison)) {\n return testAgainstStringOrRegExp(value, comparison)\n }\n\n for (const comparisonItem of comparison) {\n const testResult = testAgainstStringOrRegExp(value, comparisonItem)\n if (testResult) {\n return testResult\n }\n }\n return false\n}\n\nfunction testAgainstStringOrRegExp (value, comparison) {\n // If it's a RegExp, test directly\n if (comparison instanceof RegExp) {\n return comparison.test(value)\n ? { match: value, pattern: comparison }\n : false\n }\n\n // Check if it's RegExp in a string\n const firstComparisonChar = comparison[0]\n const lastComparisonChar = comparison[comparison.length - 1]\n const secondToLastComparisonChar = comparison[comparison.length - 2]\n\n const comparisonIsRegex =\n firstComparisonChar === '/' &&\n (lastComparisonChar === '/' ||\n (secondToLastComparisonChar === '/' && lastComparisonChar === 'i'))\n\n const hasCaseInsensitiveFlag =\n comparisonIsRegex && lastComparisonChar === 'i'\n\n // If so, create a new RegExp from it\n if (comparisonIsRegex) {\n const valueMatches = hasCaseInsensitiveFlag\n ? new RegExp(comparison.slice(1, -2), 'i').test(value)\n : new RegExp(comparison.slice(1, -1)).test(value)\n return valueMatches ? { match: value, pattern: comparison } : false\n }\n\n // Otherwise, it's a string. Do a strict comparison\n return value === comparison ? { match: value, pattern: comparison } : false\n}\n","import { matchesStringOrRegExp } from './matchesStringOrRegExp.js'\n\n/**\n * Check if an options object's propertyName contains a user-defined string or\n * regex that matches the passed in input.\n */\nexport function optionsMatches (\n options /*: Object */,\n propertyName /*: string */,\n input /*: string */\n) /*: boolean */ {\n return !!(\n options &&\n options[propertyName] &&\n typeof input === 'string' &&\n matchesStringOrRegExp(input, options[propertyName])\n )\n}\n","import { allCSS2RNProps } from 'react-native-known-styling-properties'\nimport stylelint from 'stylelint'\n\nimport {\n isCustomProperty,\n isExportBlock,\n isStandardSyntaxDeclaration,\n isStandardSyntaxProperty,\n isString,\n kebabCase,\n namespace,\n optionsMatches\n} from '../../utils/index.js'\n\nexport const ruleName = namespace('css-property-no-unknown')\n\nexport const messages = stylelint.utils.ruleMessages(ruleName, {\n rejected: (property) => `无效的 React Native 样式属性 \"${property}\"`\n})\n\nconst props = allCSS2RNProps.map(kebabCase)\n\nexport default function (actual, options) {\n return function (root, result) {\n const validOptions = stylelint.utils.validateOptions(\n result,\n ruleName,\n {\n actual\n },\n {\n actual: options,\n possible: {\n ignoreProperties: [isString]\n },\n optional: true\n }\n )\n\n if (!validOptions) {\n return\n }\n\n root.walkDecls((decl) => {\n const prop = decl.prop\n\n if (!isStandardSyntaxProperty(prop)) {\n return\n }\n\n if (!isStandardSyntaxDeclaration(decl)) {\n return\n }\n\n if (isCustomProperty(prop)) {\n return\n }\n\n if (isExportBlock(decl.parent)) {\n return\n }\n\n if (optionsMatches(options, 'ignoreProperties', prop)) {\n return\n }\n\n if (props.indexOf(prop.toLowerCase()) !== -1) {\n return\n }\n\n stylelint.utils.report({\n message: messages.rejected(prop),\n node: decl,\n result,\n ruleName\n })\n })\n }\n}\n","import stylelint from 'stylelint'\nimport declarationValueIndex from 'stylelint/lib/utils/declarationValueIndex.cjs'\n\nimport { namespace } from '../../utils/index.js'\n\nexport const ruleName = namespace('font-weight-no-ignored-values')\n\nexport const messages = stylelint.utils.ruleMessages(ruleName, {\n rejected: (weight) => `Unexpected font-weight \"${weight}\"`\n})\n\nconst acceptedWeights = ['400', '700', 'normal', 'bold']\n\nexport default function (actual) {\n return function (root, result) {\n const validOptions = stylelint.utils.validateOptions(result, ruleName, {\n actual\n })\n\n if (!validOptions) {\n return\n }\n\n root.walkDecls(/^font-weight$/i, (decl) => {\n if (acceptedWeights.indexOf(decl.value) > -1) {\n return\n }\n\n const weightValueOffset = decl.value.indexOf(decl.value)\n const index = declarationValueIndex(decl) + weightValueOffset\n\n stylelint.utils.report({\n message: messages.rejected(decl.value),\n node: decl,\n result,\n ruleName,\n index\n })\n })\n }\n}\n","import stylelint from 'stylelint'\nimport declarationValueIndex from 'stylelint/lib/utils/declarationValueIndex.cjs'\n\nimport { namespace } from '../../utils/index.js'\n\nexport const ruleName = namespace('line-height-no-value-without-unit')\n\nexport const messages = stylelint.utils.ruleMessages(ruleName, {\n rejected: (height) =>\n `Unexpected line-height \"${height}\", expect a value with units`\n})\n\nconst lengthRe = /^(0$|(?:[+-]?(?:\\d*\\.)?\\d+(?:[Ee][+-]?\\d+)?)(?=px|PX|rem$))/\nconst viewportUnitRe = /^([+-]?[0-9.]+)(vh|vw|vmin|vmax)$/\n\nexport default function (actual) {\n return function (root, result) {\n const validOptions = stylelint.utils.validateOptions(result, ruleName, {\n actual\n })\n\n if (!validOptions) {\n return\n }\n\n root.walkDecls(/^line-height$/i, (decl) => {\n if (lengthRe.test(decl.value) || viewportUnitRe.test(decl.value)) {\n return\n }\n\n const valueOffset = decl.value.indexOf(decl.value)\n const index = declarationValueIndex(decl) + valueOffset\n\n stylelint.utils.report({\n message: messages.rejected(decl.value),\n node: decl,\n result,\n ruleName,\n index\n })\n })\n }\n}\n","import { allProps } from 'react-native-known-styling-properties'\nimport stylelint from 'stylelint'\n\nimport {\n isCustomProperty,\n isStandardSyntaxDeclaration,\n isStandardSyntaxProperty,\n isString,\n kebabCase,\n namespace,\n optionsMatches\n} from '../../utils/index.js'\n\nexport const ruleName = namespace('style-property-no-unknown')\n\nexport const messages = stylelint.utils.ruleMessages(ruleName, {\n rejected: (property) => `无效的 React Native 样式属性 \"${property}\"`\n})\n\nconst props = allProps.map(kebabCase)\n\nexport default function (actual, options) {\n return function (root, result) {\n const validOptions = stylelint.utils.validateOptions(\n result,\n ruleName,\n {\n actual\n },\n {\n actual: options,\n possible: {\n ignoreProperties: [isString]\n },\n optional: true\n }\n )\n\n if (!validOptions) {\n return\n }\n\n root.walkDecls((decl) => {\n const prop = decl.prop\n\n if (!isStandardSyntaxProperty(prop)) {\n return\n }\n\n if (!isStandardSyntaxDeclaration(decl)) {\n return\n }\n\n if (isCustomProperty(prop)) {\n return\n }\n\n if (optionsMatches(options, 'ignoreProperties', prop)) {\n return\n }\n\n if (props.indexOf(prop.toLowerCase()) !== -1) {\n return\n }\n\n stylelint.utils.report({\n message: messages.rejected(prop),\n node: decl,\n result,\n ruleName\n })\n })\n }\n}\n","import cssPropertyNoUnknown from './css-property-no-unknown/index.js'\nimport fontWeightNoIgnoredValues from './font-weight-no-ignored-values/index.js'\nimport lineHeightNoValueWithoutUnit from './line-height-no-value-without-unit/index.js'\nimport stylePropertyNoUnknown from './style-property-no-unknown/index.js'\n\nexport default {\n 'font-weight-no-ignored-values': fontWeightNoIgnoredValues,\n 'css-property-no-unknown': cssPropertyNoUnknown,\n 'style-property-no-unknown': stylePropertyNoUnknown,\n 'line-height-no-value-without-unit': lineHeightNoValueWithoutUnit\n}\n","import stylelint from 'stylelint'\n\nimport rules from './rules/index.js'\nimport { namespace } from './utils/index.js'\n\nconst rulesPlugins = Object.keys(rules).map((ruleName) => {\n return stylelint.createPlugin(namespace(ruleName), rules[ruleName])\n})\n\nexport default rulesPlugins\n"],"names":["ruleName","messages","stylelint","props","allCSS2RNProps","declarationValueIndex","allProps"],"mappings":";;;;;;;;;;;;;AAAO,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,MAAM,KAClC,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;ACDxD;;;;;AAKG;AACa,SAAA,oBAAoB,CAAE,MAAM,gBAAc;AACxD,IAAA,IA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