import pkgjson from "../package.json" assert { type: 'json' }; Run Code Online (Sandbox Code Playgroud) 但是当我运行 lint 命令时,我看到...1:39 error Parsing error: Unexpected token assert Run Code Online (Sandbox Code Playgroud) 如何将 json 导入与 eslint 结合使用?归档时间...
await import(`${process.cwd()}/some.json`, { assert: { type: 'json' } }); ^-- eslint problem is here 我收到此错误(运行节点 18.15) $ eslint . /path/build.js 5:80 error Parsing error: Unexpected token , ✖ 1 problem (1 error, 0 warnings) 我无法删除断言部分,如果我这样做...
2 months ago. Viewed 2k times ESLint - Configuring "no-unused-vars" for TypeScript. 2 "SyntaxError: Unexpected token {" when trying to run ESLint script. 0. problem with running …
{ code: "console.log(foo)", errors: [{ messageId: "unexpected", type: "MemberExpression" }] }, { code: "console.error(foo)", errors: [{ messageId: "unexpected", type: "MemberExpression" }] }, { code: "console.info(foo)", errors: [{ messageId: "unexpected", type: "MemberEx...
/Users/user/project/components/footer.js 8:24 error Parsing error: Unexpected token = ✖ 1 problem (1 error, 0 warnings) Are you willing to submit a pull request to fix this bug? If I can make the time to track down the problem and fix it I will. ...
parser.ts tokenizer.ts script-setup script sfc style template utils index.ts parser-services.ts test typings .codecov.yml .eslintignore .eslintrc.yml .gitattributes .gitignore .gitmodules .npmrc .nycrc LICENSE README.md package.json rollup.config.js ...
eslint-plugin: [no-extra-non-null-assert] add fixer (#1468) (54201ab) eslint-plugin: [no-float-prom] fixer + msg for ignoreVoid (#1473) (159b16e) eslint-plugin: [unbound-method] support bound builtins (#1526) (0a110eb) eslint-plugin: add extension [no-dupe-class-members] (#...
rule-tester: assert suggestion messages are unique (#8995) typescript-estree: add maximumDefaultProjectFileMatchCount and wide allowDefaultProjectForFiles glob restrictions (#8925) 🩹 Fixes eslint-plugin: [no-unsafe-argument] handle tagged templates (#8746) eslint-plugin: [prefer-optional-chain] ...
项目团队成员希望能够禁用某些 JS 依赖。比如有团队成员希望使用 lodash 而将这个巨大的依赖引入项目,导致...
18a519f Update: let RuleTester cases assert that no autofix occurs (fixes #8157) (#8163) (Teddy Katz) a30eb8d Docs: improve documentation for RuleTester cases (#8162) (Teddy Katz) a78ec9f Chore: upgrade coveralls to ^2.11.16 (#8161) (alberto) d02bd11 Fix: padded-blocks autofix pro...