Skip to content

Commit bb36624

Browse files
Merge pull request #1 from webdevnerdstuff/dev
Dev
2 parents b0d0de1 + 8f422b0 commit bb36624

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+19755
-113
lines changed

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = tab
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[*.{js,ts,vue}]
18+
indent_size = 2
19+
indent_style = tab
20+
21+
[*.{scss,css}]
22+
indent_size = 2
23+
indent_style = space

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# don't ever lint node_modules
2+
node_modules
3+
# don't lint build output (make sure it's set to your correct build folder name)
4+
dist
5+
6+
.eslintrc.js

.eslintrc-auto-import.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"globals": {
3+
"CSSProperties": true,
4+
"Component": true,
5+
"ComponentPublicInstance": true,
6+
"ComputedRef": true,
7+
"EffectScope": true,
8+
"InjectionKey": true,
9+
"PropType": true,
10+
"Ref": true,
11+
"VNode": true,
12+
"computed": true,
13+
"createApp": true,
14+
"customRef": true,
15+
"defineAsyncComponent": true,
16+
"defineComponent": true,
17+
"effectScope": true,
18+
"getCurrentInstance": true,
19+
"getCurrentScope": true,
20+
"h": true,
21+
"inject": true,
22+
"isProxy": true,
23+
"isReactive": true,
24+
"isReadonly": true,
25+
"isRef": true,
26+
"markRaw": true,
27+
"nextTick": true,
28+
"onActivated": true,
29+
"onBeforeMount": true,
30+
"onBeforeUnmount": true,
31+
"onBeforeUpdate": true,
32+
"onDeactivated": true,
33+
"onErrorCaptured": true,
34+
"onMounted": true,
35+
"onRenderTracked": true,
36+
"onRenderTriggered": true,
37+
"onScopeDispose": true,
38+
"onServerPrefetch": true,
39+
"onUnmounted": true,
40+
"onUpdated": true,
41+
"provide": true,
42+
"reactive": true,
43+
"readonly": true,
44+
"ref": true,
45+
"resolveComponent": true,
46+
"shallowReactive": true,
47+
"shallowReadonly": true,
48+
"shallowRef": true,
49+
"toRaw": true,
50+
"toRef": true,
51+
"toRefs": true,
52+
"triggerRef": true,
53+
"unref": true,
54+
"useAttrs": true,
55+
"useCssModule": true,
56+
"useCssVars": true,
57+
"useSlots": true,
58+
"useTheme": true,
59+
"watch": true,
60+
"watchEffect": true,
61+
"watchPostEffect": true,
62+
"watchSyncEffect": true
63+
}
64+
}

