@labeg/code-style 4.6.0 → 5.1.0

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 (2) hide show
  1. package/.editorconfig +154 -154
  2. package/package.json +53 -45
package/.editorconfig CHANGED
@@ -1,154 +1,154 @@
1
- [*]
2
- end_of_line = crlf
3
- charset = utf-8
4
-
5
- # Code files
6
- [*.cs,*.csx,*.js,*.jsx,*.ts,*.tsx,*.css,*.scss]
7
- insert_final_newline = true
8
- indent_style = space
9
- indent_size = 4
10
- trim_trailing_whitespace = true
11
- max_line_length = 140
12
- quote_type = double
13
- curly_bracket_next_line = true
14
- spaces_around_operators = true
15
- spaces_around_brackets = true
16
- indent_brace_style = Allman
17
- continuation_indent_size = 4
18
-
19
- [*.xml]
20
- indent_style = space
21
-
22
-
23
- [*.cs]
24
- csharp_prefer_braces = true:suggestion
25
- csharp_prefer_simple_default_expression = true:suggestion
26
- csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, volatile, async:suggestion
27
- csharp_style_conditional_delegate_call = true:suggestion
28
- csharp_style_deconstructed_variable_declaration = true:suggestion
29
- csharp_style_expression_bodied_accessors = true:suggestion
30
- csharp_style_expression_bodied_constructors = true:suggestion
31
- csharp_style_expression_bodied_indexers = true:suggestion
32
- csharp_style_expression_bodied_methods = true:suggestion
33
- csharp_style_expression_bodied_operators = true:suggestion
34
- csharp_style_expression_bodied_properties = true:suggestion
35
- csharp_style_inlined_variable_declaration = true:suggestion
36
- csharp_style_pattern_local_over_anonymous_function = true:suggestion
37
- csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
38
- csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
39
- csharp_style_pattern_local_over_anonymous_function = true:suggestion
40
- csharp_style_throw_expression = true:suggestion
41
- csharp_style_var_elsewhere = true:none
42
- csharp_style_var_for_built_in_types = true:none
43
- csharp_style_var_when_type_is_apparent = true:suggestion
44
-
45
- dotnet_style_coalesce_expression = true:suggestion
46
- dotnet_style_collection_initializer = true:suggestion
47
- dotnet_style_explicit_tuple_names = true:suggestion
48
- dotnet_style_null_propagation = true:suggestion
49
- dotnet_style_object_initializer = true:suggestion
50
- dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
51
- dotnet_style_predefined_type_for_member_access = true:suggestion
52
- dotnet_style_prefer_auto_properties = true:suggestion
53
- dotnet_style_prefer_inferred_anonymous_type_member_names = true: suggestion
54
- dotnet_style_prefer_inferred_tuple_names = true:suggestion
55
- dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
56
- dotnet_style_qualification_for_field = false:suggestion
57
- dotnet_style_qualification_for_property = false:suggestion
58
- dotnet_style_qualification_for_method = false:suggestion
59
- dotnet_style_qualification_for_event = false:suggestion
60
- dotnet_style_require_accessibility_modifiers = never:suggestion
61
-
62
- dotnet_naming_style.pascal.capitalization = pascal_case
63
-
64
- dotnet_naming_style.camel.capitalization = camel_case
65
-
66
- dotnet_naming_style.type_parameters.capitalization = pascal_case
67
- dotnet_naming_style.type_parameters.required_prefix = T
68
-
69
- dotnet_naming_style.interfaces.capitalization = pascal_case
70
- dotnet_naming_style.interfaces.required_prefix = I
71
-
72
- dotnet_naming_style.underscore.capitalization = camel_case
73
- dotnet_naming_style.underscore.required_prefix = _
74
-
75
- dotnet_naming_symbols.defaults.applicable_accessibilities = *
76
- dotnet_naming_symbols.defaults.applicable_kinds = class,struct,enum,property,method,event,delegate
77
-
78
- dotnet_naming_symbols.constants.applicable_kinds = field
79
- dotnet_naming_symbols.constants.applicable_accessibilities = private
80
- dotnet_naming_symbols.constants.required_modifiers = const
81
-
82
- dotnet_naming_symbols.fields.applicable_kinds = field
83
- dotnet_naming_symbols.fields.applicable_accessibilities = private
84
-
85
- dotnet_naming_symbols.interfaces.applicable_kinds = interface
86
-
87
- dotnet_naming_symbols.type_parameters.applicable_kinds = type_parameter
88
-
89
- dotnet_naming_symbols.parameters.applicable_kinds = parameter
90
-
91
- dotnet_naming_rule.constants.severity = suggestion
92
- dotnet_naming_rule.constants.symbols = constants
93
- dotnet_naming_rule.constants.style = pascal
94
-
95
- dotnet_naming_rule.fields.severity = suggestion
96
- dotnet_naming_rule.fields.symbols = fields
97
- dotnet_naming_rule.fields.style = underscore
98
-
99
- dotnet_naming_rule.interfaces.severity = suggestion
100
- dotnet_naming_rule.interfaces.symbols = interfaces
101
- dotnet_naming_rule.interfaces.style = interfaces
102
-
103
- dotnet_naming_rule.parameters.severity = suggestion
104
- dotnet_naming_rule.parameters.symbols = parameters
105
- dotnet_naming_rule.parameters.style = camel
106
-
107
- ;dotnet_naming_rule.type_parameters.severity = suggestion
108
- ;dotnet_naming_rule.type_parameters.symbols = type_parameters
109
- ;dotnet_naming_rule.type_parameters.style = type_parameters
110
-
111
- dotnet_naming_rule.defaults.severity = suggestion
112
- dotnet_naming_rule.defaults.symbols = defaults
113
- dotnet_naming_rule.defaults.style = pascal
114
-
115
- csharp_new_line_before_catch = true
116
- csharp_new_line_before_else = true
117
- csharp_new_line_before_finally = true
118
- csharp_new_line_before_members_in_anonymous_types = false
119
- csharp_new_line_before_members_in_object_initializers = false
120
- csharp_new_line_before_open_brace = all
121
- csharp_new_line_between_query_expression_clauses = false
122
-
123
- csharp_indent_block_contents = true
124
- csharp_indent_braces = false
125
- csharp_indent_case_contents = true
126
- csharp_indent_case_contents_when_block = true
127
- csharp_indent_labels = no_change
128
- csharp_indent_switch_labels = true
129
-
130
- csharp_preserve_single_line_blocks = true
131
- csharp_preserve_single_line_statements = false
132
-
133
- csharp_space_after_cast = false
134
- csharp_space_after_colon_in_inheritance_clause = true
135
- csharp_space_after_comma = true
136
- csharp_space_after_dot = false
137
- csharp_space_after_keywords_in_control_flow_statements = true
138
- csharp_space_after_semicolon_in_for_statement = true
139
- csharp_space_around_binary_operators = true
140
- csharp_space_around_declaration_statements = do_not_ignore
141
- csharp_space_before_colon_in_inheritance_clause = true
142
- csharp_space_before_comma = false
143
- csharp_space_before_dot = false
144
- csharp_space_before_open_square_brackets = false
145
- csharp_space_before_semicolon_in_for_statement = false
146
- csharp_space_between_empty_square_brackets = false
147
- csharp_space_between_method_call_empty_parameter_list_parentheses = false
148
- csharp_space_between_method_call_name_and_opening_parenthesis = false
149
- csharp_space_between_method_call_parameter_list_parentheses = false
150
- csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
151
- csharp_space_between_method_declaration_name_and_open_parenthesis = false
152
- csharp_space_between_method_declaration_parameter_list_parentheses = false
153
- csharp_space_between_parentheses = false
154
- csharp_space_between_square_brackets = false
1
+ [*]
2
+ end_of_line = lf
3
+ charset = utf-8
4
+
5
+ # Code files
6
+ [*.cs,*.csx,*.js,*.jsx,*.ts,*.tsx,*.css,*.scss]
7
+ insert_final_newline = true
8
+ indent_style = space
9
+ indent_size = 4
10
+ trim_trailing_whitespace = true
11
+ max_line_length = 140
12
+ quote_type = double
13
+ curly_bracket_next_line = true
14
+ spaces_around_operators = true
15
+ spaces_around_brackets = true
16
+ indent_brace_style = Allman
17
+ continuation_indent_size = 4
18
+
19
+ [*.xml]
20
+ indent_style = space
21
+
22
+
23
+ [*.cs]
24
+ csharp_prefer_braces = true:suggestion
25
+ csharp_prefer_simple_default_expression = true:suggestion
26
+ csharp_preferred_modifier_order = public, private, protected, internal, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, volatile, async:suggestion
27
+ csharp_style_conditional_delegate_call = true:suggestion
28
+ csharp_style_deconstructed_variable_declaration = true:suggestion
29
+ csharp_style_expression_bodied_accessors = true:suggestion
30
+ csharp_style_expression_bodied_constructors = true:suggestion
31
+ csharp_style_expression_bodied_indexers = true:suggestion
32
+ csharp_style_expression_bodied_methods = true:suggestion
33
+ csharp_style_expression_bodied_operators = true:suggestion
34
+ csharp_style_expression_bodied_properties = true:suggestion
35
+ csharp_style_inlined_variable_declaration = true:suggestion
36
+ csharp_style_pattern_local_over_anonymous_function = true:suggestion
37
+ csharp_style_pattern_matching_over_as_with_null_check = true:suggestion
38
+ csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion
39
+ csharp_style_pattern_local_over_anonymous_function = true:suggestion
40
+ csharp_style_throw_expression = true:suggestion
41
+ csharp_style_var_elsewhere = true:none
42
+ csharp_style_var_for_built_in_types = true:none
43
+ csharp_style_var_when_type_is_apparent = true:suggestion
44
+
45
+ dotnet_style_coalesce_expression = true:suggestion
46
+ dotnet_style_collection_initializer = true:suggestion
47
+ dotnet_style_explicit_tuple_names = true:suggestion
48
+ dotnet_style_null_propagation = true:suggestion
49
+ dotnet_style_object_initializer = true:suggestion
50
+ dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion
51
+ dotnet_style_predefined_type_for_member_access = true:suggestion
52
+ dotnet_style_prefer_auto_properties = true:suggestion
53
+ dotnet_style_prefer_inferred_anonymous_type_member_names = true: suggestion
54
+ dotnet_style_prefer_inferred_tuple_names = true:suggestion
55
+ dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion
56
+ dotnet_style_qualification_for_field = false:suggestion
57
+ dotnet_style_qualification_for_property = false:suggestion
58
+ dotnet_style_qualification_for_method = false:suggestion
59
+ dotnet_style_qualification_for_event = false:suggestion
60
+ dotnet_style_require_accessibility_modifiers = never:suggestion
61
+
62
+ dotnet_naming_style.pascal.capitalization = pascal_case
63
+
64
+ dotnet_naming_style.camel.capitalization = camel_case
65
+
66
+ dotnet_naming_style.type_parameters.capitalization = pascal_case
67
+ dotnet_naming_style.type_parameters.required_prefix = T
68
+
69
+ dotnet_naming_style.interfaces.capitalization = pascal_case
70
+ dotnet_naming_style.interfaces.required_prefix = I
71
+
72
+ dotnet_naming_style.underscore.capitalization = camel_case
73
+ dotnet_naming_style.underscore.required_prefix = _
74
+
75
+ dotnet_naming_symbols.defaults.applicable_accessibilities = *
76
+ dotnet_naming_symbols.defaults.applicable_kinds = class,struct,enum,property,method,event,delegate
77
+
78
+ dotnet_naming_symbols.constants.applicable_kinds = field
79
+ dotnet_naming_symbols.constants.applicable_accessibilities = private
80
+ dotnet_naming_symbols.constants.required_modifiers = const
81
+
82
+ dotnet_naming_symbols.fields.applicable_kinds = field
83
+ dotnet_naming_symbols.fields.applicable_accessibilities = private
84
+
85
+ dotnet_naming_symbols.interfaces.applicable_kinds = interface
86
+
87
+ dotnet_naming_symbols.type_parameters.applicable_kinds = type_parameter
88
+
89
+ dotnet_naming_symbols.parameters.applicable_kinds = parameter
90
+
91
+ dotnet_naming_rule.constants.severity = suggestion
92
+ dotnet_naming_rule.constants.symbols = constants
93
+ dotnet_naming_rule.constants.style = pascal
94
+
95
+ dotnet_naming_rule.fields.severity = suggestion
96
+ dotnet_naming_rule.fields.symbols = fields
97
+ dotnet_naming_rule.fields.style = underscore
98
+
99
+ dotnet_naming_rule.interfaces.severity = suggestion
100
+ dotnet_naming_rule.interfaces.symbols = interfaces
101
+ dotnet_naming_rule.interfaces.style = interfaces
102
+
103
+ dotnet_naming_rule.parameters.severity = suggestion
104
+ dotnet_naming_rule.parameters.symbols = parameters
105
+ dotnet_naming_rule.parameters.style = camel
106
+
107
+ ;dotnet_naming_rule.type_parameters.severity = suggestion
108
+ ;dotnet_naming_rule.type_parameters.symbols = type_parameters
109
+ ;dotnet_naming_rule.type_parameters.style = type_parameters
110
+
111
+ dotnet_naming_rule.defaults.severity = suggestion
112
+ dotnet_naming_rule.defaults.symbols = defaults
113
+ dotnet_naming_rule.defaults.style = pascal
114
+
115
+ csharp_new_line_before_catch = true
116
+ csharp_new_line_before_else = true
117
+ csharp_new_line_before_finally = true
118
+ csharp_new_line_before_members_in_anonymous_types = false
119
+ csharp_new_line_before_members_in_object_initializers = false
120
+ csharp_new_line_before_open_brace = all
121
+ csharp_new_line_between_query_expression_clauses = false
122
+
123
+ csharp_indent_block_contents = true
124
+ csharp_indent_braces = false
125
+ csharp_indent_case_contents = true
126
+ csharp_indent_case_contents_when_block = true
127
+ csharp_indent_labels = no_change
128
+ csharp_indent_switch_labels = true
129
+
130
+ csharp_preserve_single_line_blocks = true
131
+ csharp_preserve_single_line_statements = false
132
+
133
+ csharp_space_after_cast = false
134
+ csharp_space_after_colon_in_inheritance_clause = true
135
+ csharp_space_after_comma = true
136
+ csharp_space_after_dot = false
137
+ csharp_space_after_keywords_in_control_flow_statements = true
138
+ csharp_space_after_semicolon_in_for_statement = true
139
+ csharp_space_around_binary_operators = true
140
+ csharp_space_around_declaration_statements = do_not_ignore
141
+ csharp_space_before_colon_in_inheritance_clause = true
142
+ csharp_space_before_comma = false
143
+ csharp_space_before_dot = false
144
+ csharp_space_before_open_square_brackets = false
145
+ csharp_space_before_semicolon_in_for_statement = false
146
+ csharp_space_between_empty_square_brackets = false
147
+ csharp_space_between_method_call_empty_parameter_list_parentheses = false
148
+ csharp_space_between_method_call_name_and_opening_parenthesis = false
149
+ csharp_space_between_method_call_parameter_list_parentheses = false
150
+ csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
151
+ csharp_space_between_method_declaration_name_and_open_parenthesis = false
152
+ csharp_space_between_method_declaration_parameter_list_parentheses = false
153
+ csharp_space_between_parentheses = false
154
+ csharp_space_between_square_brackets = false
package/package.json CHANGED
@@ -1,45 +1,53 @@
1
- {
2
- "name": "@labeg/code-style",
3
- "version": "4.6.0",
4
- "author": "Eugene Labutin",
5
- "license": "MIT",
6
- "homepage": "https://github.com/LabEG/code-style#readme",
7
- "description": "Code styles rules for difference linters, for create best code quality",
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/LabEG/code-style.git"
11
- },
12
- "bugs": {
13
- "url": "https://github.com/LabEG/code-style/issues"
14
- },
15
- "lint-staged": {
16
- "./tests/**/*.(ts|tsx|js|jsx)": [
17
- "eslint --fix -c .eslintrc.js --ext .tsx,.ts,.jsx,.js"
18
- ]
19
- },
20
- "scripts": {
21
- "release": "cliff-jumper --name '@labeg/code-style' --package-path '.' --no-skip-changelog --no-skip-tag",
22
- "prepare": "husky install"
23
- },
24
- "dependencies": {
25
- "@typescript-eslint/eslint-plugin": "^8.16.0",
26
- "@typescript-eslint/parser": "^8.16.0",
27
- "eslint": "^9.15.0",
28
- "eslint-plugin-jsx-a11y": "^6.10.2",
29
- "eslint-plugin-react": "^7.37.2",
30
- "@stylistic/eslint-plugin": "^2.11.0",
31
- "@stylistic/eslint-plugin-migrate": "^2.11.0"
32
- },
33
- "devDependencies": {
34
- "@commitlint/cli": "^19.6.0",
35
- "@commitlint/config-conventional": "^19.6.0",
36
- "husky": "^9.1.7",
37
- "lint-staged": "^15.2.10",
38
- "@favware/cliff-jumper": "^5.0.0"
39
- },
40
- "keywords": [
41
- "code style",
42
- "linters",
43
- "eslint"
44
- ]
45
- }
1
+ {
2
+ "name": "@labeg/code-style",
3
+ "version": "5.1.0",
4
+ "author": "Eugene Labutin",
5
+ "license": "MIT",
6
+ "homepage": "https://github.com/LabEG/code-style#readme",
7
+ "description": "Code styles rules for difference linters, for create best code quality",
8
+ "type": "module",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/LabEG/code-style.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/LabEG/code-style/issues"
15
+ },
16
+ "lint-staged": {
17
+ "./testss/**/*.(ts|tsx|js|jsx)": [
18
+ "eslint --fix -c .eslintrc.js --ext .tsx,.ts,.jsx,.js"
19
+ ]
20
+ },
21
+ "scripts": {
22
+ "test": "eslint tests/**",
23
+ "release": "cliff-jumper --name '@labeg/code-style' --package-path '.' --no-skip-changelog --no-skip-tag",
24
+ "prepare": "husky install"
25
+ },
26
+ "peerDependencies": {
27
+ "typescript": ">=5.0.0"
28
+ },
29
+ "dependencies": {
30
+ "@eslint/js": "^9.17.0",
31
+ "@stylistic/eslint-plugin": "^2.11.0",
32
+ "@stylistic/eslint-plugin-migrate": "^2.11.0",
33
+ "@typescript-eslint/eslint-plugin": "^8.16.0",
34
+ "@typescript-eslint/parser": "^8.16.0",
35
+ "eslint": "^9.15.0",
36
+ "eslint-plugin-jsx-a11y": "^6.10.2",
37
+ "eslint-plugin-react": "^7.37.2",
38
+ "typescript-eslint": "^8.18.2"
39
+ },
40
+ "devDependencies": {
41
+ "@commitlint/cli": "^19.6.0",
42
+ "@commitlint/config-conventional": "^19.6.0",
43
+ "@favware/cliff-jumper": "^5.0.0",
44
+ "husky": "^9.1.7",
45
+ "typescript": "^5.7.2",
46
+ "lint-staged": "^15.2.10"
47
+ },
48
+ "keywords": [
49
+ "code style",
50
+ "linters",
51
+ "eslint"
52
+ ]
53
+ }