git 上传提交代码时报错Cannot read config file: /Users/(文件路径)/.eslintrc.json 在最初呢,我的项目里面并没有.eslintrc.json这个文件,git commit的时候报错 后来我就给文件夹里面添加了一个.eslintrc.json 报错呢,就变成了 .eslintrc.json里面的规则是 `{ "parserOptions":{"ecmaVersion":6,"sourceTy...
// eslint.config.jsimportantfufrom'@antfu/eslint-config'exportdefaultantfu({// Type of the project. 'lib' for libraries, the default is 'app'type:'lib',// Enable stylistic formatting rules// stylistic: true,// Or customize the stylistic rulesstylistic:{indent:2,// 4, or 'tab'quotes:...
Error: Cannot read config file: /path/to/.eslintrc.js Error: "SomeRuleName" already defined as eslint-plugin-regex rule nameLocal Custom Regex rulesCreate a local .eslintrc.js:1 . Add rule name using addRegexRuleName. 2 . Define eslint-plugin-regex custom regex rule....
├── utils // 公共js文件 │ ├── app.js │ ├── app.json │ ├── app.less │ ├── project.config.json // 项目配置文件 │ └── api.config.js // 项目api接口配置 ├── .gitignore ├── .eslintrc.js ├── package-lock.json ├── package.json └── README....
Cannot retrieve latest commit at this time. History195 Commits .github/workflows .vscode bin fixtures scripts src test .DS_Store .gitattributes .gitignore .npmrc LICENSE README.md eslint.config.ts netlify.toml package.json pnpm-lock.yaml pnpm-workspace.yaml tsconfig.jso...
之前没有问题,今天打开项目后,ts文件中的import突然报Parsing error: Cannot read file '.../tsconfig.json'.eslint,查了下stackoverflow 内容 以下为大家给出的一些解决方案; 不过操作之前大家最好先看看自己的配置是否有问题; 我特喵的我那个配置文件名称project: "[tsconfig.json]"我这边不小心在后面打了个g...
tsup.config.ts feat!: drop CJS build 1个月前 vitest.config.ts feat: upgradeperfectionistto v4 3个月前 README MIT @antfu/eslint-config Usage Starter Wizard Manual Install Add script for package.json IDE Support (auto fix on save)
Despite me installing all the necessary dependencies for those three imports ineslint.config.jsto work in the documented way, they cannot be found. So something's off, and the fact that the hook works fine with the old-style config, without changing.pre-commit-config.yamlat all, ...
Error:Cannotfindmodule'eslint-config-prettier/standard' In node modules I have `node_modules/eslint-config-prettier-standard` Note the difference between the slash and the hyphen in the rc file vs the directory. If I remove the slash (/) in the .eslintrc and replace it...
js): TypeError: Class constructor ESLintWebpackPlugin cannot be invoked without 'new' I've seen in previous questions the answer is to include "esmodules": true so here's the relevant part of my package.json: "babel": { "presets": [ [ "@babel/preset-env", { "targets...