Skip to content

Commit ea2d4e6

Browse files
committed
updated demo
1 parent 7527a69 commit ea2d4e6

20 files changed

+20673
-5340
lines changed

demo/.browserslistrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
> 1%
2+
last 2 versions
3+
not dead
4+
not ie 11

demo/.editorconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[*.{js,jsx,ts,tsx,vue}]
2+
indent_style = space
3+
indent_size = 2
4+
end_of_line = lf
5+
trim_trailing_whitespace = true
6+
insert_final_newline = true
7+
max_line_length = 100

demo/.eslintrc.js

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
const isProduction = process.env.NODE_ENV === 'production';
2+
3+
module.exports = {
4+
root: true,
5+
env: {
6+
node: true,
7+
},
8+
extends: [
9+
'plugin:vue/vue3-essential',
10+
'@vue/airbnb',
11+
'@vue/typescript/recommended',
12+
],
13+
parserOptions: {
14+
ecmaVersion: 2021,
15+
},
16+
rules: {
17+
'@typescript-eslint/ban-types': 'off',
18+
'@typescript-eslint/ban-ts-comment': 'off',
19+
'@typescript-eslint/brace-style': 'off',
20+
'@typescript-eslint/lines-between-class-members': 'off',
21+
'@typescript-eslint/no-explicit-any': 'off',
22+
'@typescript-eslint/no-unused-vars': isProduction ? 'error' : 'warn',
23+
'arrow-parens': 'off',
24+
'brace-style': ['error', 'stroustrup', { allowSingleLine: true }],
25+
'camelcase': 'off',
26+
'class-methods-use-this': 'off',
27+
'import/extensions': 'off',
28+
'import/no-cycle': 'off',
29+
'linebreak-style': 'off',
30+
'lines-between-class-members': 'off',
31+
'max-classes-per-file': 'off',
32+
'no-await-in-loop': 'off',
33+
'no-console': isProduction ? 'warn' : 'off',
34+
'no-continue': 'off',
35+
'no-debugger': isProduction ? 'warn' : 'off',
36+
'no-empty': 'off',
37+
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 1, maxBOF: 1 }],
38+
'no-param-reassign': 'off',
39+
'no-plusplus': 'off',
40+
'no-restricted-globals': 'off',
41+
// https://github.com/typescript-eslint/typescript-eslint/blob/main/docs/linting/TROUBLESHOOTING.md#i-get-errors-from-the-no-undef-rule-about-global-variables-not-being-defined-even-though-there-are-no-typescript-errors
42+
'no-undef': 'off',
43+
'prefer-object-spread': 'off',
44+
45+
'vuejs-accessibility/heading-has-content': 'off',
46+
'vuejs-accessibility/mouse-events-have-key-events': 'off',
47+
'vuejs-accessibility/click-events-have-key-events': 'off',
48+
'vuejs-accessibility/label-has-for': 'off',
49+
'vuejs-accessibility/form-control-has-label': 'off',
50+
},
51+
overrides: [
52+
{
53+
files: [
54+
'**/__tests__/*.{j,t}s?(x)',
55+
'**/tests/unit/**/*.spec.{j,t}s?(x)',
56+
],
57+
env: {
58+
jest: true,
59+
},
60+
},
61+
],
62+
};

demo/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
node_modules
3+
/dist
4+
5+
6+
# local env files
7+
.env.local
8+
.env.*.local
9+
10+
# Log files
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
pnpm-debug.log*
15+
16+
# Editor directories and files
17+
.idea
18+
.vscode
19+
*.suo
20+
*.ntvs*
21+
*.njsproj
22+
*.sln
23+
*.sw?

demo/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# demo
2+
3+
## Project setup
4+
```
5+
npm install
6+
```
7+
8+
### Compiles and hot-reloads for development
9+
```
10+
npm run serve
11+
```
12+
13+
### Compiles and minifies for production
14+
```
15+
npm run build
16+
```
17+
18+
### Lints and fixes files
19+
```
20+
npm run lint
21+
```
22+
23+
### Customize configuration
24+
See [Configuration Reference](https://cli.vuejs.org/config/).

demo/babel.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset',
4+
],
5+
};

0 commit comments

Comments
 (0)