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
I am getting this error using the shell in combination with a custom ESLint configuration.
varl@veronika:~/dev/dhis2/apps/usage-analytics$ yarn start
yarn run v1.21.1
$ d2-app-scripts start
Generating internationalization strings...
No i18n updates found!
Bootstrapping local appShell...
Copying appShell to temporary directory...
Building app usage-analytics-app...
Starting development server...
The app usage-analytics-app is now available on port 3000
Error: ESLint configuration in .eslintrc.js is invalid:
- Property "extends" is the wrong type (expected string but got `[{"extends":["/home/varl/dev/dhis2/apps/usage-analytics/node_modules/@dhis2/cli-style/config/js/eslint-react.config.js"]}]`).
- Property "extends[0]" is the wrong type (expected string but got `{"extends":["/home/varl/dev/dhis2/apps/usage-analytics/node_modules/@dhis2/cli-style/config/js/eslint-react.config.js"]}`).
- "extends" should match exactly one schema in oneOf. Value: [{"extends":["/home/varl/dev/dhis2/apps/usage-analytics/node_modules/@dhis2/cli-style/config/js/eslint-react.config.js"]}].
at validateConfigSchema (/home/varl/dev/dhis2/apps/usage-analytics/node_modules/eslint/lib/shared/config-validator.js:286:15)
[...]
error Command failed with exit code 1.
[ERROR] Start script exited with non-zero exit code
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I am getting this error using the shell in combination with a custom ESLint configuration.
The problem is this line: https://github.com/dhis2/app-platform/blob/master/shell/.eslintrc.js#L8
If changed to:
It correctly extends the configuration. ESLint does the
require
part internally.Reference: https://eslint.org/docs/developer-guide/shareable-configs
The text was updated successfully, but these errors were encountered: