Closed nicoschoenteich closed 2 years ago
just .02€: is it really worth any effort to support json
view types? they should go away asap anyway 😸
Good point, I won't be the one making the call here but I don't disagree 😉
just .02€: is it really worth any effort to support
json
view types? they should go away asap anyway 😸
I agree. With all the best practices / guidance out there what one should use or what would be best. And the generator trying to be part of this guiding force i.e. https://github.com/ui5-community/generator-ui5-project/issues/21. I don't think supporting every possible use-case, especially going against these "best practices", is a good thing. Could also be 'annoying' in regards to maintainability in the long run (maybe, possibly ... ^^).
On the other hand ... it's possible to use json
views and therefore part of UI5 ... so ... yeah, my .01€ 😅
@petermuessig What's your take on this? Should we remove JSON views altogether? Or should we keep supporting them? Or something in between?
The default should be the XMLView
s IMO.
But the error of lint can also be supressed by adding a command line option: https://eslint.org/docs/user-guide/command-line-interface#--no-error-on-unmatched-pattern
--no-error-on-unmatched-pattern
This is what I would suggest to fix immediately to add this parameter to the eslint execution and as a second step, the default should become XMLView
s and JSONView
s can be seen as optional.
Easy-Ui5 version:
Node.js: v16.9.1 yeoman-environment: 3.9.1 generator-easy-ui5: 3.2.1 home: /Users/i533499/Documents/coding/generator-easy-ui5 pluginsHome: /Users/i533499/Documents/coding/generator-easy-ui5/plugin-generators Available generators:
Steps to reproduce the problem:
yo easy-ui5 project
app
JSON
as view typeWhat is the expected result?
lint-fix
should run smoothly after installation.What happens instead?
This is related to @lboehm's PR a few weeks ago.
eslint
specifically looks forxml
. I guess we should look for a different pattern or make this dependent onoConfig.viewtype
.