Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Schema files
specs/**
docs/public/specs/**
docs/public/schema/**
packages/vgplot/spec/dist/mosaic-schema.json

7 changes: 7 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"printWidth": 100,
"arrowParens": "avoid"
}
3 changes: 2 additions & 1 deletion bin/publish-schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { copyFile, readFile, symlink, unlink } from 'node:fs/promises';
async function link(schemaFile, linkFile) {
try {
await unlink(linkFile);
} catch (err) { // eslint-disable-line @typescript-eslint/no-unused-vars
// eslint-disable-next-line
} catch (err) { // @typescript-eslint/no-unused-vars
// file may not have existed
}
await symlink(schemaFile, linkFile);
Expand Down
4 changes: 3 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import js from '@eslint/js';
import tseslint from 'typescript-eslint';
import globals from 'globals';
import eslintConfigPrettier from 'eslint-config-prettier/flat';

/** @type {import('@types/eslint').Linter.Config[]} */
export default tseslint.config(
Expand All @@ -27,5 +28,6 @@ export default tseslint.config(
"@typescript-eslint/no-this-alias": "warn",
"@typescript-eslint/ban-ts-comment": "warn"
},
}
},
eslintConfigPrettier
);
Loading