-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy content of mib200/vue-gtm:master
- Loading branch information
0 parents
commit 940a45a
Showing
25 changed files
with
6,519 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"env": { | ||
"es6": true, | ||
"jest": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
"plugin:jsdoc/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": ["./tsconfig.lint.json"], | ||
"warnOnUnsupportedTypeScriptVersion": false | ||
}, | ||
"plugins": ["@typescript-eslint", "prettier", "jsdoc", "spellcheck"], | ||
"rules": { | ||
"curly": ["error"], | ||
"linebreak-style": ["error", "unix"], | ||
"no-case-declarations": "warn", | ||
"prefer-rest-params": "off", | ||
"quotes": ["error", "double", { "avoidEscape": true }], | ||
"semi": ["error", "always"], | ||
|
||
"@typescript-eslint/explicit-function-return-type": ["error", { "allowExpressions": true }], | ||
"@typescript-eslint/explicit-member-accessibility": "error", | ||
"@typescript-eslint/indent": ["error", 2, { "SwitchCase": 1, "ignoredNodes": ["MemberExpression"] }], | ||
"@typescript-eslint/member-ordering": "warn", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-inferrable-types": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/prefer-nullish-coalescing": "warn", | ||
"@typescript-eslint/prefer-optional-chain": "warn", | ||
"@typescript-eslint/prefer-readonly": ["warn"], | ||
"@typescript-eslint/restrict-template-expressions": "off", | ||
"@typescript-eslint/typedef": ["warn", { "memberVariableDeclaration": true, "variableDeclaration": true }], | ||
|
||
"jsdoc/match-description": [ | ||
"warn", | ||
{ | ||
"mainDescription": "/^[A-Z`].+?(\\.|:)(\\n\\n.*((\\n{1,2}- .+)|(_.+_)|`.+`|\\n\\n---))?$/us", | ||
"matchDescription": "^[A-Z`].+(\\.|`.+`)$", | ||
"contexts": ["any"], | ||
"tags": { | ||
"param": true, | ||
"returns": true | ||
} | ||
} | ||
], | ||
"jsdoc/no-types": "error", | ||
"jsdoc/require-jsdoc": [ | ||
"warn", | ||
{ | ||
"contexts": [ | ||
"ClassDeclaration", | ||
"ClassProperty:not([accessibility='private'])", | ||
"ExportNamedDeclaration:has(VariableDeclaration)", | ||
"FunctionExpression", | ||
"MethodDefinition:not([accessibility='private']) > FunctionExpression", | ||
"TSEnumDeclaration", | ||
"TSInterfaceDeclaration", | ||
"TSMethodSignature", | ||
// 'TSPropertySignature', | ||
"TSTypeAliasDeclaration" | ||
] | ||
} | ||
], | ||
"jsdoc/require-param-type": "off", | ||
"jsdoc/require-returns-type": "off", | ||
|
||
"spellcheck/spell-checker": [ | ||
"warn", | ||
{ | ||
"minLength": 3, | ||
"skipWords": [ | ||
"cancelled", | ||
"globals", | ||
"googletagmanager", | ||
"gtm", | ||
"jsdoc", | ||
"junit", | ||
"noninteraction", | ||
"nullish", | ||
"overridable", | ||
"pararms", | ||
"readonly", | ||
"vue" | ||
] | ||
} | ||
] | ||
}, | ||
"settings": { | ||
"jsdoc": { | ||
"mode": "typescript" | ||
} | ||
}, | ||
"overrides": [ | ||
{ | ||
"files": ["tests/**/*.ts"], | ||
"rules": { | ||
"@typescript-eslint/unbound-method": "off", | ||
"jsdoc/require-jsdoc": "off" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
name: Bug Report | ||
about: Create a report to help us improve | ||
title: "Bug: " | ||
labels: "" | ||
assignees: "" | ||
--- | ||
|
||
## Info | ||
|
||
| Tool | Version | | ||
| ------ | ------------- | | ||
| Plugin | v3.x.x | | ||
| Vue | v2.x.x | | ||
| Node | vx.x.x | | ||
| OS | win,linux,mac | | ||
|
||
## Input | ||
|
||
```js | ||
|
||
``` | ||
|
||
## Output or Error | ||
|
||
```bash | ||
|
||
``` | ||
|
||
## Expected Output | ||
|
||
```bash | ||
|
||
``` | ||
|
||
## Additional Context |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
name: Feature Request | ||
about: Suggest an idea for this project | ||
title: "" | ||
labels: "" | ||
assignees: "" | ||
--- | ||
|
||
## Request / Idea | ||
|
||
... | ||
|
||
## Additional Context | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
node: [12.x, 14.x, 15.x] | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Set git to use LF on Windows | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
git config --global core.autocrlf false | ||
git config --global core.eol lf | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set node version to ${{ matrix.node }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
|
||
- name: Versions | ||
run: yarn versions | ||
|
||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
|
||
- name: Lint | ||
if: matrix.os == 'ubuntu-latest' && matrix.node == '14.x' | ||
run: yarn lint | ||
|
||
- name: Build | ||
run: yarn build | ||
|
||
- name: Test | ||
run: yarn jest --ci --silent --reporters=default --reporters=jest-junit | ||
|
||
- name: Upload test artifact | ||
uses: actions/upload-artifact@v2 | ||
if: ${{ always() }} | ||
with: | ||
name: JUnit_${{ matrix.os }}_${{ matrix.node }}_${{ github.sha }} | ||
path: junit.xml | ||
|
||
- name: Audit dependencies | ||
run: yarn audit --groups dependencies | ||
|
||
- name: Audit peerDependencies | ||
run: yarn audit --groups peerDependencies | ||
|
||
- name: Check outdated dependencies | ||
if: github.ref == 'refs/heads/master' | ||
run: yarn outdated |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
junit.xml | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next | ||
|
||
# build | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
coverage/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"printWidth": 120 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"cSpell.words": [ | ||
"Kumar", | ||
"Manish", | ||
"googletagmanager", | ||
"linebreak", | ||
"noninteraction", | ||
"npm's", | ||
"overridable", | ||
"pararms", | ||
"readonly", | ||
"vuejs" | ||
] | ||
} |
Oops, something went wrong.