Skip to content

Commit 94e0e85

Browse files
committed
Delete Spaces
1 parent 137254d commit 94e0e85

File tree

71 files changed

+71
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+71
-71
lines changed

lib/rules/boolean-prop-naming.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const messages = {
2222
patternMismatch: 'Prop name `{{propName}}` doesn’t match rule `{{pattern}}`',
2323
};
2424

25-
/** @type { import('eslint').Rule.RuleModule } */
25+
/** @type {import('eslint').Rule.RuleModule} */
2626
module.exports = {
2727
meta: {
2828
docs: {

lib/rules/default-props-match-prop-types.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const messages = {
2121
defaultHasNoType: 'defaultProp "{{name}}" has no corresponding propTypes declaration.',
2222
};
2323

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

lib/rules/destructuring-assignment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const messages = {
5353
destructureInSignature: 'Must destructure props in the function signature.',
5454
};
5555

56-
/** @type { import('eslint').Rule.RuleModule } */
56+
/** @type {import('eslint').Rule.RuleModule} */
5757
module.exports = {
5858
meta: {
5959
docs: {

lib/rules/display-name.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const messages = {
2727
noContextDisplayName: 'Context definition is missing display name',
2828
};
2929

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

lib/rules/forbid-component-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const messages = {
2222
propIsForbidden: 'Prop "{{prop}}" is forbidden on Components',
2323
};
2424

25-
/** @type { import('eslint').Rule.RuleModule } */
25+
/** @type {import('eslint').Rule.RuleModule} */
2626
module.exports = {
2727
meta: {
2828
docs: {

lib/rules/forbid-dom-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const messages = {
3737
propIsForbidden: 'Prop "{{prop}}" is forbidden on DOM Nodes',
3838
};
3939

40-
/** @type { import('eslint').Rule.RuleModule } */
40+
/** @type {import('eslint').Rule.RuleModule} */
4141
module.exports = {
4242
meta: {
4343
docs: {

lib/rules/function-component-definition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ const messages = {
113113
'arrow-function': 'Function component is not an arrow function',
114114
};
115115

116-
/** @type { import('eslint').Rule.RuleModule } */
116+
/** @type {import('eslint').Rule.RuleModule} */
117117
module.exports = {
118118
meta: {
119119
docs: {

lib/rules/iframe-missing-sandbox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ function checkProps(context, node) {
109109
}
110110
}
111111

112-
/** @type { import('eslint').Rule.RuleModule } */
112+
/** @type {import('eslint').Rule.RuleModule} */
113113
module.exports = {
114114
meta: {
115115
docs: {

lib/rules/jsx-boolean-value.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const messages = {
5454
omitPropAndBoolean: 'Value must be omitted for `false` attribute: `{{propName}}`',
5555
};
5656

57-
/** @type { import('eslint').Rule.RuleModule } */
57+
/** @type {import('eslint').Rule.RuleModule} */
5858
module.exports = {
5959
meta: {
6060
docs: {

lib/rules/jsx-child-element-spacing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const messages = {
4444
spacingBeforeNext: 'Ambiguous spacing before next element {{element}}',
4545
};
4646

47-
/** @type { import('eslint').Rule.RuleModule } */
47+
/** @type {import('eslint').Rule.RuleModule} */
4848
module.exports = {
4949
meta: {
5050
docs: {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const messages = {
1818
matchIndent: 'Expected closing tag to match indentation of opening.',
1919
};
2020

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

lib/rules/jsx-curly-brace-presence.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const messages = {
3636
missingCurly: 'Need to wrap this literal in a JSX expression.',
3737
};
3838

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

lib/rules/jsx-curly-newline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const messages = {
4141
unexpectedAfter: 'Unexpected newline after \'{\'.',
4242
};
4343

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

lib/rules/jsx-filename-extension.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const messages = {
2828
extensionOnlyForJSX: 'Only files containing JSX may use the extension \'{{ext}}\'',
2929
};
3030

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

lib/rules/jsx-first-prop-new-line.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const messages = {
1717
propOnSameLine: 'Property should be placed on the same line as the component declaration',
1818
};
1919

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

lib/rules/jsx-handler-names.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const messages = {
1717
badPropKey: 'Prop key for {{propValue}} must begin with \'{{handlerPropPrefix}}\'',
1818
};
1919

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

lib/rules/jsx-key.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const messages = {
3232
nonUniqueKeys: '`key` prop must be unique',
3333
};
3434

35-
/** @type { import('eslint').Rule.RuleModule } */
35+
/** @type {import('eslint').Rule.RuleModule} */
3636
module.exports = {
3737
meta: {
3838
docs: {

lib/rules/jsx-max-depth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const messages = {
2020
wrongDepth: 'Expected the depth of nested jsx elements to be <= {{needed}}, but found {{found}}.',
2121
};
2222

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

lib/rules/jsx-max-props-per-line.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const messages = {
2323
newLine: 'Prop `{{prop}}` must be placed on a new line',
2424
};
2525

26-
/** @type { import('eslint').Rule.RuleModule } */
26+
/** @type {import('eslint').Rule.RuleModule} */
2727
module.exports = {
2828
meta: {
2929
docs: {

lib/rules/jsx-newline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function isMultilined(node) {
2323
return node && node.loc.start.line !== node.loc.end.line;
2424
}
2525

26-
/** @type { import('eslint').Rule.RuleModule } */
26+
/** @type {import('eslint').Rule.RuleModule} */
2727
module.exports = {
2828
meta: {
2929
docs: {

lib/rules/jsx-no-comment-textnodes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function checkText(node, context) {
3333
}
3434
}
3535

36-
/** @type { import('eslint').Rule.RuleModule } */
36+
/** @type {import('eslint').Rule.RuleModule} */
3737
module.exports = {
3838
meta: {
3939
docs: {

lib/rules/jsx-no-constructed-context-values.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const messages = {
129129
defaultMsgFunc: 'The {{type}} passed as the value prop to the Context provider (at line {{nodeLine}}) changes every render. To fix this consider wrapping it in a useCallback hook.',
130130
};
131131

132-
/** @type { import('eslint').Rule.RuleModule } */
132+
/** @type {import('eslint').Rule.RuleModule} */
133133
module.exports = {
134134
meta: {
135135
docs: {

lib/rules/jsx-no-duplicate-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const messages = {
1717
noDuplicateProps: 'No duplicate props allowed',
1818
};
1919

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

lib/rules/jsx-no-leaked-render.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function ruleFixer(context, fixStrategy, fixer, reportedNode, leftNode, rightNod
111111
/**
112112
* @type {import('eslint').Rule.RuleModule}
113113
*/
114-
/** @type { import('eslint').Rule.RuleModule } */
114+
/** @type {import('eslint').Rule.RuleModule} */
115115
module.exports = {
116116
meta: {
117117
docs: {

lib/rules/jsx-no-literals.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const messages = {
2727
literalNotInJSXExpression: 'Missing JSX expression container around literal string: "{{text}}"',
2828
};
2929

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

lib/rules/jsx-no-script-url.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const messages = {
4343
noScriptURL: 'A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML, try using dangerouslySetInnerHTML instead.',
4444
};
4545

46-
/** @type { import('eslint').Rule.RuleModule } */
46+
/** @type {import('eslint').Rule.RuleModule} */
4747
module.exports = {
4848
meta: {
4949
docs: {

lib/rules/jsx-no-target-blank.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const messages = {
126126
noTargetBlankWithoutNoopener: 'Using target="_blank" without rel="noreferrer" or rel="noopener" (the former implies the latter and is preferred due to wider support) is a security risk: see https://mathiasbynens.github.io/rel-noopener/#recommendations',
127127
};
128128

129-
/** @type { import('eslint').Rule.RuleModule } */
129+
/** @type {import('eslint').Rule.RuleModule} */
130130
module.exports = {
131131
meta: {
132132
fixable: 'code',

lib/rules/jsx-no-undef.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const messages = {
1717
undefined: '\'{{identifier}}\' is not defined.',
1818
};
1919

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

lib/rules/jsx-no-useless-fragment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const messages = {
8383
ChildOfHtmlElement: 'Passing a fragment to an HTML element is useless.',
8484
};
8585

86-
/** @type { import('eslint').Rule.RuleModule } */
86+
/** @type {import('eslint').Rule.RuleModule} */
8787
module.exports = {
8888
meta: {
8989
type: 'suggestion',

lib/rules/jsx-one-expression-per-line.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const messages = {
2121
moveToNewLine: '`{{descriptor}}` must be placed on a new line',
2222
};
2323

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

lib/rules/jsx-pascal-case.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const messages = {
7676
usePascalOrSnakeCase: 'Imported JSX component {{name}} must be in PascalCase or SCREAMING_SNAKE_CASE',
7777
};
7878

79-
/** @type { import('eslint').Rule.RuleModule } */
79+
/** @type {import('eslint').Rule.RuleModule} */
8080
module.exports = {
8181
meta: {
8282
docs: {

lib/rules/jsx-props-no-multi-spaces.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const messages = {
1717
onlyOneSpace: 'Expected only one space between “{{prop1}}” and “{{prop2}}”',
1818
};
1919

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

lib/rules/jsx-props-no-spreading.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const messages = {
3838
noSpreading: 'Prop spreading is forbidden',
3939
};
4040

41-
/** @type { import('eslint').Rule.RuleModule } */
41+
/** @type {import('eslint').Rule.RuleModule} */
4242
module.exports = {
4343
meta: {
4444
docs: {

lib/rules/jsx-sort-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ function reportNodeAttribute(nodeAttribute, errorType, node, context, reservedLi
338338
});
339339
}
340340

341-
/** @type { import('eslint').Rule.RuleModule } */
341+
/** @type {import('eslint').Rule.RuleModule} */
342342
module.exports = {
343343
meta: {
344344
docs: {

lib/rules/jsx-tag-spacing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ const optionDefaults = {
255255
beforeClosing: 'allow',
256256
};
257257

258-
/** @type { import('eslint').Rule.RuleModule } */
258+
/** @type {import('eslint').Rule.RuleModule} */
259259
module.exports = {
260260
meta: {
261261
docs: {

lib/rules/jsx-uses-react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const docsUrl = require('../util/docsUrl');
1212
// Rule Definition
1313
// ------------------------------------------------------------------------------
1414

15-
/** @type { import('eslint').Rule.RuleModule } */
15+
/** @type {import('eslint').Rule.RuleModule} */
1616
module.exports = {
1717
// eslint-disable-next-line eslint-plugin/prefer-message-ids -- https://github.com/not-an-aardvark/eslint-plugin-eslint-plugin/issues/292
1818
meta: {

lib/rules/jsx-uses-vars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const docsUrl = require('../util/docsUrl');
1414
const isTagNameRe = /^[a-z]/;
1515
const isTagName = (name) => isTagNameRe.test(name);
1616

17-
/** @type { import('eslint').Rule.RuleModule } */
17+
/** @type {import('eslint').Rule.RuleModule} */
1818
module.exports = {
1919
// eslint-disable-next-line eslint-plugin/prefer-message-ids -- https://github.com/not-an-aardvark/eslint-plugin-eslint-plugin/issues/292
2020
meta: {

lib/rules/jsx-wrap-multilines.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const messages = {
3535
parensOnNewLines: 'Parentheses around JSX should be on separate lines',
3636
};
3737

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

lib/rules/no-array-index-key.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const messages = {
4141
noArrayIndex: 'Do not use Array index in keys',
4242
};
4343

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

lib/rules/no-arrow-function-lifecycle.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const messages = {
3232
lifecycle: '{{propertyName}} is a React lifecycle method, and should not be an arrow function or in a class field. Use an instance method instead.',
3333
};
3434

35-
/** @type { import('eslint').Rule.RuleModule } */
35+
/** @type {import('eslint').Rule.RuleModule} */
3636
module.exports = {
3737
meta: {
3838
docs: {

lib/rules/no-danger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const messages = {
4343
dangerousProp: 'Dangerous property \'{{name}}\' found',
4444
};
4545

46-
/** @type { import('eslint').Rule.RuleModule } */
46+
/** @type {import('eslint').Rule.RuleModule} */
4747
module.exports = {
4848
meta: {
4949
docs: {

lib/rules/no-did-mount-set-state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77

88
const makeNoMethodSetStateRule = require('../util/makeNoMethodSetStateRule');
99

10-
/** @type { import('eslint').Rule.RuleModule } */
10+
/** @type {import('eslint').Rule.RuleModule} */
1111
module.exports = makeNoMethodSetStateRule('componentDidMount');

lib/rules/no-did-update-set-state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77

88
const makeNoMethodSetStateRule = require('../util/makeNoMethodSetStateRule');
99

10-
/** @type { import('eslint').Rule.RuleModule } */
10+
/** @type {import('eslint').Rule.RuleModule} */
1111
module.exports = makeNoMethodSetStateRule('componentDidUpdate');

lib/rules/no-direct-mutation-state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const messages = {
2121
noDirectMutation: 'Do not mutate state directly. Use setState().',
2222
};
2323

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

0 commit comments

Comments
 (0)