@averay/codeformat 0.2.17 → 0.2.18

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,140 @@
1
1
  declare const _default: {
2
- 'jsx-a11y/aria-role': ["error", {
3
- allowInvalidRoles: string[];
2
+ readonly '@typescript-eslint/naming-convention': ["error", ...({
3
+ readonly selector: "default";
4
+ readonly format: readonly ["strictCamelCase"];
5
+ } | {
6
+ readonly selector: "import";
7
+ readonly format: null;
8
+ } | {
9
+ readonly selector: "variable";
10
+ readonly modifiers: readonly ["const"];
11
+ readonly format: readonly ["strictCamelCase", "StrictPascalCase", "UPPER_CASE"];
12
+ } | {
13
+ readonly selector: "variable";
14
+ readonly modifiers: readonly ["const"];
15
+ readonly filter: {
16
+ readonly regex: string;
17
+ readonly match: true;
18
+ };
19
+ readonly format: readonly ["strictCamelCase"];
20
+ readonly leadingUnderscore: "allow";
21
+ } | {
22
+ readonly selector: "property";
23
+ readonly format: readonly ["strictCamelCase", "UPPER_CASE"];
24
+ } | {
25
+ readonly selector: "classProperty";
26
+ readonly modifiers: readonly ["static"];
27
+ readonly format: readonly ["strictCamelCase", "StrictPascalCase", "UPPER_CASE"];
28
+ } | {
29
+ readonly selector: "enumMember";
30
+ readonly format: readonly ["strictCamelCase", "StrictPascalCase", "UPPER_CASE"];
31
+ } | {
32
+ readonly selector: "function";
33
+ readonly format: readonly ["strictCamelCase", "StrictPascalCase"];
34
+ } | {
35
+ readonly selector: "typeLike";
36
+ readonly format: readonly ["StrictPascalCase"];
37
+ } | {
38
+ readonly selector: readonly ["objectLiteralProperty"];
39
+ readonly format: null;
40
+ } | {
41
+ readonly selector: readonly ["classProperty", "objectLiteralMethod"];
42
+ readonly format: readonly ["strictCamelCase", "UPPER_CASE"];
43
+ } | {
44
+ readonly selector: "typeParameter";
45
+ readonly format: null;
46
+ readonly custom: {
47
+ readonly regex: string;
48
+ readonly match: true;
49
+ };
50
+ } | ({
51
+ readonly selector: "parameter";
52
+ readonly format: readonly ["strictCamelCase"];
53
+ readonly leadingUnderscore: "allow";
54
+ } & Record<"modifiers", unknown>) | ({
55
+ readonly selector: "parameter";
56
+ readonly format: readonly ["strictCamelCase"];
57
+ readonly leadingUnderscore: "allow";
58
+ } & Record<"filter", unknown>) | {
59
+ format: string[];
60
+ selector: "parameter";
61
+ leadingUnderscore: "allow";
62
+ })[]];
63
+ readonly 'jsx-a11y/aria-role': ["error", {
64
+ readonly allowInvalidRoles: readonly ["text"];
4
65
  }];
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;
66
+ readonly 'jsx-a11y/control-has-associated-label': "error";
67
+ readonly 'jsx-a11y/lang': "error";
68
+ readonly 'jsx-a11y/no-aria-hidden-on-focusable': "error";
69
+ readonly 'jsx-a11y/prefer-tag-over-role': "error";
70
+ readonly 'react/button-has-type': "error";
71
+ readonly 'react/checked-requires-onchange-or-readonly': "error";
72
+ readonly 'react/destructuring-assignment': ["error", "always"];
73
+ readonly 'react/forward-ref-uses-ref': "error";
74
+ readonly 'react/function-component-definition': ["error", {
75
+ readonly namedComponents: "function-declaration";
76
+ readonly unnamedComponents: "arrow-function";
16
77
  }];
17
- 'react/hook-use-state': ["error", {
18
- allowDestructuredState: boolean;
78
+ readonly 'react/hook-use-state': ["error", {
79
+ readonly allowDestructuredState: true;
19
80
  }];
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;
81
+ readonly 'react/iframe-missing-sandbox': "error";
82
+ readonly 'react/jsx-boolean-value': ["error", "always"];
83
+ readonly 'react/jsx-curly-brace-presence': ["error", {
84
+ readonly children: "never";
85
+ readonly propElementValues: "always";
86
+ readonly props: "never";
26
87
  }];
27
- 'react/jsx-fragments': ["error", string];
28
- 'react/jsx-handler-names': ["error", {
29
- checkLocalVariables: boolean;
30
- eventHandlerPrefix: string;
88
+ readonly 'react/jsx-fragments': ["error", "syntax"];
89
+ readonly 'react/jsx-handler-names': ["error", {
90
+ readonly checkLocalVariables: true;
91
+ readonly eventHandlerPrefix: string;
31
92
  }];
32
- 'react/jsx-key': ["error", {
33
- checkFragmentShorthand: boolean;
34
- checkKeyMustBeforeSpread: boolean;
35
- warnOnDuplicates: boolean;
93
+ readonly 'react/jsx-key': ["error", {
94
+ readonly checkFragmentShorthand: true;
95
+ readonly checkKeyMustBeforeSpread: true;
96
+ readonly warnOnDuplicates: true;
36
97
  }];
37
- 'react/jsx-no-bind': ["error", {
38
- allowArrowFunctions: boolean;
98
+ readonly 'react/jsx-no-bind': ["error", {
99
+ readonly allowArrowFunctions: true;
39
100
  }];
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;
101
+ readonly 'react/jsx-no-constructed-context-values': "error";
102
+ readonly 'react/jsx-no-script-url': "error";
103
+ readonly 'react/jsx-no-target-blank': "off";
104
+ readonly 'react/jsx-no-useless-fragment': ["error", {
105
+ readonly allowExpressions: true;
45
106
  }];
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[];
107
+ readonly 'react/jsx-pascal-case': "error";
108
+ readonly 'react/jsx-props-no-spread-multi': "error";
109
+ readonly 'react/jsx-sort-props': ["error", {
110
+ readonly callbacksLast: true;
111
+ readonly multiline: "last";
112
+ readonly noSortAlphabetically: true;
113
+ readonly reservedFirst: readonly ["key"];
53
114
  }];
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;
115
+ readonly 'react/no-access-state-in-setstate': "error";
116
+ readonly 'react/no-array-index-key': "error";
117
+ readonly 'react/no-arrow-function-lifecycle': "error";
118
+ readonly 'react/no-did-mount-set-state': "error";
119
+ readonly 'react/no-did-update-set-state': "error";
120
+ readonly 'react/no-invalid-html-attribute': "error";
121
+ readonly 'react/no-namespace': "error";
122
+ readonly 'react/no-object-type-as-default-prop': "error";
123
+ readonly 'react/no-redundant-should-component-update': "error";
124
+ readonly 'react/no-set-state': "error";
125
+ readonly 'react/no-this-in-sfc': "error";
126
+ readonly 'react/no-typos': "error";
127
+ readonly 'react/no-unknown-property': ["error", {
128
+ readonly requireDataLowercase: true;
68
129
  }];
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";
130
+ readonly 'react/no-unsafe': "error";
131
+ readonly 'react/no-unstable-nested-components': "error";
132
+ readonly 'react/no-unused-class-component-methods': "error";
133
+ readonly 'react/no-unused-prop-types': "error";
134
+ readonly 'react/no-unused-state': "error";
135
+ readonly 'react/no-will-update-set-state': "error";
136
+ readonly 'react/prefer-es6-class': "error";
137
+ readonly 'react/prefer-stateless-function': "error";
138
+ readonly 'react/self-closing-comp': "error";
78
139
  };
79
140
  export default _default;
@@ -1,13 +1,24 @@
1
1
  import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
2
2
  import reactPlugin from 'eslint-plugin-react';
3
3
  import reactYouMightNotNeedAnEffectPlugin from 'eslint-plugin-react-you-might-not-need-an-effect';
4
+ import rulesetTypescript from "./ruleset-typescript.js";
4
5
  const reactHooksPlugin = await import('eslint-plugin-react-hooks').then((module) => module.default);
6
+ const [namingConventionState, ...namingConventionRules] = rulesetTypescript['@typescript-eslint/naming-convention'];
5
7
  export default {
6
8
  ...jsxA11yPlugin.configs.strict.rules,
7
9
  ...reactPlugin.configs.flat['recommended']?.rules,
8
10
  ...reactPlugin.configs.flat['jsx-runtime']?.rules,
9
11
  ...reactHooksPlugin.configs.recommended.rules,
10
12
  ...reactYouMightNotNeedAnEffectPlugin.configs.recommended.rules,
13
+ '@typescript-eslint/naming-convention': [
14
+ namingConventionState,
15
+ ...namingConventionRules.map((rule) => {
16
+ if (rule.selector !== 'parameter' || 'modifiers' in rule || 'filter' in rule) {
17
+ return rule;
18
+ }
19
+ return { ...rule, format: ['strictCamelCase', 'StrictPascalCase'] };
20
+ }),
21
+ ],
11
22
  'jsx-a11y/aria-role': ['error', { allowInvalidRoles: ['text'] }],
12
23
  'jsx-a11y/control-has-associated-label': 'error',
13
24
  'jsx-a11y/lang': 'error',
@@ -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,C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AE,gBAAgB,EAAE,IAAI,EAAE,CAAC;IACtE,uBAAuB,EAAE,OAAO;IAChC,iCAAiC,EAAE,OAAO;IAC1C,sBAAsB,EAAE;QACtB,OAAO;QACP,EAAE,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"}