-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Chore: migrate to eslint@9 * Chore: eslint unicorn
- Loading branch information
Showing
131 changed files
with
304 additions
and
1,098 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+16.4 KB
...ray-npm-0.11.14-94a02fcc87-3ffb24ecdf.zip → ...rray-npm-0.13.0-843095a032-524df31e61.zip
Binary file not shown.
Binary file removed
BIN
-14.1 KB
.yarn/cache/@humanwhocodes-object-schema-npm-2.0.2-77b42018f9-ef915e3e2f.zip
Binary file not shown.
Binary file added
BIN
+8.53 KB
.yarn/cache/@humanwhocodes-object-schema-npm-2.0.3-4f0e508cd9-05bb99ed06.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-17.9 KB
.yarn/cache/@jridgewell-resolve-uri-npm-3.1.0-6ff2351e61-320ceb37af.zip
Binary file not shown.
Binary file removed
BIN
-17.9 KB
.yarn/cache/@jridgewell-resolve-uri-npm-3.1.1-aa2de3f210-64d59df8ae.zip
Binary file not shown.
Binary file removed
BIN
-13.4 KB
.yarn/cache/@jridgewell-sourcemap-codec-npm-1.4.14-f5f0630788-26e768fae6.zip
Binary file not shown.
Binary file removed
BIN
-44.4 KB
.yarn/cache/@jridgewell-trace-mapping-npm-0.3.18-cd96571385-f4fabdddf8.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-13.9 KB
.yarn/cache/@ungap-structured-clone-npm-1.2.0-648f0b82e0-c6fe89a505.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-5.74 KB
.yarn/cache/array-buffer-byte-length-npm-1.0.0-331671f28a-044e101ce1.zip
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-14.2 KB
.yarn/cache/array.prototype.findlastindex-npm-1.2.3-2a36f4417b-063cbab8ee.zip
Binary file not shown.
Binary file removed
BIN
-10.9 KB
.yarn/cache/array.prototype.flat-npm-1.3.2-350729f7f4-d9d2f6f275.zip
Binary file not shown.
Binary file removed
BIN
-11.3 KB
.yarn/cache/array.prototype.flatmap-npm-1.3.2-5c6a4af226-33f2000668.zip
Binary file not shown.
Binary file removed
BIN
-10.8 KB
.yarn/cache/arraybuffer.prototype.slice-npm-1.0.2-4eda52ad8c-c200faf437.zip
Binary file not shown.
Binary file removed
BIN
-7.62 KB
.yarn/cache/available-typed-arrays-npm-1.0.5-88f321e4d3-4d4d5e86ea.zip
Binary file not shown.
Binary file removed
BIN
-2.92 KB
.yarn/cache/confusing-browser-globals-npm-1.0.11-b3ff8e9483-3afc635abd.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.38 KB
.yarn/cache/es-shim-unscopables-npm-1.0.0-06186593f1-ac2db2c70d.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-3.32 KB
.yarn/cache/eslint-import-resolver-node-npm-0.3.9-2a426afc4b-d52e08e1d9.zip
Binary file not shown.
Binary file removed
BIN
-16.9 KB
.yarn/cache/eslint-module-utils-npm-2.8.0-05e42bcab0-a9a7ed93eb.zip
Binary file not shown.
Binary file renamed
BIN
+791 KB
...lint-npm-8.57.0-4286e12a3a-00496e218b.zip → ...slint-npm-9.1.1-47665e630b-d0bf8c6335.zip
Binary file not shown.
Binary file removed
BIN
-424 KB
.yarn/cache/eslint-plugin-import-npm-2.29.1-b94305f7dc-5865f05c38.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-13.8 KB
.yarn/cache/function.prototype.name-npm-1.1.6-fd3a6a5cdd-4d40be44d4.zip
Binary file not shown.
Binary file removed
BIN
-8.23 KB
.yarn/cache/functions-have-names-npm-1.2.3-e5cf1e2208-0ddfd3ed10.zip
Binary file not shown.
Binary file removed
BIN
-6.89 KB
.yarn/cache/get-symbol-description-npm-1.0.0-9c95a4bc1f-7e5f298afe.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.87 KB
.yarn/cache/is-shared-array-buffer-npm-1.0.2-32e4181fcd-23d82259d6.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-16.1 KB
.yarn/cache/regexp.prototype.flags-npm-1.5.1-b8faeee306-3fa5610b8e.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-14.3 KB
.yarn/cache/string.prototype.trim-npm-1.2.8-7ed4517ce8-9301f6cb2b.zip
Binary file not shown.
Binary file removed
BIN
-11.4 KB
.yarn/cache/string.prototype.trimend-npm-1.0.7-159b9dcfbc-3f0d3397ab.zip
Binary file not shown.
Binary file removed
BIN
-11.5 KB
.yarn/cache/string.prototype.trimstart-npm-1.0.7-ae2f803b78-6e594d3a61.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed
BIN
-6.95 KB
.yarn/cache/typed-array-byte-length-npm-1.0.0-94d79975ca-6f376bf5d9.zip
Binary file not shown.
Binary file removed
BIN
-6.96 KB
.yarn/cache/typed-array-byte-offset-npm-1.0.0-8cbb911cf5-2d81747faa.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,73 @@ | ||
// @ts-check | ||
import eslint from '@eslint/js'; | ||
import globals from 'globals'; | ||
import tseslint from 'typescript-eslint'; | ||
import nodePlugin from 'eslint-plugin-n'; | ||
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'; | ||
import eslintPluginUnicorn from 'eslint-plugin-unicorn'; | ||
|
||
export default tseslint.config( | ||
{ | ||
ignores: [ | ||
'.git', | ||
'node_modules', | ||
'coverage', | ||
'packages/*/dist/**', | ||
'packages/*/node_modules/**', | ||
'packages/*/__snapshots__/**', | ||
], | ||
}, | ||
eslint.configs.recommended, | ||
nodePlugin.configs['flat/recommended-module'], | ||
eslintPluginUnicorn.configs['flat/recommended'], | ||
{ | ||
languageOptions: { | ||
globals: { | ||
...globals.nodeBuiltin, | ||
}, | ||
}, | ||
rules: { | ||
'unicorn/consistent-function-scoping': 'off', | ||
'unicorn/filename-case': 'off', | ||
'unicorn/no-array-callback-reference': 'off', | ||
'unicorn/no-array-for-each': 'off', | ||
'unicorn/no-array-reduce': 'off', | ||
'unicorn/no-null': 'off', | ||
'unicorn/no-process-exit': 'off', | ||
'unicorn/prefer-event-target': 'off', | ||
'unicorn/prefer-top-level-await': 'off', | ||
'unicorn/prevent-abbreviations': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.mts', '**/*.ts'], | ||
extends: [...tseslint.configs.recommended], | ||
}, | ||
{ | ||
files: ['**/*.cjs'], | ||
extends: [nodePlugin.configs['flat/recommended-script']], | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['packages/inquirer/test/**', 'packages/**/*.test.*'], | ||
rules: { | ||
'n/no-extraneous-import': [ | ||
'error', | ||
{ | ||
allowModules: ['vitest'], | ||
}, | ||
], | ||
'n/no-extraneous-require': [ | ||
'error', | ||
{ | ||
allowModules: ['vitest'], | ||
}, | ||
], | ||
}, | ||
}, | ||
eslintPluginPrettierRecommended, | ||
); |
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 |
---|---|---|
|
@@ -247,4 +247,4 @@ export default createPrompt( | |
}, | ||
); | ||
|
||
export { Separator }; | ||
export { Separator } from '@inquirer/core'; |
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
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
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
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
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
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
Oops, something went wrong.