Я настраивал новый проект vue3 + typscript со всеми необходимыми настройками prettier и lint. Я пробовал свои конфигурации, но ничего, если это сработало. Ниже вы увидите мой скрипт, ответ и конфигурацию.
это скрипт lint в моем package.json
eslint "src/**/*.{js,ts,vue}"
Oops! Something went wrong! :(
ESLint: 9.18.0
You are linting "src/**/*.{js,ts,vue}", but all of the files matching the glob pattern "src/**/*.{js,ts,vue}" are ignored.
If you don't want to lint these files, remove the pattern "src/**/*.{js,ts,vue}" from the list of arguments passed to ESLint.
If you do want to lint these files, explicitly list one or more of the files from this glob that you'd like to lint to see more details about why they are ignored.
* If the file is ignored because of a matching ignore pattern, check global ignores in your config file.
https://eslint.org/docs/latest/use/configure/ignore
* If the file is ignored because no matching configuration was supplied, check file patterns in your config file.
https://eslint.org/docs/latest/use/configure/configuration-files#specifying-files-with-arbitrary-extensions
* If the file is ignored because it is located outside of the base path, change the location of your config file to be in a parent directory.
Я настраивал новый проект vue3 + typscript со всеми необходимыми настройками prettier и lint. Я пробовал свои конфигурации, но ничего, если это сработало. Ниже вы увидите мой скрипт, ответ и конфигурацию. это скрипт lint в моем package.json [code]"lint": "eslint \"./src/**/*.{js,ts,vue}\"", "lint:fix": "eslint \"./src/**/*.{js,ts,vue}\" --fix", [/code] и когда я запускаю это, я получаю эту ошибку: [code]eslint "src/**/*.{js,ts,vue}"
Oops! Something went wrong! :(
ESLint: 9.18.0
You are linting "src/**/*.{js,ts,vue}", but all of the files matching the glob pattern "src/**/*.{js,ts,vue}" are ignored.
If you don't want to lint these files, remove the pattern "src/**/*.{js,ts,vue}" from the list of arguments passed to ESLint.
If you do want to lint these files, explicitly list one or more of the files from this glob that you'd like to lint to see more details about why they are ignored.
* If the file is ignored because of a matching ignore pattern, check global ignores in your config file. https://eslint.org/docs/latest/use/configure/ignore
* If the file is ignored because no matching configuration was supplied, check file patterns in your config file. https://eslint.org/docs/latest/use/configure/configuration-files#specifying-files-with-arbitrary-extensions
* If the file is ignored because it is located outside of the base path, change the location of your config file to be in a parent directory. [/code] Ниже мой eslint.config.js: [code]import { defineConfig } from 'eslint-define-config'; import pluginJs from '@eslint/js'; import pluginVue from 'eslint-plugin-vue'; import tseslint from '@typescript-eslint/eslint-plugin';
Я стажер в проекте DEV, и когда я вытащил основную ветвь и объединился в свою филиал, я продолжал получать ошибки в личинге
`~src\app\test\PDF.tsx
6:9 error Unsafe assignment of an error typed value @typescript-eslint/no-unsafe-assignment
6:22...
Я хочу построить скрипт Node.js (или Git Hook), который исправит только ошибки Eslint на строках, которые изменяются в поэтапных файлах JavaScript/TypeScript. Намерение состоит в том, чтобы сохранить исправления минимальными и ограниченными только...