Skip to content

Commit

Permalink
feat(packages/eslint-config,packages/tsconfig): adds qwik configs
Browse files Browse the repository at this point in the history
  • Loading branch information
deopea-david committed Feb 18, 2023
1 parent 8d320e6 commit ff69388
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-config/browser.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { TSESLint } from "@typescript-eslint/utils";

const config: TSESLint.Linter.Config = {
extends: ["./index.js", "plugin:qwik/recommended"],
extends: ["./index.js"],
env: {
browser: true,
},
Expand Down
7 changes: 7 additions & 0 deletions packages/eslint-config/qwik.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { TSESLint } from "@typescript-eslint/utils";

const config: TSESLint.Linter.Config = {
extends: ["./node.js", "./browser.js", "plugin:qwik/recommended"],
};

export = config;
4 changes: 1 addition & 3 deletions packages/tsconfig/browser.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"extends": "./base.json",
"compilerOptions": {
"moduleResolution": "Node",
"lib": ["DOM", "DOM.Iterable", "WebWorker"],
"jsx": "react-jsx",
"jsxImportSource": "@builder.io/qwik"
"lib": ["DOM", "DOM.Iterable", "WebWorker"]
}
}
9 changes: 9 additions & 0 deletions packages/tsconfig/qwik.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Qwik",
"extends": ["./node.json", "./browser.json"],
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "@builder.io/qwik"
}
}

0 comments on commit ff69388

Please sign in to comment.