Skip to content

Commit

Permalink
Enables linting for typescript, a few bug fixes (OpenStickCommunity#653)
Browse files Browse the repository at this point in the history
* Make the lint test also run on typescript files

* Remove non-existing tags from cn flag

* Format DE flag to use same indentation as .editorconfig

* Now shows lint errors for ts/tsx files when running 'npm run lint'

* Type should any object not "any non-nullish value"

* Chinese flag now rendering correctly

* Remove unused variables

* export getPinMapping

* Remove unused imports and variables

* Format inputMacroAddonPage to not mix tabs and space, adhere to .editorconfig + prettier

* Remove unused imports

* Remove unused variables in displayConfig

* Format homePage, fixed to now shows download button and latest

* Remove unused variables in inputMacroAddonPage

* Format I2CAnalog addon and remove unused variables and lint errors

* Fix console errors by setting correct tags in pt flag
  • Loading branch information
Pelsin authored Dec 7, 2023
1 parent 500fc6e commit 28efc6c
Show file tree
Hide file tree
Showing 16 changed files with 931 additions and 351 deletions.
2 changes: 2 additions & 0 deletions www/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ env:
node: true
browser: true
es2021: true
parser: "@typescript-eslint/parser"
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
- plugin:react/recommended
- plugin:react-hooks/recommended
- plugin:i18next/recommended
Expand Down
Loading

0 comments on commit 28efc6c

Please sign in to comment.