diff --git a/.eslintrc.js b/.eslintrc.js index 93240c8..122358c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,22 +1,28 @@ -/* eslint-disable quote-props */ module.exports = { + root: true, env: { browser: true, es2020: true, + node: true, }, extends: [ 'plugin:vue/essential', + '@vue/standard', + '@vue/typescript/recommended', 'standard', ], + parser: 'vue-eslint-parser', parserOptions: { - ecmaVersion: 12, - sourceType: 'module', + parser: '@typescript-eslint/parser', }, - plugins: [ - 'vue', - ], + // parserOptions: { + // ecmaVersion: 2020, + // }, rules: { - 'semi': [2, 'always'], + 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', + + 'semi': ['error', 'never'], 'space-before-function-paren': 'off', 'one-var': 'off', 'quotes': 'off', @@ -36,5 +42,15 @@ module.exports = { 'object-property-newline': 'off', 'eqeqeq': 'warn', 'no-multiple-empty-lines': 'off', + + '@typescript-eslint/ban-ts-comment': 'warn', + // '@typescript-eslint/ban-ts-comment': ['warn', { + // 'ts-ignore': 'allow-with-description', + // }], + // 'vue/valid-template-root': 'off', + 'vue/no-multiple-template-root': 'off', + + 'no-empty-function': 'off', + '@typescript-eslint/no-empty-function': ['off'], }, -}; +} diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..51858bf --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "volar.tsPlugin": true +} \ No newline at end of file diff --git a/api-extractor.json b/api-extractor.json new file mode 100644 index 0000000..3f6626c --- /dev/null +++ b/api-extractor.json @@ -0,0 +1,13 @@ +{ + "mainEntryPointFilePath": "./types/export.d.ts", + "apiReport": { + "enabled": true + }, + "docModel": { + "enabled": true + }, + "dtsRollup": { + "enabled": true, + "publicTrimmedFilePath": "./dist/trois.d.ts" + } +} diff --git a/index.html b/index.html index 883edf9..0626100 100644 --- a/index.html +++ b/index.html @@ -7,6 +7,6 @@
- +