Skip to content

Commit b753219

Browse files
committed
Merge remote-tracking branch 'origin/typescript' into merge-test
Conflicts: .gitignore index.js lib/EnvoyAPI.js lib/EnvoyPluginStorage.js lib/EnvoyPluginStoragePipeline.js package-lock.json package.json
2 parents 98c3420 + f0f3f60 commit b753219

File tree

124 files changed

+13723
-15015
lines changed

Some content is hidden

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

124 files changed

+13723
-15015
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+

.eslintrc.js

Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,42 @@
11
module.exports = {
2-
env: {
3-
commonjs: true,
4-
es6: true,
5-
node: true,
6-
},
7-
extends: 'airbnb-base',
8-
globals: {
9-
Atomics: 'readonly',
10-
SharedArrayBuffer: 'readonly',
11-
},
2+
extends: [
3+
'airbnb-typescript/base',
4+
'plugin:@typescript-eslint/recommended',
5+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
6+
],
7+
parser: "@typescript-eslint/parser",
128
parserOptions: {
13-
ecmaVersion: 2018,
9+
project: './tsconfig.json',
1410
},
1511
rules: {
16-
'no-trailing-spaces': 'off',
17-
'padded-blocks': 'off',
18-
'no-console': 'off',
19-
'arrow-parens': 'off',
20-
'no-return-assign': 'off',
21-
'no-empty': 'off',
12+
'no-param-reassign': 'off',
13+
'no-void': 'off',
14+
'max-len': ["error", { "code": 150 }],
2215
'consistent-return': 'off',
23-
'no-shadow': 'off',
24-
'no-plusplus': 'off',
25-
'no-case-declarations': 'off',
26-
'class-methods-use-this': 'off'
16+
'object-curly-newline': 'off',
17+
'import/prefer-default-export': 'off',
18+
'@typescript-eslint/no-unsafe-assignment': 'off',
19+
'@typescript-eslint/no-unsafe-return': 'off',
20+
'@typescript-eslint/no-unsafe-call': 'off',
21+
'@typescript-eslint/no-unsafe-member-access': 'off',
22+
'@typescript-eslint/no-misused-promises': 'off',
23+
'@typescript-eslint/no-unused-expressions': 'off',
24+
'@typescript-eslint/restrict-template-expressions': 'off',
25+
'@typescript-eslint/explicit-module-boundary-types': 'off'
2726
},
2827
overrides: [
2928
{
3029
files: [
31-
'tests/**/*.test.js'
30+
'test/**/*.ts'
3231
],
3332
env: {
3433
mocha: true
3534
},
3635
rules: {
3736
'prefer-arrow-callback': 'off',
38-
'func-names': 'off',
39-
'no-loop-func': 'off',
40-
'no-await-in-loop': 'off',
41-
'no-restricted-syntax': 'off',
42-
'max-len': 'off'
37+
'func-names': 'off'
4338
}
4439
}
45-
]
40+
],
41+
ignorePatterns: ["*.js"]
4642
};

.github/workflows/build.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
# Setup .npmrc file to publish to npm
12+
- uses: actions/setup-node@v2
13+
with:
14+
registry-url: 'https://npm.pkg.github.com'
15+
- run: npm install
16+
- run: npm run compile

.github/workflows/package.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
env:
3030
NODE_AUTH_TOKEN: ${{ secrets.ENVOYBOT_PERSONAL_ACCESS_TOKEN }}
3131

32-
- run: npm publish --access public
32+
- run: npm publish --tag beta --access public
3333
env:
3434
NODE_AUTH_TOKEN: ${{ secrets.ENVOY_NPM_AUTOMATION_TOKEN }}
3535

@@ -38,6 +38,6 @@ jobs:
3838
with:
3939
registry-url: "https://npm.pkg.github.com"
4040

41-
- run: npm publish
41+
- run: npm publish --tag beta
4242
env:
4343
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ typings/
6060
# next.js build output
6161
.next
6262
.idea
63-
dist
63+
dist

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+
.github

.nvmrc

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

.prettierrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"printWidth": 120,
3+
"bracketSameLine": false,
4+
"htmlWhitespaceSensitivity": "ignore",
5+
"singleQuote": true,
6+
"jsxSingleQuote": false,
7+
"trailingComma": "all"
8+
}

0 commit comments

Comments
 (0)