Skip to content

Commit 23b8497

Browse files
update eslint config
1 parent 84da134 commit 23b8497

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.eslintrc.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ module.exports = {
1818
"@typescript-eslint/ban-ts-ignore": "off",
1919
"@typescript-eslint/no-explicit-any": "off",
2020
"@typescript-eslint/no-var-requires": "off",
21-
"max-len": "warn"
21+
"max-len": "warn",
22+
"global-require": "off",
23+
"import/no-webpack-loader-syntax": "off"
2224
},
2325
overrides: [
2426
{

docs/src/.vuepress/components/demo.vue

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export default {
3333
return
3434
}
3535
if (this.path) {
36+
// eslint-disable-next-line import/no-dynamic-require
3637
const code = require(`!!raw-loader!../demos/${this.path}`).default
3738
const html = require('!!raw-loader!./index.html').default
3839
const main = require('!!raw-loader!./main.js').default

0 commit comments

Comments
 (0)