Skip to content

Commit

Permalink
Copy content of mib200/vue-gtm:master
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinigami92 committed Apr 24, 2021
0 parents commit 940a45a
Show file tree
Hide file tree
Showing 25 changed files with 6,519 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
116 changes: 116 additions & 0 deletions .eslintrc.json
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"
}
}
]
}
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
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
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
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

...
64 changes: 64 additions & 0 deletions .github/workflows/ci.yml
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
66 changes: 66 additions & 0 deletions .gitignore
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
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage/
dist/
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"printWidth": 120
}
14 changes: 14 additions & 0 deletions .vscode/settings.json
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"
]
}
Loading

0 comments on commit 940a45a

Please sign in to comment.