.eslintrc.js

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
node: true,
5+
},
6+
extends: [
7+
'eslint:recommended',
8+
'plugin:vue/essential',
9+
'plugin:@typescript-eslint/recommended',
10+
'@vue/typescript/recommended',
11+
'prettier',
12+
'./.eslintrc-auto-import.json',
13+
],
14+
ignorePatterns: [
15+
'.eslintrc.js',
16+
'vite.build.config.ts',
17+
'vite.config.ts',
18+
'*.bk.vue',
19+
],
20+
overrides: [
21+
{
22+
files: [
23+
'**/*.spec.{j,t}s?(x)',
24+
],
25+
env: {
26+
jest: true,
27+
},
28+
},
29+
],
30+
globals: {
31+
Entry: true,
32+
},
33+
parserOptions: {
34+
parser: '@typescript-eslint/parser',
35+
},
36+
plugins: [
37+
'@typescript-eslint',
38+
'import',
39+
'prettier',
40+
'vue',
41+
],
42+
root: true,
43+
settings: {
44+
'import/resolver': {
45+
'babel-module': {},
46+
},
47+
},
48+
rules: {
49+
'@typescript-eslint/ban-ts-comment': 0,
50+
'@typescript-eslint/ban-types': [
51+
'error',
52+
{
53+
'extendDefaults': true,
54+
'types': {
55+
'{}': false,
56+
}
57+
},
58+
],
59+
'@typescript-eslint/no-empty-function': 0,
60+
'brace-style': ['error', 'stroustrup'],
61+
'default-case': [
62+
'error', {
63+
commentPattern: '^skip\\sdefault',
64+
},
65+
],
66+
'func-names': ['error', 'never'],
67+
'function-paren-newline': 0,
68+
'import/no-self-import': 0,
69+
'import/no-extraneous-dependencies': 0,
70+
'implicit-arrow-linebreak': ['warn', 'beside'],
71+
indent: [2, 'tab', { SwitchCase: 1 }],
72+
'no-tabs': [0, { allowIndentationTabs: true }],
73+
'linebreak-style': 0,
74+
'max-len': 0,
75+
'no-else-return': ['error', { allowElseIf: true }],
76+
'no-console': ['warn', { allow: ['warn', 'error', 'info', 'trace'] }],
77+
'no-const-assign': 'error',
78+
'no-debugger': 0,
79+
'no-new': 0,
80+
'no-undef': 0,
81+
'no-unused-vars': 1,
82+
'no-use-before-define': 0,
83+
'no-useless-escape': 0,
84+
'no-param-reassign': [
85+
'error', {
86+
props: true,
87+
ignorePropertyModificationsFor: ['field', 'model', 'el', 'item', 'state', 'Vue', 'vue'],
88+
},
89+
],
90+
'no-underscore-dangle': [
91+
'error', {
92+
allow: ['_data'],
93+
allowAfterThis: true,
94+
},
95+
],
96+
'no-plusplus': [
97+
'error', { allowForLoopAfterthoughts: true },
98+
],
99+
'object-curly-newline': ['error', {
100+
ObjectPattern: { multiline: false },
101+
}],
102+
'operator-linebreak': ['error', 'after'],
103+
'prefer-destructuring': [
104+
'error', {
105+
array: false,
106+
object: false,
107+
},
108+
{
109+
enforceForRenamedProperties: false,
110+
},
111+
],
112+
'space-before-function-paren': ['error', {
113+
anonymous: 'never',
114+
named: 'never',
115+
asyncArrow: 'always',
116+
}],
117+
'vue/attributes-order': ['error', {
118+
'alphabetical': true,
119+
'order': [
120+
'DEFINITION',
121+
'LIST_RENDERING',
122+
'CONDITIONALS',
123+
'RENDER_MODIFIERS',
124+
'GLOBAL',
125+
['UNIQUE', 'SLOT'],
126+
'TWO_WAY_BINDING',
127+
'OTHER_DIRECTIVES',
128+
'OTHER_ATTR',
129+
'EVENTS',
130+
'CONTENT',
131+
],
132+
}],
133+
'vue/html-closing-bracket-newline': 0,
134+
'vue/html-indent': 0,
135+
'vue/html-self-closing': 0,
136+
'vue/max-attributes-per-line': 0,
137+
'vue/no-multiple-template-root': 0,
138+
'vue/no-template-shadow': 0,
139+
'vue/no-v-for-template-key': 0,
140+
'vue/no-v-html': 0,
141+
'vue/singleline-html-element-content-newline': 0,
142+
'vue/sort-keys': ['error', 'asc', {
143+
caseSensitive: true,
144+
ignoreChildrenOf: ['model', 'defineProps'],
145+
ignoreGrandchildrenOf: ['computed', 'directives', 'inject', 'props', 'watch', 'defineProps'],
146+
minKeys: 2,
147+
natural: true,
148+
}],
149+
'vue/valid-template-root': 0,
150+
},
151+
};

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ dist-ssr
1414

1515
# Editor directories and files
1616
.vscode/*
17+
.history/*
1718
!.vscode/extensions.json
1819
.idea
1920
.DS_Store
@@ -22,3 +23,7 @@ dist-ssr
2223
*.njsproj
2324
*.sln
2425
*.sw?
26+
27+
28+
src/plugin/**/*.bk.*
29+
src/plugin/shared

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx lint-staged

.npmignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.github
3+
.history

.prettierrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
semi: true,
3+
singleQuote: true,
4+
trailingComma: 'all',
5+
};

0 commit comments

Comments
 (0)