Browse Source

Merge pull request 'style: 🎨 修复在vue文件使用全局声明文件时eslint报错' (#31) from dev into test

Reviewed-on: common/base_daoshi_vue_ts#31
test
姜鑫 3 years ago
parent
commit
e02aa5ff8b
  1. 1
      .eslintrc.js
  2. 1
      tsconfig.json

1
.eslintrc.js

@ -24,6 +24,7 @@ module.exports = {
}, },
plugins: ['vue', '@typescript-eslint', 'prettier'], plugins: ['vue', '@typescript-eslint', 'prettier'],
rules: { rules: {
'no-undef': 'off',
'vue/multi-word-component-names': 'off', 'vue/multi-word-component-names': 'off',
'@typescript-eslint/ban-ts-ignore': 'off', '@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/no-unused-vars': 'warn', '@typescript-eslint/no-unused-vars': 'warn',

1
tsconfig.json

@ -6,6 +6,7 @@
"jsx": "preserve", "jsx": "preserve",
"moduleResolution": "node", "moduleResolution": "node",
"skipLibCheck": true, "skipLibCheck": true,
"ignoreDeprecations": "5.0",
"suppressImplicitAnyIndexErrors": true, "suppressImplicitAnyIndexErrors": true,
"esModuleInterop": true, "esModuleInterop": true,
"allowJs": true, "allowJs": true,

Loading…
Cancel
Save