Skip to content

Commit

Permalink
Merge commit '43b57817cc040da564f71024363d63467fd10d6c' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideCanton committed Oct 13, 2023
2 parents d1d4676 + 43b5781 commit 39c2b8b
Show file tree
Hide file tree
Showing 76 changed files with 9,092 additions and 23,000 deletions.
58 changes: 29 additions & 29 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"name": "Node.js & TypeScript",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 10, 12, 14
"args": { "VARIANT": "14" }
},
"name": "Node.js & TypeScript",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 10, 12, 14
"args": { "VARIANT": "14" }
},

// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"ms-vscode.vscode-typescript-tslint-plugin",
"coenraads.bracket-pair-colorizer",
"rokoroku.vscode-theme-darcula",
"salbert.comment-ts",
"mhutchie.git-graph",
"eamodio.gitlens",
"orta.vscode-jest",
"rbbit.typescript-hero",
"visualstudioexptteam.vscodeintellicode"
],
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint",
"ms-vscode.vscode-typescript-tslint-plugin",
"coenraads.bracket-pair-colorizer",
"rokoroku.vscode-theme-darcula",
"salbert.comment-ts",
"mhutchie.git-graph",
"eamodio.gitlens",
"orta.vscode-jest",
"rbbit.typescript-hero",
"visualstudioexptteam.vscodeintellicode"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "yarn install",
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "yarn install",

// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
}
125 changes: 125 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
module.exports = {
env: {
node: true,
},
ignorePatterns: ['dist/**/*.*', 'docs/**/*.*', '.eslintrc.cjs', 'webpack.config.js', 'setupJest.ts'],
root: true,
parserOptions: {
project: 'tsconfig.eslint.json',
sourceType: 'module',
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:import/typescript',
'plugin:import/recommended',
'prettier',
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
rules: {
'@typescript-eslint/consistent-type-definitions': 'error',
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/indent': 'off',
'@typescript-eslint/no-shadow': 'warn',
'@typescript-eslint/explicit-member-accessibility': [
'off',
{
accessibility: 'explicit',
},
],
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
],
'@typescript-eslint/member-ordering': 'error',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-inferrable-types': [
'error',
{
ignoreParameters: true,
},
],
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-expressions': 'off',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/quotes': ['error', 'single'],
'@typescript-eslint/semi': ['error', 'always'],
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/explicit-function-return-type': ['error', { allowExpressions: true }],
'@typescript-eslint/unified-signatures': 'error',
'arrow-body-style': 'error',
'brace-style': ['off', 'off'],
'constructor-super': 'error',
curly: 'warn',
'eol-last': 'error',
eqeqeq: ['error', 'smart'],
'guard-for-in': 'off',
'id-blacklist': 'off',
'id-match': 'off',
'import/no-deprecated': 'warn',
'max-len': 'off',
'no-bitwise': 'error',
'no-caller': 'error',
'no-console': [
'error',
{
allow: [
'log',
'warn',
'dir',
'timeLog',
'assert',
'clear',
'count',
'countReset',
'group',
'groupEnd',
'table',
'dirxml',
'error',
'groupCollapsed',
'Console',
'profile',
'profileEnd',
'timeStamp',
'context',
],
},
],
'no-debugger': 'error',
'no-empty': 'off',
'no-eval': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'no-fallthrough': 'error',
'no-new-wrappers': 'error',
'no-restricted-imports': ['error', 'rxjs', 'rxjs/Rx'],
'no-shadow': 'off',
'no-throw-literal': 'error',
'no-trailing-spaces': 'error',
'no-undef-init': 'error',
'no-underscore-dangle': 'off',
'no-unused-labels': 'error',
'no-var': 'error',
'prefer-const': 'error',
radix: 'error',
'spaced-comment': [
'error',
'always',
{
markers: ['/'],
},
],
},
};
139 changes: 0 additions & 139 deletions .eslintrc.js

This file was deleted.

44 changes: 22 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
name: Deploy

on:
push:
branches: [ release ]
push:
branches: [release]

workflow_dispatch:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
environment: NPM
steps:
- uses: actions/checkout@v2
id: checkout-repo
name: Checkout Repository

- uses: actions/setup-node@v2
name: Setup node
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
build:
runs-on: ubuntu-latest
environment: NPM
steps:
- uses: actions/checkout@v4
id: checkout-repo
name: Checkout Repository

- run: npm install
name: Install dependencies
- uses: actions/setup-node@v3
name: Setup node
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- run: npm publish --access public --verbose
name: Deploy
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: yarn
name: Install dependencies

- run: npm publish --access public --verbose
name: Deploy
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
Loading

0 comments on commit 39c2b8b

Please sign in to comment.