Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Parsing error: Invalid ecmaVersion. #581

Open
Assignees
f-moya
@femans

Description

@femans

Bug Template

Actual Behavior

Every file in my repository gets the same error reported by the github-CI version of codeclimate. But not by my local version. The error is:
Parsing error: Invalid ecmaVersion.
image

Expected Behavior

I set up the eslintrc and codeclimate.yml correctly I think; I tried with different channels: 7 and 8, tried with different eslint versions, and different settings of ecmaVersion in the .eslint.rc
It is expected that there is no issue with the ecmaVersion.
It is very strange that on my local build of codeclimate the error does not appear but on github it does. It would be expected that this would be similar.

Steps to reproduce

Setup: Vue3 + Vite
eslint version: 7.6.0, 7.32.0 or 8.20

  1. _Include configurations used in your:

    (1) .codeclimate.yml

    codeclimate.yml:
exclude_patterns:  - "node_modules/"  - "coverage/"  - "codeclimate-*/"  - ".husky/"  - ".idea/"  - ".vscode/"  - "dist/"  - "public/"plugins:  eslint:    enabled: true    channel: "eslint-8"    config:      extensions:        - .js        - .jsx        - .ts        - .tsx        - .cjs        - .mjs        - .vuechecks:  identical-code:    config:      threshold: 50  similar-code:    config:      threshold: 75

(2) config files for the oss analysis tool._

.eslintrc:

{  "root": true,  "env": {    "node": false,    "browser": true,    "es2020": true  },  "extends": [    "eslint:recommended",    "plugin:vue/vue3-essential",    "plugin:vue/strongly-recommended",    "plugin:vue/vue3-recommended",    "plugin:@typescript-eslint/recommended",    "prettier"  ],  "parser": "vue-eslint-parser",  "parserOptions": {    "sourceType": "module"  },  "plugins": ["vue", "html"],  "settings": {    "import/resolver": {      "alias": {        "map": [["@", "./src"]],        "extensions": [".vue", ".ts", ".js", ".tsx", ".jsx", ".json"]      }    }  },  "overrides": [    {      "files": [        "**/__tests__/*.{j,t}s?(x)",        "**/tests/unit/**/*.spec.{j,t}s?(x)"      ],      "env": {        "jest": true      }    }  ],  "ignorePatterns": ["components.d.ts", "coverage/", "tests/vitest-setup.ts"]}
  1. If possible, use our CLI withthe debug option to provide additional info, including any stderr produced by the engine.CODECLIMATE_DEBUG=1 codeclimate analyze -e eslint

Relevant links

ipfs-search/dweb-search-frontend#214


  • 4-6 word issue title

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp