Skip to content

Commit

Permalink
more conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Feb 11, 2025
1 parent 098d99e commit cbe1032
Show file tree
Hide file tree
Showing 78 changed files with 916 additions and 917 deletions.
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/Bug_report.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: 'Bug report'
about: 'Create a report to help us improve'
labels: 'Bug :bug:'
name: "Bug report"
about: "Create a report to help us improve"
labels: "Bug :bug:"
---

## Bug Description
Expand Down
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/Enhancement.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: 'Enhancement'
about: 'Suggest a new idea or improvement for Vega-Lite'
labels: 'Enhancement :tada:'
name: "Enhancement"
about: "Suggest a new idea or improvement for Vega-Lite"
labels: "Enhancement :tada:"
---

## Enhancement Description
Expand Down
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
version: 2
updates:
- package-ecosystem: npm
directory: '/'
directory: "/"
schedule:
interval: monthly
ignore:
- dependency-name: 'vega'
- dependency-name: "vega"
- package-ecosystem: bundler
directory: '/site'
directory: "/site"
schedule:
interval: monthly
- package-ecosystem: github-actions
directory: '/'
directory: "/"
schedule:
interval: monthly
2 changes: 1 addition & 1 deletion .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Lint PR'
name: "Lint PR"

on:
pull_request_target:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/check-toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_dispatch:
push:
paths:
- 'site/**'
- 'scripts/**'
- '.github/workflows/**'
- "site/**"
- "scripts/**"
- ".github/workflows/**"

jobs:
toc:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: 'yarn'
cache: "yarn"
node-version: 20

- name: Install Node dependencies
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
ruby-version: "3.3"

- name: Setup data
run: yarn data
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: 'yarn'
cache: "yarn"
node-version: 20

- name: Install Node dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/merge-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Auto-merge Dependabot PRs
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *'
- cron: "0 * * * *"

jobs:
auto_merge:
Expand All @@ -15,5 +15,5 @@ jobs:
- uses: akheron/dependabot-cron-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
auto-merge: 'minor'
merge-method: 'squash'
auto-merge: "minor"
merge-method: "squash"
6 changes: 3 additions & 3 deletions .github/workflows/release-docs-and-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: 'yarn'
cache: "yarn"
node-version: 20

- name: Install Node dependencies
Expand Down Expand Up @@ -61,7 +61,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: 'yarn'
cache: "yarn"
node-version: 20

- name: Setup Pages
Expand All @@ -81,7 +81,7 @@ jobs:

- uses: actions/upload-pages-artifact@v3
with:
path: './_site'
path: "./_site"

deploy:
name: Deploy Site
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
workflow_dispatch:
pull_request:
paths:
- 'site/**'
- 'yarn.lock'
- '**prettier**'
- "site/**"
- "yarn.lock"
- "**prettier**"

jobs:
build-site:
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: 'yarn'
cache: "yarn"
node-version: 20

- name: Install Node dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: 'yarn'
cache: "yarn"
node-version: 20

- name: Install Node dependencies
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: 'yarn'
cache: "yarn"
node-version: 20

- name: Install Node dependencies
Expand Down Expand Up @@ -87,7 +87,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
cache: 'yarn'
cache: "yarn"
node-version: 20

- name: Install Node dependencies
Expand Down
30 changes: 15 additions & 15 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,33 @@ delete globals.browser['AudioWorkletGlobalScope '];
*/
export default [
{
ignores: ['build/**', 'coverage/**'],
ignores: ['build/**', 'coverage/**']
},
eslint.configs.recommended,
...tseslint.configs.recommendedTypeChecked,
{
languageOptions: {
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: import.meta.dirname,
},
},
tsconfigRootDir: import.meta.dirname
}
}
},
{
files: ['src/**/*.ts'],
plugins: {
vitest,
vitest
},
languageOptions: {
parser: tsParser,
globals: {
...globals.browser,
},
...globals.browser
}
},
settings: {
vitest: {
typecheck: true,
},
typecheck: true
}
},
rules: {
...vitest.configs.recommended.rules,
Expand All @@ -54,8 +54,8 @@ export default [
{
vars: 'all',
args: 'after-used',
ignoreRestSiblings: true,
},
ignoreRestSiblings: true
}
],
'@typescript-eslint/no-shadow': 'error',
'@typescript-eslint/no-unsafe-member-access': 'warn',
Expand All @@ -81,12 +81,12 @@ export default [
'prefer-template': 'error',
'no-unused-vars': 'off',
// "no-undef": "off", // typescript takes care of this for us
'no-unreachable': 'off', // typescript takes care of this for us
},
'no-unreachable': 'off' // typescript takes care of this for us
}
},
prettierConfig,
{
files: ['**/*.js'],
...tseslint.configs.disableTypeChecked,
},
...tseslint.configs.disableTypeChecked
}
];
9 changes: 4 additions & 5 deletions prettier.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ const config = {
options: {
bracketSpacing: false,
singleQuote: true,
arrowParens: 'avoid',
trailingComma: 'none',
},
},
],
trailingComma: 'all'
}
}
]
};

export default config;
4 changes: 2 additions & 2 deletions site/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ description:

Vega-Lite specifications consist of simple mappings of variables in a data set to visual encoding channels such as x, y, color, and size. These mappings are then translated into detailed visualization specifications in the form of Vega specification language. Vega-Lite produces default values for visualization components (e.g., scales, axes, and legends) in the output Vega specification using a rule-based approach, but users can explicit specify these properties to override default values.

baseurl: '/vega-lite' # the subpath of your site, e.g. /blog/
url: 'https://vega.github.io' # the base hostname & protocol for your site
baseurl: "/vega-lite" # the subpath of your site, e.g. /blog/
url: "https://vega.github.io" # the base hostname & protocol for your site
twitter:
username: vega_vis
exclude:
Expand Down
Loading

0 comments on commit cbe1032

Please sign in to comment.