You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if it's an issue or not but I am wandering whether it is ok when I receive eslint errors? I know I can disable those rules but just wanna hear any opinion regarding those issues. Whether they can be switched of, or there is another way to fix such issues (maybe by some wails settings to generate models.ts differently?)?
Maybe as a solution we could just simply add /wailsjs line into .eslintignore file (as a cli template)?
Error:
C:\Code\my_project\ui\wailsjs\go\models.ts
1:8 error ES2015 module syntax is preferred over namespaces @typescript-eslint/no-namespace
6:32 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
10:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
11:14 error Expected literal to be on the right side of === yoda
12:36 warning ["accountName"] is better written in dot notation dot-notation
12:36 warning Strings must use singlequote quotes
19:32 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
23:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
24:14 error Expected literal to be on the right side of === yoda
25:36 warning ["initialized"] is better written in dot notation dot-notation
25:36 warning Strings must use singlequote quotes
26:30 warning ["value"] is better written in dot notation dot-notation
26:30 warning Strings must use singlequote quotes
31:1 error Too many blank lines at the end of file. Max of 0 allowed no-multiple-empty-lines
✖ 14 problems (4 errors, 10 warnings)
3 errors and 6 warnings potentially fixable with the `--fix` option.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone.
Not sure if it's an issue or not but I am wandering whether it is ok when I receive eslint errors? I know I can disable those rules but just wanna hear any opinion regarding those issues. Whether they can be switched of, or there is another way to fix such issues (maybe by some wails settings to generate
models.ts
differently?)?Maybe as a solution we could just simply add
/wailsjs
line into.eslintignore
file (as a cli template)?the
models.ts
file itself:Beta Was this translation helpful? Give feedback.
All reactions