-
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add yarn eslint example (#6460)
- Loading branch information
Showing
10 changed files
with
1,806 additions
and
1 deletion.
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
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 @@ | ||
# Ingore .yarn zero install because this is just a test package. | ||
.yarn/cache | ||
install-state.gz | ||
.pnp.js | ||
.pnp.* |
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,4 @@ | ||
compressionLevel: mixed | ||
|
||
enableGlobalCache: false | ||
pnpEnableEsmLoader: true |
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,18 @@ | ||
# Sample Repository using Yarn and `@cspell/eslint-plugin` | ||
|
||
**Usage** | ||
|
||
``` | ||
yarn | ||
yarn lint | ||
``` | ||
|
||
## Medical Terms Test | ||
|
||
This file contains some medical terms to be spell checked. | ||
|
||
Sampled full list | ||
|
||
abiana | ||
abiate | ||
abiatrophy |
6 changes: 6 additions & 0 deletions
6
test-packages/yarn/yarn2/test-eslint-plugin/cspell.config.yaml
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,6 @@ | ||
usePnP: true | ||
import: | ||
- ../cspell.json | ||
- '@cspell/dict-medicalterms/cspell-ext.json' | ||
words: | ||
- medicalterms |
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 @@ | ||
# Contains custom terms for this project. |
13 changes: 13 additions & 0 deletions
13
test-packages/yarn/yarn2/test-eslint-plugin/eslint.config.mjs
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,13 @@ | ||
import globals from 'globals'; | ||
import pluginJs from '@eslint/js'; | ||
import cspellESLintPluginRecommended from '@cspell/eslint-plugin/recommended'; | ||
|
||
/** @type {import('eslint').Linter.Config[]} */ | ||
export default [ | ||
{ languageOptions: { globals: globals.browser } }, | ||
pluginJs.configs.recommended, | ||
{ | ||
ignores: ['.pnp.cjs'], | ||
}, | ||
cspellESLintPluginRecommended, | ||
]; |
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,84 @@ | ||
export const sampleWords = ` | ||
# Sample Repository using Yarn | ||
# Medical Terms Test | ||
This file contaains some medical terms to be spell checked. | ||
Sampled full list | ||
abiana | ||
abiate | ||
abiatrophy | ||
abiatus | ||
abid | ||
abidi | ||
abidochromis | ||
abience | ||
abient | ||
abietene | ||
abietic | ||
abietine | ||
abietite | ||
abigeat | ||
abigei | ||
Abilify | ||
abinoxylan | ||
abio | ||
AbioCor | ||
abiogeneses | ||
abiogenesis | ||
abiogenetic | ||
abiogenic | ||
abiogenist | ||
abiogenous | ||
abiogeny | ||
Abiological | ||
Abiomed | ||
AbioMed | ||
abionergy | ||
abioseston | ||
abiosis | ||
abiotic | ||
abiotically | ||
ZUMI | ||
Zung | ||
Zunrisa | ||
Zuntz's | ||
Zuplenz | ||
Zweifel | ||
zwitterion | ||
Zyban | ||
Zybit | ||
Zyderm | ||
Zydis | ||
Zydone | ||
Zyflo | ||
zygal | ||
zygapophyseal | ||
zygapophyseales | ||
zygapophysial | ||
zygapophysiales | ||
zygapophysis | ||
zygia | ||
zygion | ||
Zygocotyle | ||
zygodactyly | ||
zygoma | ||
zygomas | ||
zygomatic | ||
zygomatica | ||
zygomatici | ||
zygomatico | ||
zygomaticoauricular | ||
zygomaticofacial | ||
zygomaticofacialis | ||
zygomaticofrontal | ||
zygomaticofrontalis | ||
zygomaticomaxillaris | ||
zygomaticomaxillary | ||
zygomaticosphenoid | ||
zygomaticotemporal | ||
zygomaticotemporalis | ||
`; |
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,20 @@ | ||
{ | ||
"name": "test-eslint-plugin", | ||
"version": "1.0.0", | ||
"license": "MIT", | ||
"private": true, | ||
"packageManager": "yarn@4.5.1", | ||
"scripts": { | ||
"lint": "eslint .", | ||
"test": "yarn update && yarn lint", | ||
"update": "yarn add --dev @cspell/dict-medicalterms@latest @cspell/cspell-types@latest @cspell/eslint-plugin@latest" | ||
}, | ||
"devDependencies": { | ||
"@cspell/cspell-types": "^8.15.6", | ||
"@cspell/dict-medicalterms": "^4.1.5", | ||
"@cspell/eslint-plugin": "^8.15.6", | ||
"@eslint/js": "^9.14.0", | ||
"eslint": "^9.14.0", | ||
"globals": "^15.11.0" | ||
} | ||
} |
Oops, something went wrong.