Skip to content

Commit fbaf8e3

Browse files
committed
[refactor] Delete Spaces and fix lint
1 parent 49fda12 commit fbaf8e3

31 files changed

+35
-38
lines changed

lib/rules/button-has-type.js

Lines changed: 1 addition & 1 deletion
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: {

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
@@ -20,7 +20,7 @@ const messages = {
2020
forbiddenElement_message: '<{{element}}> is forbidden, {{message}}',
2121
};
2222

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

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

Lines changed: 1 addition & 1 deletion
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: {

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
@@ -26,7 +26,7 @@ const messages = {
2626
suggestMemo: 'Replace useState call with useMemo',
2727
};
2828

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

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

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

23-
/** @type { import('eslint').Rule.RuleModule } */
23+
/** @type {import('eslint').Rule.RuleModule} */
2424
module.exports = {
2525
meta: {
2626
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
@@ -20,7 +20,7 @@ const messages = {
2020
needSpaceAfter: 'A space is required after \'=\'',
2121
};
2222

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

lib/rules/jsx-fragments.js

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

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

0 commit comments

Comments
 (0)