Skip to content

Commit 6a114f4

Browse files
committed
chore: add playground
1 parent 5cdecc7 commit 6a114f4

10 files changed

Lines changed: 464 additions & 16 deletions

eslint-inspector.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import zotero from "./src/index.js";
1+
import zotero from "@zotero-plugin/eslint-config";
22

33
export default zotero();

playground/assets/manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"name": "test-plugin"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import zotero from "../src/index";
2+
3+
export default zotero();

playground/eslint.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import zotero from "@zotero-plugin/eslint-config";
2+
3+
export default zotero();

playground/package.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "@zotero-plugin/eslint-config-playground",
3+
"private": true,
4+
"scripts": {
5+
"inspector": "eslint-config-inspector --config eslint-inspector.config.ts"
6+
},
7+
"devDependencies": {
8+
"@types/chai": "^5.2.2",
9+
"@types/mocha": "^10.0.10",
10+
"@zotero-plugin/eslint-config": "workspace:^",
11+
"chai": "^5.2.0",
12+
"mocha": "^11.6.0"
13+
}
14+
}

playground/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function main() {
2+
//
3+
}
4+
5+
main();

playground/tests/index.test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { expect } from "chai";
2+
import { it } from "mocha";
3+
4+
it("should pass", () => {
5+
expect(1 + 1).toBe(2);
6+
});

playground/tests/typings.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import type * as chai from "chai";
2+
3+
declare global {
4+
const expect: typeof chai.expect;
5+
const assert: typeof chai.assert;
6+
}

pnpm-lock.yaml

Lines changed: 419 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
packages:
2+
- src
3+
- "!**/dist/**"
4+
- playground

0 commit comments

Comments
 (0)