Skip to content

Commit

Permalink
refactor: change to rollup
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Apr 14, 2021
1 parent ec4a897 commit 669ed43
Show file tree
Hide file tree
Showing 362 changed files with 34,982 additions and 49,198 deletions.
131 changes: 131 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
/**
* @type {import('eslint').Linter.Config}
*/
module.exports = {
"root": true,
"env": {
"browser": true,
"commonjs": true,
"es2021": true,
"node": true
},
extends: [
'plugin:vue/essential',
"plugin:@typescript-eslint/recommended",
'standard'
],
parserOptions: {
"parser": "@typescript-eslint/parser",
"ecmaVersion": 2020,
"project": "tsconfig.json",
"sourceType": "module",
"tsconfigRootDir": ".",
"extraFileExtensions": [
".vue"
]
},
plugins: [
"vue",
"@typescript-eslint"
],
"globals": {
NodeJS: true
},
"settings": {
},
"overrides": [
{
"files": [
"src/**/*.vue"
],
"rules": {
"indent": [
"error",
2,
{
"SwitchCase": 1
}
]
}
},
{
"files": [
"*.spec.ts"
],
"globals": {
"describe": true,
"expect": true,
"test": true,
"jest": true,
"beforeEach": true
}
}
],
"rules": {
// "import/no-extraneous-dependencies": [
// "error",
// {}
// ],
// "indent": [
// "error",
// 2,
// {
// "SwitchCase": 1
// }
// ],
"@typescript-eslint/ban-types": 0,
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-empty-function": 0,
"@typescript-eslint/no-empty-interface": 0,
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/no-non-null-assertion": 0,
"@typescript-eslint/no-unused-expressions": 2,
"@typescript-eslint/no-unused-vars": 0,
"import/no-absolute-path": 0,
"space-before-function-paren": 0,
"no-useless-constructor": 0,
// "arrow-parens": 0,
// "class-methods-use-this": 0,
// "func-names": 0,
// "global-require": 0,
// "import/extensions": 0,
// "import/no-named-as-default": 0,
// "import/prefer-default-export": 0,
// "max-classes-per-file": 0,
// "max-len": 0,
// "no-alert": 1,
// "no-array-constructor": 0,
// "no-await-in-loop": 0,
// "no-console": 0,
// "no-continue": 0,
// "no-debugger": 0,
// "no-mixed-operators": 0,
// "no-nested-ternary": 0,
// "no-param-reassign": 0,
// "no-plusplus": 0,
// "no-prototype-builtins": 0,
// "no-restricted-syntax": 0,
// "no-shadow": 0,
// "no-throw-literal": "off",
// "no-trailing-spaces": 0,
// "no-underscore-dangle": 0,
// "no-unused-expressions": "off",
"no-unused-vars": 0,
"no-use-before-define": 0,
// "no-useless-constructor": 0,
// "object-curly-new-line": 0,
// "object-curly-newline": 0,
// "prefer-const": 0,
// "prefer-destructuring": 0,
// "space-before-function-paren": 0,
// "vue/html-closing-bracket-newline": 0,
// "vue/html-self-closing": 0,
// "vue/max-attributes-per-line": 0,
// "vue/no-v-html": 0,
// "vue/singleline-html-element-content-newline": 0,
// "vue/valid-v-if": "error",
// "wrap-iife": 0
}
}
132 changes: 0 additions & 132 deletions .eslintrc.json

This file was deleted.

3 changes: 1 addition & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"typescript",
"vue"
],
"eslint.enable": true,
"files.eol": "\n",
"files.exclude": {
"**/.git": true,
Expand All @@ -13,13 +12,13 @@
"**/.DS_Store": true,
"**/node_modules": true
},
"vetur.useWorkspaceDependencies": true,
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatter.ts": "vscode-typescript",
"vetur.format.enable": true,
"vetur.validation.template": true,
"vetur.validation.script": true,
"vetur.experimental.templateInterpolationService": true,
"editor.tabSize": 2,
"vetur.format.defaultFormatterOptions": {
"vscode-typescript": {
"indent_size": 2
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ Please open issue there if you identify any issue related to it.

- Create a new file for hook in `src/renderer/hooks` folder, and export the hook throw `src/renderer/hooks/index.ts`
- Wrap vuex operation in your hook
- Import your hook by `import { yourHook } from '@/hooks'` in your vue file
- Import your hook by `import { yourHook } from '/@/hooks'` in your vue file
- Use hook in vue file without directly access of vuex

### Dev with VSCode debugger
Expand Down
Loading

0 comments on commit 669ed43

Please sign in to comment.