-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Update dependencies, adopt latest build process
- Loading branch information
1 parent
5ad5351
commit 8c73edc
Showing
19 changed files
with
6,990 additions
and
4,937 deletions.
There are no files selected for viewing
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 @@ | ||
THINGWORX_SERVER=http://localhost:8015 | ||
THINGWORX_USER=Administrator | ||
THINGWORX_PASSWORD=Administrator12345 |
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,78 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', // Specifies the ESLint parser | ||
extends: [ | ||
'plugin:prettier/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin | ||
'plugin:@typescript-eslint/recommended-type-checked', | ||
'plugin:@typescript-eslint/stylistic-type-checked', | ||
], | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true, // Allows for the parsing of JSX | ||
}, | ||
project: true, | ||
tsconfigRootDir: __dirname, | ||
}, | ||
plugins: ['prettier', '@typescript-eslint'], | ||
rules: { | ||
'@typescript-eslint/dot-notation': 'off', | ||
'@typescript-eslint/no-unsafe-member-access': 'warn', | ||
'@typescript-eslint/no-unsafe-return': 'warn', | ||
'@typescript-eslint/no-unsafe-assignment': 'warn', | ||
'@typescript-eslint/no-unsafe-call': 'error', | ||
'@typescript-eslint/no-unsafe-argument': 'warn', | ||
'@typescript-eslint/no-explicit-any': 'warn', | ||
'@typescript-eslint/no-non-null-asserted-optional-chain': 'warn', | ||
'@typescript-eslint/prefer-nullish-coalescing': 'off', | ||
'@typescript-eslint/no-floating-promises': 'off', | ||
'@typescript-eslint/consistent-type-definitions': 'off', | ||
'@typescript-eslint/class-literal-property-style': 'off', | ||
'@typescript-eslint/no-misused-promises': [ | ||
'error', | ||
{ | ||
checksVoidReturn: false, | ||
}, | ||
], | ||
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_', | ||
caughtErrorsIgnorePattern: '^_', | ||
}, | ||
], | ||
// Deactivated because it also disables the use of readonly T[] over ReadonlyArray<T> | ||
// and readonly T[] can be confusing (is T or the array readonly) | ||
'@typescript-eslint/array-type': 'off', | ||
|
||
// Disabled because this defeats one the purposes of template expressions, to make it easy to | ||
// log values which may be incorrect or mistyped | ||
'@typescript-eslint/restrict-template-expressions': 'off', | ||
|
||
// Disabled because this prevents passing around unbound functions in all cases, even when they | ||
// don't reference this in the implementation at all and the workaround of specifying this: void | ||
// as the first argument is very awkward | ||
'@typescript-eslint/unbound-method': 'off', | ||
}, | ||
overrides: [ | ||
{ | ||
// enable the rule specifically for TypeScript files | ||
files: ['*.ts', '*.tsx'], | ||
rules: { | ||
'@typescript-eslint/explicit-function-return-type': [ | ||
'warn', | ||
{ allowExpressions: true }, | ||
], | ||
'@typescript-eslint/no-var-requires': ['error'], | ||
}, | ||
}, | ||
], | ||
settings: { | ||
react: { | ||
version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use | ||
}, | ||
}, | ||
ignorePatterns: '.eslintrc.cjs', | ||
}; |
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 |
---|---|---|
|
@@ -4,3 +4,6 @@ ui | |
.gradle | ||
build | ||
zip | ||
.idea/ | ||
.vscode/ | ||
.env |
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,7 @@ | ||
{ | ||
"semi": true, | ||
"trailingComma": "all", | ||
"singleQuote": true, | ||
"printWidth": 100, | ||
"tabWidth": 4 | ||
} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
declare module '*.jpg' { | ||
const content: string; | ||
export default content; | ||
} | ||
|
||
declare module '*.png' { | ||
const content: string; | ||
export default content; | ||
} | ||
|
||
declare module '*.json' { | ||
const content: string; | ||
export default content; | ||
} | ||
|
||
declare module '*.svg' { | ||
const content: string; | ||
export default content; | ||
} | ||
|
||
declare module '*.css' { | ||
const content: string; | ||
export default content; | ||
} |
Oops, something went wrong.