Skip to content

Commit 9018532

Browse files
committed
Delete Spaces and fix lint
1 parent 32d4165 commit 9018532

30 files changed

+86
-86
lines changed

lib/rules/button-has-type.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const messages = {
2828
forbiddenValue: '"{{value}}" is an invalid value for button type attribute',
2929
};
3030

31-
/** @type { import('eslint').Rule.RuleModule } */
31+
/** @type {import('eslint').Rule.RuleModule} */
3232
module.exports = {
3333
meta: {
3434
docs: {
@@ -151,10 +151,10 @@ module.exports = {
151151

152152
const props = node.arguments[1].properties;
153153
const typeProp = props.find(
154-
(prop) => prop.type === "Property" && prop.key && prop.key.type === "PrivateIdentifier" && prop.key.name === 'type'
154+
(prop) => prop.type === 'Property' && prop.key && prop.key.type === 'PrivateIdentifier' && prop.key.name === 'type'
155155
);
156156

157-
if (typeProp.type !== "Property") {
157+
if (typeProp.type !== 'Property') {
158158
reportMissing(node);
159159
return;
160160
}

lib/rules/checked-requires-onchange-or-readonly.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function extractTargetProps(properties, keyName) {
4141
);
4242
}
4343

44-
/** @type { import('eslint').Rule.RuleModule } */
44+
/** @type {import('eslint').Rule.RuleModule} */
4545
module.exports = {
4646
meta: {
4747
docs: {

lib/rules/forbid-elements.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const messages = {
1919
forbiddenElement_message: '<{{element}}> is forbidden, {{message}}',
2020
};
2121

22-
/** @type { import('eslint').Rule.RuleModule } */
22+
/** @type {import('eslint').Rule.RuleModule} */
2323
module.exports = {
2424
meta: {
2525
docs: {

lib/rules/forbid-foreign-prop-types.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const messages = {
1313
forbiddenPropType: 'Using propTypes from another component is not safe because they may be removed in production builds',
1414
};
1515

16-
/** @type { import('eslint').Rule.RuleModule } */
16+
/** @type {import('eslint').Rule.RuleModule} */
1717
module.exports = {
1818
meta: {
1919
docs: {
@@ -123,7 +123,7 @@ module.exports = {
123123

124124
ObjectPattern(node) {
125125
const propTypesNode = node.properties.find(
126-
(property) => property.type === 'Property' && property.key.type === "PrivateIdentifier" && property.key.name === 'propTypes'
126+
(property) => property.type === 'Property' && property.key.type === 'PrivateIdentifier' && property.key.name === 'propTypes'
127127
);
128128

129129
if (propTypesNode) {

lib/rules/forbid-prop-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const messages = {
2626
forbiddenPropType: 'Prop type "{{target}}" is forbidden',
2727
};
2828

29-
/** @type { import('eslint').Rule.RuleModule } */
29+
/** @type {import('eslint').Rule.RuleModule} */
3030
module.exports = {
3131
meta: {
3232
docs: {

lib/rules/hook-use-state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const messages = {
2525
suggestMemo: 'Replace useState call with useMemo',
2626
};
2727

28-
/** @type { import('eslint').Rule.RuleModule } */
28+
/** @type {import('eslint').Rule.RuleModule} */
2929
module.exports = {
3030
meta: {
3131
docs: {

lib/rules/jsx-closing-bracket-location.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const messages = {
1717
bracketLocation: 'The closing bracket must be {{location}}{{details}}',
1818
};
1919

20-
/** @type { import('eslint').Rule.RuleModule } */
20+
/** @type {import('eslint').Rule.RuleModule} */
2121
module.exports = {
2222
meta: {
2323
docs: {

lib/rules/jsx-curly-spacing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const messages = {
3535
spaceNeededBefore: 'A space is required before \'{{token}}\'',
3636
};
3737

38-
/** @type { import('eslint').Rule.RuleModule } */
38+
/** @type {import('eslint').Rule.RuleModule} */
3939
module.exports = {
4040
meta: {
4141
docs: {

lib/rules/jsx-equals-spacing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const messages = {
1919
needSpaceAfter: 'A space is required after \'=\'',
2020
};
2121

22-
/** @type { import('eslint').Rule.RuleModule } */
22+
/** @type {import('eslint').Rule.RuleModule} */
2323
module.exports = {
2424
meta: {
2525
docs: {

lib/rules/jsx-fragments.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const messages = {
2727
preferFragment: 'Prefer fragment shorthand over {{react}}.{{fragment}}',
2828
};
2929

30-
/** @type { import('eslint').Rule.RuleModule } */
30+
/** @type {import('eslint').Rule.RuleModule} */
3131
module.exports = {
3232
meta: {
3333
docs: {
@@ -172,7 +172,7 @@ module.exports = {
172172
ImportDeclaration(node) {
173173
if (node.source && node.source.value === 'react') {
174174
node.specifiers.forEach((spec) => {
175-
if (spec.type === "ImportSpecifier" && spec.imported && spec.imported.name === fragmentPragma) {
175+
if (spec.type === 'ImportSpecifier' && spec.imported && spec.imported.name === fragmentPragma) {
176176
if (spec.local) {
177177
fragmentNames.add(spec.local.name);
178178
}

0 commit comments

Comments
 (0)