Skip to content

Commit

Permalink
fix(jsx): remove deprecated jsx-space-before-closing, close #18
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Oct 9, 2023
1 parent d5e9507 commit c6961ed
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 312 deletions.
1 change: 0 additions & 1 deletion packages/eslint-plugin-jsx/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@
| [`@stylistic/jsx/jsx-one-expression-per-line`](./rules/jsx-one-expression-per-line) | Require one JSX element per line || |
| [`@stylistic/jsx/jsx-props-no-multi-spaces`](./rules/jsx-props-no-multi-spaces) | Disallow multiple spaces between inline JSX props || |
| [`@stylistic/jsx/jsx-sort-props`](./rules/jsx-sort-props) | Enforce props alphabetical sorting || |
| [`@stylistic/jsx/jsx-space-before-closing`](./rules/jsx-space-before-closing) | Enforce spacing before closing bracket in JSX || |
| [`@stylistic/jsx/jsx-tag-spacing`](./rules/jsx-tag-spacing) | Enforce whitespace in and around the JSX opening and closing brackets || |
| [`@stylistic/jsx/jsx-wrap-multilines`](./rules/jsx-wrap-multilines) | Disallow missing parentheses around multiline JSX || |
1 change: 0 additions & 1 deletion packages/eslint-plugin-jsx/rules/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module.exports = {
'jsx-one-expression-per-line': require('./jsx-one-expression-per-line/jsx-one-expression-per-line.js'),
'jsx-props-no-multi-spaces': require('./jsx-props-no-multi-spaces/jsx-props-no-multi-spaces.js'),
'jsx-sort-props': require('./jsx-sort-props/jsx-sort-props.js'),
'jsx-space-before-closing': require('./jsx-space-before-closing/jsx-space-before-closing.js'),
'jsx-tag-spacing': require('./jsx-tag-spacing/jsx-tag-spacing.js'),
'jsx-wrap-multilines': require('./jsx-wrap-multilines/jsx-wrap-multilines.js'),
}

This file was deleted.

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions packages/metadata/src/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1208,20 +1208,6 @@ export const packages: Readonly<PackageInfo[]> = Object.freeze([
}
}
},
{
"name": "jsx-space-before-closing",
"ruleId": "@stylistic/jsx/jsx-space-before-closing",
"originalId": "react/jsx-space-before-closing",
"entry": "packages/eslint-plugin-jsx/rules/jsx-space-before-closing/jsx-space-before-closing.js",
"docsEntry": "packages/eslint-plugin-jsx/rules/jsx-space-before-closing/README.md",
"meta": {
"fixable": "code",
"docs": {
"description": "Enforce spacing before closing bracket in JSX",
"recommended": false
}
}
},
{
"name": "jsx-tag-spacing",
"ruleId": "@stylistic/jsx/jsx-tag-spacing",
Expand Down Expand Up @@ -2627,19 +2613,6 @@ export const packages: Readonly<PackageInfo[]> = Object.freeze([
}
}
},
{
"name": "jsx-space-before-closing",
"ruleId": "@stylistic/jsx-space-before-closing",
"entry": "packages/eslint-plugin-jsx/rules/jsx-space-before-closing/jsx-space-before-closing.js",
"docsEntry": "packages/eslint-plugin-jsx/rules/jsx-space-before-closing/README.md",
"meta": {
"fixable": "code",
"docs": {
"description": "Enforce spacing before closing bracket in JSX",
"recommended": false
}
}
},
{
"name": "jsx-tag-spacing",
"ruleId": "@stylistic/jsx-tag-spacing",
Expand Down
1 change: 0 additions & 1 deletion scripts/migrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@ const jsxRules = [
// 'jsx-props-no-spreading',
// 'jsx-sort-default-props',
'jsx-sort-props',
'jsx-space-before-closing',
'jsx-tag-spacing',
'jsx-wrap-multilines',
]
Expand Down

0 comments on commit c6961ed

Please sign in to comment.