ESLint was configured to run on <tsconfigRootDir>/commitlint.config.js using `parserOptions.project
需要在.eslintrc.js和tsconfig.json文件里引入配置
.eslintrc.js文章来源:https://www.toymoban.com/news/detail-596033.html
module.exports = {
...
parserOptions: {
'project': [
'./tsconfig.json',
'./commitlint.config.js', // 需要引入配置,否则报错
],
},
...
};
tsconfig.json文章来源地址https://www.toymoban.com/news/detail-596033.html
"include": [
...
"commitlint.config.js", // 需要引入配置,否则报错
...
],
到了这里,关于ESLint was configured to run on `<tsconfigRootDir>/commitlint.config.js` using `parserOptions的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!