Skip to content

Commit

Permalink
👌Use modules not namespace
Browse files Browse the repository at this point in the history
👌 Add support for envrionment variables on webhooks
  • Loading branch information
scottdurow committed Sep 11, 2020
1 parent 0bb8995 commit caa3443
Show file tree
Hide file tree
Showing 19 changed files with 8,197 additions and 4,120 deletions.
53 changes: 32 additions & 21 deletions SmartButtonsUCI/SmartButtons.ClientHooks/.eslintrc.js
@@ -1,23 +1,34 @@
module.exports = {
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
extends: [
"prettier",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint",
],
plugins: ["prettier"],

env: {
browser: true,
jest: true,
},
overrides: [
{
files: ["*.ts"],
rules: {
camelcase: [2, { properties: "never" }],
module.exports = {
parser: "@typescript-eslint/parser", // Specifies the ESLint parser
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"prettier",
"prettier/@typescript-eslint",
"prettier/react",
],
plugins: ["react", "@typescript-eslint", "prettier"],
parserOptions: {
project: "./tsconfig.json",
},
settings: {
react: {
pragma: "React",
version: "detect",
},
},
],
};
env: {
browser: true,
jasmine: true,
jest: true,
},
overrides: [
{
files: ["*.ts"],
rules: {
camelcase: [2, { properties: "never" }],
},
},
],
};
13 changes: 13 additions & 0 deletions SmartButtonsUCI/SmartButtons.ClientHooks/.gitignore
@@ -0,0 +1,13 @@
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# Local History for Visual Studio Code
.history/

node_modules
lib
dist
13 changes: 6 additions & 7 deletions SmartButtonsUCI/SmartButtons.ClientHooks/.vscode/tasks.json
Expand Up @@ -4,16 +4,15 @@
"version": "2.0.0",
"tasks": [
{
"type": "typescript",
"tsconfig": "tsconfig.json",
"option": "watch",
"problemMatcher": [
"$tsc-watch"
],
"type": "npm",
"script": "build",
"group": {
"kind": "build",
"isDefault": true
}
},
"problemMatcher": [],
"label": "npm: build",
"detail": "webpack"
}
]
}
15 changes: 0 additions & 15 deletions SmartButtonsUCI/SmartButtons.ClientHooks/gulpfile.js

This file was deleted.

10 changes: 10 additions & 0 deletions SmartButtonsUCI/SmartButtons.ClientHooks/jest.config.js
@@ -0,0 +1,10 @@
module.exports = {
preset: "ts-jest",
testEnvironment: "jest-environment-jsdom-fourteen",
roots: ["<rootDir>/src/"],
globals: {
"ts-jest": {
tsConfig: "tsconfig.json",
},
},
};

0 comments on commit caa3443

Please sign in to comment.