@averay/codeformat 0.2.17 → 0.2.19

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.
@@ -1,79 +1,79 @@
1
1
  declare const _default: {
2
- 'jsx-a11y/aria-role': ["error", {
3
- allowInvalidRoles: string[];
2
+ readonly 'jsx-a11y/aria-role': ["error", {
3
+ readonly allowInvalidRoles: readonly ["text"];
4
4
  }];
5
- 'jsx-a11y/control-has-associated-label': "error";
6
- 'jsx-a11y/lang': "error";
7
- 'jsx-a11y/no-aria-hidden-on-focusable': "error";
8
- 'jsx-a11y/prefer-tag-over-role': "error";
9
- 'react/button-has-type': "error";
10
- 'react/checked-requires-onchange-or-readonly': "error";
11
- 'react/destructuring-assignment': ["error", string];
12
- 'react/forward-ref-uses-ref': "error";
13
- 'react/function-component-definition': ["error", {
14
- namedComponents: string;
15
- unnamedComponents: string;
5
+ readonly 'jsx-a11y/control-has-associated-label': "error";
6
+ readonly 'jsx-a11y/lang': "error";
7
+ readonly 'jsx-a11y/no-aria-hidden-on-focusable': "error";
8
+ readonly 'jsx-a11y/prefer-tag-over-role': "error";
9
+ readonly 'react/button-has-type': "error";
10
+ readonly 'react/checked-requires-onchange-or-readonly': "error";
11
+ readonly 'react/destructuring-assignment': ["error", "always"];
12
+ readonly 'react/forward-ref-uses-ref': "error";
13
+ readonly 'react/function-component-definition': ["error", {
14
+ readonly namedComponents: "function-declaration";
15
+ readonly unnamedComponents: "arrow-function";
16
16
  }];
17
- 'react/hook-use-state': ["error", {
18
- allowDestructuredState: boolean;
17
+ readonly 'react/hook-use-state': ["error", {
18
+ readonly allowDestructuredState: true;
19
19
  }];
20
- 'react/iframe-missing-sandbox': "error";
21
- 'react/jsx-boolean-value': ["error", string];
22
- 'react/jsx-curly-brace-presence': ["error", {
23
- children: string;
24
- propElementValues: string;
25
- props: string;
20
+ readonly 'react/iframe-missing-sandbox': "error";
21
+ readonly 'react/jsx-boolean-value': ["error", "always"];
22
+ readonly 'react/jsx-curly-brace-presence': ["error", {
23
+ readonly children: "never";
24
+ readonly propElementValues: "always";
25
+ readonly props: "never";
26
26
  }];
27
- 'react/jsx-fragments': ["error", string];
28
- 'react/jsx-handler-names': ["error", {
29
- checkLocalVariables: boolean;
30
- eventHandlerPrefix: string;
27
+ readonly 'react/jsx-fragments': ["error", "syntax"];
28
+ readonly 'react/jsx-handler-names': ["error", {
29
+ readonly checkLocalVariables: true;
30
+ readonly eventHandlerPrefix: string;
31
31
  }];
32
- 'react/jsx-key': ["error", {
33
- checkFragmentShorthand: boolean;
34
- checkKeyMustBeforeSpread: boolean;
35
- warnOnDuplicates: boolean;
32
+ readonly 'react/jsx-key': ["error", {
33
+ readonly checkFragmentShorthand: true;
34
+ readonly checkKeyMustBeforeSpread: true;
35
+ readonly warnOnDuplicates: true;
36
36
  }];
37
- 'react/jsx-no-bind': ["error", {
38
- allowArrowFunctions: boolean;
37
+ readonly 'react/jsx-no-bind': ["error", {
38
+ readonly allowArrowFunctions: true;
39
39
  }];
40
- 'react/jsx-no-constructed-context-values': "error";
41
- 'react/jsx-no-script-url': "error";
42
- 'react/jsx-no-target-blank': "off";
43
- 'react/jsx-no-useless-fragment': ["error", {
44
- allowExpressions: boolean;
40
+ readonly 'react/jsx-no-constructed-context-values': "error";
41
+ readonly 'react/jsx-no-script-url': "error";
42
+ readonly 'react/jsx-no-target-blank': "off";
43
+ readonly 'react/jsx-no-useless-fragment': ["error", {
44
+ readonly allowExpressions: true;
45
45
  }];
46
- 'react/jsx-pascal-case': "error";
47
- 'react/jsx-props-no-spread-multi': "error";
48
- 'react/jsx-sort-props': ["error", {
49
- callbacksLast: boolean;
50
- multiline: string;
51
- noSortAlphabetically: boolean;
52
- reservedFirst: string[];
46
+ readonly 'react/jsx-pascal-case': "error";
47
+ readonly 'react/jsx-props-no-spread-multi': "error";
48
+ readonly 'react/jsx-sort-props': ["error", {
49
+ readonly callbacksLast: true;
50
+ readonly multiline: "last";
51
+ readonly noSortAlphabetically: true;
52
+ readonly reservedFirst: readonly ["key"];
53
53
  }];
54
- 'react/no-access-state-in-setstate': "error";
55
- 'react/no-array-index-key': "error";
56
- 'react/no-arrow-function-lifecycle': "error";
57
- 'react/no-did-mount-set-state': "error";
58
- 'react/no-did-update-set-state': "error";
59
- 'react/no-invalid-html-attribute': "error";
60
- 'react/no-namespace': "error";
61
- 'react/no-object-type-as-default-prop': "error";
62
- 'react/no-redundant-should-component-update': "error";
63
- 'react/no-set-state': "error";
64
- 'react/no-this-in-sfc': "error";
65
- 'react/no-typos': "error";
66
- 'react/no-unknown-property': ["error", {
67
- requireDataLowercase: boolean;
54
+ readonly 'react/no-access-state-in-setstate': "error";
55
+ readonly 'react/no-array-index-key': "error";
56
+ readonly 'react/no-arrow-function-lifecycle': "error";
57
+ readonly 'react/no-did-mount-set-state': "error";
58
+ readonly 'react/no-did-update-set-state': "error";
59
+ readonly 'react/no-invalid-html-attribute': "error";
60
+ readonly 'react/no-namespace': "error";
61
+ readonly 'react/no-object-type-as-default-prop': "error";
62
+ readonly 'react/no-redundant-should-component-update': "error";
63
+ readonly 'react/no-set-state': "error";
64
+ readonly 'react/no-this-in-sfc': "error";
65
+ readonly 'react/no-typos': "error";
66
+ readonly 'react/no-unknown-property': ["error", {
67
+ readonly requireDataLowercase: true;
68
68
  }];
69
- 'react/no-unsafe': "error";
70
- 'react/no-unstable-nested-components': "error";
71
- 'react/no-unused-class-component-methods': "error";
72
- 'react/no-unused-prop-types': "error";
73
- 'react/no-unused-state': "error";
74
- 'react/no-will-update-set-state': "error";
75
- 'react/prefer-es6-class': "error";
76
- 'react/prefer-stateless-function': "error";
77
- 'react/self-closing-comp': "error";
69
+ readonly 'react/no-unsafe': "error";
70
+ readonly 'react/no-unstable-nested-components': "error";
71
+ readonly 'react/no-unused-class-component-methods': "error";
72
+ readonly 'react/no-unused-prop-types': "error";
73
+ readonly 'react/no-unused-state': "error";
74
+ readonly 'react/no-will-update-set-state': "error";
75
+ readonly 'react/prefer-es6-class': "error";
76
+ readonly 'react/prefer-stateless-function': "error";
77
+ readonly 'react/self-closing-comp': "error";
78
78
  };
79
79
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"ruleset-jsx.js","sourceRoot":"","sources":["../../../rulesets/eslint/ruleset-jsx.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAC9C,OAAO,kCAAkC,MAAM,kDAAkD,CAAC;AAElG,MAAM,gBAAgB,GAAG,MAAM,MAAM,CAAC,2BAA2B,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAEpG,eAAe;IACb,GAAG,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK;IACrC,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,KAAK;IACjD,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,KAAK;IACjD,GAAG,gBAAgB,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK;IAC7C,GAAG,kCAAkC,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK;IAE/D,oBAAoB,EAAE,CAAC,OAAO,EAAE,EAAE,iBAAiB,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;IAChE,uCAAuC,EAAE,OAAO;IAChD,eAAe,EAAE,OAAO;IACxB,sCAAsC,EAAE,OAAO;IAC/C,+BAA+B,EAAE,OAAO;IAExC,uBAAuB,EAAE,OAAO;IAChC,6CAA6C,EAAE,OAAO;IACtD,gCAAgC,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC;IACrD,4BAA4B,EAAE,OAAO;IACrC,qCAAqC,EAAE;QACrC,OAAO;QACP,EAAE,eAAe,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE;KACjF;IACD,sBAAsB,EAAE,CAAC,OAAO,EA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E,aAAa,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,oBAAoB,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,KAAK,CAAC,EAAE;KAC/F;IACD,mCAAmC,EAAE,OAAO;IAC5C,0BAA0B,EAAE,OAAO;IACnC,mCAAmC,EAAE,OAAO;IAC5C,8BAA8B,EAAE,OAAO;IACvC,+BAA+B,EAAE,OAAO;IACxC,iCAAiC,EAAE,OAAO;IAC1C,oBAAoB,EAAE,OAAO;IAC7B,sCAAsC,EAAE,OAAO;IAC/C,4CAA4C,EAAE,OAAO;IACrD,oBAAoB,EAAE,OAAO;IAC7B,sBAAsB,EAAE,OAAO;IAC/B,gBAAgB,EAAE,OAAO;IACzB,2BAA2B,EAAE,CAAC,OAAO,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;IACtE,iBAAiB,EAAE,OAAO;IAC1B,qCAAqC,EAAE,OAAO;IAC9C,yCAAyC,EAAE,OAAO;IAClD,4BAA4B,EAAE,OAAO;IACrC,uBAAuB,EAAE,OAAO;IAChC,gCAAgC,EAAE,OAAO;IACzC,wBAAwB,EAAE,OAAO;IACjC,iCAAiC,EAAE,OAAO;IAC1C,yBAAyB,EAAE,OAAO;CACU,CAAC"}
@@ -0,0 +1,20 @@
1
+ declare const _default: {
2
+ readonly "markdown/fenced-code-language": "error";
3
+ readonly "markdown/heading-increment": "error";
4
+ readonly "markdown/no-duplicate-definitions": "error";
5
+ readonly "markdown/no-empty-definitions": "error";
6
+ readonly "markdown/no-empty-images": "error";
7
+ readonly "markdown/no-empty-links": "error";
8
+ readonly "markdown/no-invalid-label-refs": "error";
9
+ readonly "markdown/no-missing-atx-heading-space": "error";
10
+ readonly "markdown/no-missing-label-refs": "error";
11
+ readonly "markdown/no-missing-link-fragments": "error";
12
+ readonly "markdown/no-multiple-h1": "error";
13
+ readonly "markdown/no-reference-like-urls": "error";
14
+ readonly "markdown/no-reversed-media-syntax": "error";
15
+ readonly "markdown/no-space-in-emphasis": "error";
16
+ readonly "markdown/no-unused-definitions": "error";
17
+ readonly "markdown/require-alt-text": "error";
18
+ readonly "markdown/table-column-count": "error";
19
+ };
20
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import markdownPlugin from '@eslint/markdown';
2
+ function mergeRulesets(entries) {
3
+ const merged = {};
4
+ for (const { rules } of entries) {
5
+ Object.assign(merged, rules);
6
+ }
7
+ return merged;
8
+ }
9
+ export default {
10
+ ...mergeRulesets(markdownPlugin.configs.recommended),
11
+ };
12
+ //# sourceMappingURL=ruleset-markdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ruleset-markdown.js","sourceRoot":"","sources":["../../../rulesets/eslint/ruleset-markdown.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAG9C,SAAS,aAAa,CAAgC,OAAuB;IAC3E,MAAM,MAAM,GAAG,EAAO,CAAC;IACvB,KAAK,MAAM,EAAE,KAAK,EAAE,IAAI,OAAO,EAAE,CAAC;QAChC,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC/B,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,eAAe;IACb,GAAG,aAAa,CAAC,cAAc,CAAC,OAAO,CAAC,WAAW,CAAC;CACR,CAAC"}