Skip to content
This repository was archived by the owner on Jun 27, 2023. It is now read-only.

Commit f4ed7b9

Browse files
authored
Merge pull request #218 from asigloo/final-stable-next-on-master
Final stable next on master
2 parents 4ffd8c0 + ba85f29 commit f4ed7b9

File tree

157 files changed

+19521
-25230
lines changed

Some content is hidden

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

157 files changed

+19521
-25230
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
dist/
2+
*.config.js

.eslintrc.js

Lines changed: 42 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,48 @@
11
module.exports = {
2-
root: true,
3-
env: {
4-
browser: true,
5-
node: true,
6-
},
7-
extends: [
8-
'plugin:vue/essential',
9-
'plugin:prettier/recommended',
10-
'prettier',
11-
'prettier/vue',
2+
root: true,
3+
env: {
4+
node: true,
5+
},
6+
extends: [
7+
/* 'plugin:vue/vue3-essential', */
8+
'eslint:recommended',
9+
'@vue/typescript/recommended',
10+
'@vue/prettier',
11+
'@vue/prettier/@typescript-eslint',
12+
],
13+
parserOptions: {
14+
ecmaVersion: 2020,
15+
},
16+
rules: {
17+
'vue/valid-v-slot': 'off',
18+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
19+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
20+
'@typescript-eslint/no-this-alias': [
21+
'error',
22+
{
23+
allowDestructuring: true, // Allow `const { props, state } = this`; false by default
24+
allowedNames: ['self', 'vdf'], // Allow `const self = this`; `[]` by default
25+
},
1226
],
13-
plugins: ['prettier'],
14-
rules: {
15-
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
16-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
17-
'prettier/prettier': [
18-
'error',
19-
{
20-
htmlWhitespaceSensitivity: 'ignore',
21-
singleQuote: true,
22-
semi: true,
23-
trailingComma: 'all',
24-
},
27+
},
28+
overrides: [
29+
{
30+
files: [
31+
'**/__tests__/*.{j,t}s?(x)',
32+
'**/tests/unit/**/*.spec.{j,t}s?(x)',
2533
],
34+
env: {
35+
jest: true,
36+
},
2637
},
27-
parserOptions: {
28-
parser: 'babel-eslint',
29-
},
30-
settings: {
31-
'import/resolver': {
32-
alias: [['@', './src']],
38+
{
39+
files: [
40+
'**/__tests__/*.{j,t}s?(x)',
41+
'**/tests/unit/**/*.spec.{j,t}s?(x)',
42+
],
43+
env: {
44+
jest: true,
3345
},
3446
},
35-
}
47+
],
48+
};

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
name: ci
2-
1+
name: CI
32
on:
43
pull_request:
54
branches:
65
- master
76
- next
8-
97
jobs:
10-
test-and-release:
11-
name: Run tests
8+
check:
9+
name: Check stuff
1210
runs-on: ubuntu-18.04
1311
steps:
1412
- name: Checkout
@@ -19,5 +17,7 @@ jobs:
1917
node-version: 12
2018
- name: Install dependencies
2119
run: npm ci
22-
- name: Run tests
23-
run: npm run test
20+
- name: Run unit tests
21+
run: npm run test --verbose
22+
- name: Build Library
23+
run: npm run build

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,12 @@ jobs:
1717
node-version: 12
1818
- name: Install dependencies
1919
run: npm ci
20+
- name: Run unit tests
21+
run: npm run test --verbose
2022
- name: Build Library
2123
run: npm run build
24+
- name: Build Types Declarations
25+
run: npm run build:dts
2226
- name: Release
2327
env:
2428
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ node_modules
66
/coverage
77
/tests/e2e/videos/
88
/tests/e2e/screenshots/
9-
9+
/temp
1010
# local env files
1111
.env.local
1212
.env.*.local

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

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

.husky/pre-push

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

.npmignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@
22
.vuegenerator
33
.eslintrc.js
44
.eslintignore
5+
.nyc_output
6+
.husky
57
netlify.toml
68
jest.config.js
79
babel.config.js
810
vue.config.js
911
postcss.config.js
12+
api-extractor.json
13+
renovate.json
14+
rollup.config.js
15+
tailwind.config.js
1016
.prettierrc
1117
.git
18+
.prettierignore
1219
**/.git/
1320
**/node_modules/
1421
yarn.lock
@@ -18,3 +25,5 @@ yarn.lock
1825
/coverage
1926
/.vscode
2027
/tests
28+
/temp
29+
/templates

.nyc_output/out.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)