-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
this change is to follow what homebridge repo is using
- Loading branch information
1 parent
29a1e48
commit 53178c1
Showing
10 changed files
with
65 additions
and
214 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ node_modules | |
.idea | ||
.DS_Store | ||
.env | ||
coverage | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,3 +10,4 @@ node_modules | |
.prettierrc | ||
jest.config.js | ||
tsconfig.json | ||
coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu({ | ||
ignores: ['dist', 'docs'], | ||
rules: { | ||
'new-cap': 'off', | ||
'import/extensions': ['error', 'ignorePackages'], | ||
'import/order': 'off', | ||
'jsdoc/check-alignment': 'error', | ||
'jsdoc/check-line-alignment': 'error', | ||
'no-undef': 'error', | ||
'perfectionist/sort-exports': 'error', | ||
'perfectionist/sort-named-exports': 'error', | ||
'perfectionist/sort-named-imports': 'error', | ||
'quotes': ['error', 'single'], | ||
'sort-imports': 'off', | ||
'style/brace-style': ['error', '1tbs'], | ||
'style/quote-props': ['error', 'consistent-as-needed'], | ||
'test/no-only-tests': 'error', | ||
'unicorn/no-useless-spread': 'error', | ||
'unused-imports/no-unused-vars': ['error', { caughtErrors: 'none' }], | ||
}, | ||
typescript: true, | ||
formatters: { | ||
markdown: true, | ||
}, | ||
}) |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const env = { | ||
jest: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// vite.config.ts | ||
import { defineConfig } from 'vitest/config' | ||
|
||
export default defineConfig({ | ||
test: { | ||
coverage: { | ||
include: ['src/**'], | ||
}, | ||
pool: 'threads', | ||
testTimeout: 10000, | ||
}, | ||
}) |