-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(eslint-plugin-ts): do not ignore non-ts file for `no-export-assig…
…nment`
- Loading branch information
1 parent
9aa9d94
commit 5fd6951
Showing
3 changed files
with
12 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@git-validator/eslint-plugin-ts": patch | ||
--- | ||
|
||
fix(eslint-plugin-ts): do not ignore non-ts file for `no-export-assignment` |
7 changes: 2 additions & 5 deletions
7
packages/eslint-plugin-ts/src/rules/no-export-assignment.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,8 @@ | ||
import { test } from "../test.spec.js"; | ||
import { noExportAssignment } from "./no-export-assignment.js"; | ||
|
||
const valid = [ | ||
{ code: "export default {}", filename: "test.ts" }, | ||
{ code: "export = {}", filename: "test.js" }, | ||
]; | ||
const valid = ["export default {}", "exports = {}", "module.exports = {}"]; | ||
|
||
const invalid = [{ code: "export = {}", filename: "test.ts" }]; | ||
const invalid = ["export = {}"]; | ||
|
||
test({ valid, invalid, ...noExportAssignment }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters