Skip to content

Commit

Permalink
chore(deps): bump deps & run prettier (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Nov 1, 2023
1 parent e2b29bc commit 70c7ae7
Show file tree
Hide file tree
Showing 51 changed files with 9,114 additions and 13,782 deletions.
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

[*.{js,ts}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
54 changes: 20 additions & 34 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,51 +1,37 @@
module.exports = {
"env": {
"browser": true,
"es2021": true,
"node": true
env: {
browser: true,
es2021: true,
node: true,
},
"extends": [
extends: [
"eslint:recommended",
"prettier",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
"plugin:import/typescript",
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 2021,
sourceType: "module",
},
"plugins": [
"@typescript-eslint"
],
"ignorePatterns": ["src/parser/grammar.ts"],
"rules": {
plugins: ["@typescript-eslint"],
ignorePatterns: ["src/parser/grammar.ts"],
rules: {
"no-case-declarations": "off",
"linebreak-style": [
"error",
"unix"
],
"linebreak-style": ["error", "unix"],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "warn",
"quotes": [
"error",
"double"
],
"semi": [
"error",
"always"
],
quotes: ["error", "double"],
semi: ["error", "always"],
"max-len": [
"warn",
{
"code": 120
}
code: 120,
},
],
"object-curly-spacing": [
"error",
"always"
]
}
"object-curly-spacing": ["error", "always"],
},
};
8 changes: 4 additions & 4 deletions .github/actions/upload-artifact/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ runs:
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # 3.7.0
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
scope: '@openfga'
registry-url: "https://registry.npmjs.org"
scope: "@openfga"
always-auth: false
cache: 'npm'
cache: "npm"
cache-dependency-path: ./package-lock.json
- run: npm ci
shell: bash
Expand All @@ -29,4 +29,4 @@ runs:
if-no-files-found: error
- id: upload-vsix
run: echo "location=./openfga-latest.vsix" >> $GITHUB_OUTPUT
shell: bash
shell: bash
13 changes: 9 additions & 4 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ updates:
schedule:
interval: "weekly"
groups:
dependencies:
dependencies:
patterns:
- "*"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
groups:
dependencies:
patterns:
- "*"
allow:
- dependency-type: "production"

12 changes: 6 additions & 6 deletions .github/workflows/dryrun-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # 3.7.0
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # 4.0.0
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
scope: '@openfga'
registry-url: "https://registry.npmjs.org"
scope: "@openfga"
always-auth: false
cache: 'npm'
cache: "npm"
cache-dependency-path: ./package-lock.json
- run: npm ci
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@dfe4f6ad46624424fe24cb5bca79839183399045 # 1.4.0
with:
pat: "this_is_a_stub"
registryUrl: https://marketplace.visualstudio.com/
dryRun: true
dryRun: true
74 changes: 37 additions & 37 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,28 @@ on:
pull_request:
push:
branches:
- main
- main

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # 3.7.0
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
scope: '@openfga'
always-auth: false
cache: 'npm'
cache-dependency-path: ./package-lock.json
- run: npm install
- run: npm run lint -- --ignore-path .galintignore
- run: npm audit
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # 4.0.0
with:
node-version: 20.x
registry-url: "https://registry.npmjs.org"
scope: "@openfga"
always-auth: false
cache: "npm"
cache-dependency-path: ./package-lock.json
- run: npm install
- run: npm run lint -- --ignore-path .galintignore
- run: npm audit

build:
needs: lint
Expand All @@ -35,23 +35,23 @@ jobs:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # 3.7.0
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
scope: '@openfga'
always-auth: false
cache: 'npm'
cache-dependency-path: ./package-lock.json
- run: npm install
- run: npx playwright install
- run: npm run compile
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # 4.0.0
with:
node-version: 20.x
registry-url: "https://registry.npmjs.org"
scope: "@openfga"
always-auth: false
cache: "npm"
cache-dependency-path: ./package-lock.json
- run: npm install
- run: npx playwright install
- run: npm run compile
- run: xvfb-run -a npm test
if: runner.os == 'Linux'
- run: npm test
if: runner.os != 'Linux'
12 changes: 6 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@e33196f7422957bea03ed53f6fbb155025ffc7b8 # 3.7.0
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # 4.0.0
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
scope: '@openfga'
registry-url: "https://registry.npmjs.org"
scope: "@openfga"
always-auth: false
cache: 'npm'
cache: "npm"
cache-dependency-path: ./package-lock.json
- run: npm ci
- name: Publish to Open VSX Registry
Expand Down Expand Up @@ -57,4 +57,4 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ steps.upload-artifact.outputs.location }}
tag: ${{ github.ref }}
overwrite: true
overwrite: true
15 changes: 7 additions & 8 deletions .github/workflows/semgrep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ jobs:
image: returntocorp/semgrep@sha256:742b87f61e36652e031337c2cdb03c9954a73657dac76206de1444eac3893e92 # 1.34.1
if: (github.actor != 'dependabot[bot]' && github.actor != 'snyk-bot')
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0

- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0

- run: semgrep ci
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
- run: semgrep ci
env:
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
2 changes: 2 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"singleQuote": false,
"trailingComma": "all",
"tabWidth": 2,
"bracketSpacing": true,
"printWidth": 120
}
11 changes: 5 additions & 6 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
]
}
// List of extensions which should be recommended for users of this workspace.
"recommendations": []
}
Loading

0 comments on commit 70c7ae7

Please sign in to comment.