-
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
41 additions
and
35 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 8 additions & 8 deletions
16
test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v7/fixtures/auto-fix-2.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,14 +1,14 @@ | ||
const aboutthe = ['one', 'two', 'three']; | ||
const about_the = ['one', 'two', 'three']; | ||
|
||
/** | ||
* This is aboutthe file with errors that can be autoFixed. | ||
* What do you think aboutit? | ||
* Time to go to the café. | ||
* This is about the file with errors that can be autoFixed. | ||
* What do you think about it? | ||
* Time to go to the cafe. | ||
*/ | ||
export function calcBluelist(names: string[]) { | ||
const bluelistSet = new Set(aboutthe); | ||
export function calcGreenList(names: string[]) { | ||
const greenListSet = new Set(about_the); | ||
|
||
return names.filter((name) => bluelistSet.has(name)); | ||
return names.filter((name) => greenListSet.has(name)); | ||
} | ||
|
||
export const aswell = 5; | ||
export const as_well = 5; |
10 changes: 5 additions & 5 deletions
10
test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin-v7/fixtures/auto-fix.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,12 +1,12 @@ | ||
const bluelist = ['one', 'two', 'three']; | ||
const greenList = ['one', 'two', 'three']; | ||
|
||
/** | ||
* This is a file with errors that can be autoFixed. | ||
* | ||
* Time to go to the café. | ||
* Time to go to the cafe. | ||
*/ | ||
export function calcBluelist(names: string[]) { | ||
const bluelistSet = new Set(bluelist); | ||
export function calcGreenList(names: string[]) { | ||
const greenListSet = new Set(greenList); | ||
|
||
return names.filter((name) => bluelistSet.has(name)); | ||
return names.filter((name) => greenListSet.has(name)); | ||
} |
16 changes: 8 additions & 8 deletions
16
test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin/fixtures/auto-fix-2.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,14 +1,14 @@ | ||
const aboutthe = ['one', 'two', 'three']; | ||
const about_the = ['one', 'two', 'three']; | ||
|
||
/** | ||
* This is aboutthe file with errors that can be autoFixed. | ||
* What do you think aboutit? | ||
* Time to go to the café. | ||
* This is about the file with errors that can be autoFixed. | ||
* What do you think about it? | ||
* Time to go to the cafe. | ||
*/ | ||
export function calcBluelist(names: string[]) { | ||
const bluelistSet = new Set(aboutthe); | ||
export function calcGreenList(names: string[]) { | ||
const greenListSet = new Set(about_the); | ||
|
||
return names.filter((name) => bluelistSet.has(name)); | ||
return names.filter((name) => greenListSet.has(name)); | ||
} | ||
|
||
export const aswell = 5; | ||
export const as_well = 5; |
10 changes: 5 additions & 5 deletions
10
test-packages/cspell-eslint-plugin/test-cspell-eslint-plugin/fixtures/auto-fix.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,12 +1,12 @@ | ||
const bluelist = ['one', 'two', 'three']; | ||
const greenList = ['one', 'two', 'three']; | ||
|
||
/** | ||
* This is a file with errors that can be autoFixed. | ||
* | ||
* Time to go to the café. | ||
* Time to go to the cafe. | ||
*/ | ||
export function calcBluelist(names: string[]) { | ||
const bluelistSet = new Set(bluelist); | ||
export function calcGreenList(names: string[]) { | ||
const greenListSet = new Set(greenList); | ||
|
||
return names.filter((name) => bluelistSet.has(name)); | ||
return names.filter((name) => greenListSet.has(name)); | ||
} |