-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync with current Cookiecutter template #28
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Run unit tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install yarn if not present | ||
run: |- | ||
if which yarn; then | ||
exit | ||
fi | ||
curl -fsSL --create-dirs -o ~/bin/yarn \ | ||
https://github.com/yarnpkg/yarn/releases/download/v1.22.19/yarn-1.22.19.js | ||
chmod +x ~/bin/yarn | ||
echo ~/bin >> "${GITHUB_PATH}" | ||
|
||
- name: Use specified Node.js version | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: yarn | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Compile | ||
run: yarn compile | ||
|
||
- name: Run linter | ||
run: yarn lint | ||
|
||
- name: Run unit tests | ||
run: yarn test |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
/extension/build/ | ||
/extension/dist/ | ||
/extension/examples/ | ||
/extension/work/ | ||
/.pnp.* | ||
/.yarn/* | ||
!/.yarn/patches/ | ||
|
Large diffs are not rendered by default.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "typescript", | ||
"version": "5.0.2-sdk", | ||
"version": "5.1.6-sdk", | ||
"main": "./lib/typescript.js", | ||
"type": "commonjs" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
enableGlobalCache: true | ||
|
||
nodeLinker: pnp | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-outdated.cjs | ||
spec: "https://mskelton.dev/yarn-outdated/v3" | ||
|
||
yarnPath: .yarn/releases/yarn-3.5.0.cjs | ||
yarnPath: .yarn/releases/yarn-3.6.1.cjs |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,18 @@ env: | |
node: true | ||
extends: | ||
- eslint:recommended | ||
- plugin:@typescript-eslint/recommended-requiring-type-checking | ||
- plugin:@typescript-eslint/recommended-type-checked | ||
- plugin:@typescript-eslint/stylistic-type-checked | ||
ignorePatterns: | ||
- build/ | ||
- work/ | ||
parser: "@typescript-eslint/parser" | ||
parserOptions: | ||
ecmaFeatures: | ||
impliedStrict: true | ||
ecmaVersion: 2022 | ||
project: | ||
- extension/tsconfig.json | ||
- tsconfig.json | ||
plugins: | ||
- "@typescript-eslint" | ||
root: true | ||
|
@@ -30,7 +34,10 @@ rules: | |
default-case-last: 1 | ||
default-case: 2 | ||
dot-location: [1, property] | ||
dot-notation: [1, { allowKeywords: false }] | ||
|
||
# For compatibility with typescript-eslint | ||
dot-notation: 0 | ||
|
||
eqeqeq: 1 | ||
func-call-spacing: 1 | ||
generator-star-spacing: [1, before] | ||
|
@@ -64,17 +71,13 @@ rules: | |
no-octal-escape: 2 | ||
no-return-assign: 1 | ||
no-self-compare: 1 | ||
|
||
# For compatibility with typescript-eslint | ||
no-shadow: 0 | ||
|
||
no-shadow: 1 | ||
no-tabs: 2 | ||
no-template-curly-in-string: 1 | ||
no-throw-literal: 2 | ||
no-trailing-spaces: 1 | ||
no-undefined: 1 | ||
no-unexpected-multiline: 1 | ||
no-unreachable: 1 | ||
no-unused-expressions: 1 | ||
|
||
# For compatibility with typescript-eslint | ||
|
@@ -115,16 +118,16 @@ rules: | |
yoda: 1 | ||
|
||
"@typescript-eslint/array-type": 1 | ||
"@typescript-eslint/dot-notation": 1 | ||
|
||
# In VS Code, this allows developers to manually specify | ||
# inferrable types so the distracting inline hints go away | ||
"@typescript-eslint/no-inferrable-types": 0 | ||
|
||
"@typescript-eslint/no-shadow": 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like a mistake. |
||
|
||
# https://github.com/typescript-eslint/typescript-eslint/issues/4912 | ||
"@typescript-eslint/no-unsafe-argument": 0 | ||
"@typescript-eslint/no-unsafe-assignment": 0 | ||
"@typescript-eslint/no-unsafe-member-access": 0 | ||
|
||
"@typescript-eslint/no-unused-vars": [1, { argsIgnorePattern: ^_, varsIgnorePattern: ^_ }] | ||
"@typescript-eslint/unbound-method": 0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/build/ | ||
/dist/ | ||
/examples/ | ||
/types/ | ||
/work/ |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really part of
recommended-type-checked
orstylistic-type-checked
?