** @type {import("eslint").Linter.FlatConfig[]} / import globals from "globals"; import…
- User
** @type {import("eslint").Linter.FlatConfig[]} */
import globals from "globals"; import pluginJs from "@eslint/js"; import * as tseslint from "typescript-eslint"; import pluginReact from "eslint-plugin-react";
export default [ { files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] }, { languageOptions: { globals: globals.browser } }, pluginJs.configs.recommended, ...tseslint.configs.recommended, pluginReact.configs.recommended, ];
fix
Could not process some files due to syntax errors View file A parse error occurred: Unexpected token. Check the syntax of the file. If the file is invalid, correct the error or exclude the file from analysis. - Assistant
- User
1s Run github/codeql-action/upload-sarif@v3 with: sarif_file: eslint-results.sarif wait-for-processing: true checkout_path: /home/runner/work/webapp/webapp token: *** matrix: null Error: Path does not exist: eslint-results.sarif
- Assistant
The error message you're encountering indicates that the GitHub Action
github/codeql-action/upload-sarifis trying to upload a SARIF file (eslint-results.sarif), but it cannot find the file at the specified path. Here are some steps you can take to troubleshoot and fix this issue: - User
israe@DESKTOP-1KQFLP1 MINGW64 ~/Documents/GitHub/webapp (main) $ npx eslint ".**"
Oops! Something went wrong! :(
ESLint: 9.9.1
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\israe\Documents\GitHub\webapp\node_modules\typescript-eslint\dist\index.js' imported from C:\Users\israe\Documents\GitHub\webapp\eslint.config.mjs at finalizeResolution (node:internal/modules/esm/resolve:265:11) at moduleResolve (node:internal/modules/esm/resolve:933:10) at defaultResolve (node:internal/modules/esm/resolve:1169:11) at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12) at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25) at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:227:38) at ModuleWrap. (node:internal/modules/esm/module_job:87:39) at link (node:internal/modules/esm/module_job:86:36)
israe@DESKTOP-1KQFLP1 MINGW64 ~/Documents/GitHub/webapp (main) $
- Assistant