-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: rework properties describing functionality and refactor intern…
…als (#97) Co-authored-by: William Viker <[email protected]>
- Loading branch information
Showing
99 changed files
with
26,978 additions
and
42,643 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 |
---|---|---|
@@ -1,4 +1 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn run g:lint-staged | ||
lint-staged |
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 |
---|---|---|
@@ -1 +1,9 @@ | ||
"@sofie-automation/code-standard-preset/.prettierrc.json" | ||
{ | ||
"arrowParens": "always", | ||
"bracketSpacing": true, | ||
"printWidth": 120, | ||
"semi": false, | ||
"singleQuote": true, | ||
"useTabs": true, | ||
"endOfLine": "lf" | ||
} |
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,39 @@ | ||
import { generateEslintConfig } from '@companion-module/tools/eslint/config.mjs' | ||
|
||
const baseConfig = await generateEslintConfig({ | ||
enableTypescript: true, | ||
}) | ||
|
||
const customConfig = [ | ||
...baseConfig, | ||
|
||
{ | ||
files: ['**/*.ts', '**/*.tsx'], | ||
rules: { | ||
'@typescript-eslint/consistent-type-imports': 'error', | ||
}, | ||
}, | ||
|
||
{ | ||
files: ['**/examples/*.js', '**/*.cjs'], | ||
rules: { | ||
'@typescript-eslint/no-require-imports': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['**/__tests__/**/*', '**/examples/**/*'], | ||
rules: { | ||
'n/no-extraneous-require': 'off', | ||
'n/no-extraneous-import': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['packages/webhid-demo/src/**/*'], | ||
rules: { | ||
'@typescript-eslint/no-require-imports': 'off', | ||
'n/no-missing-import': 'off', | ||
}, | ||
}, | ||
] | ||
|
||
export default customConfig |
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 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 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 |
---|---|---|
|
@@ -52,6 +52,6 @@ | |
}, | ||
"dependencies": { | ||
"eventemitter3": "^4.0.7", | ||
"tslib": "^2.6.3" | ||
"tslib": "^2.7.0" | ||
} | ||
} |
Oops, something went wrong.