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
We used SPA template for https://github.com/strvcom/strv-admin-web, at the beginning we dealt with a few issues or not completed configuration. I wrote small guideline which may help others to use it.
Before creating PR I would like to discuss what you consider as mandatory and other aspects.
Here is the list of changes in SPA project itself:
tasks in package.json
eslint
missing task for run eslint/lint
after checking eslint, several warnings/errors appeared, mainly that some Definition for rule was not found:
solved adding eslint-plugin-import package
edited file registerServiceWorker to have export default at the end of file
Module build failed: ReferenceError: Unknown plugin "flow" specified in "/home/paave/WebstormProjects/create-strv-app/test/.babelrc" at 0, attempted to resolve relative to "/home/paave/WebstormProjects/create-strv-app/test"
at Array.map (<anonymous>)
missing .flowconfig file
relative paths - module resolving
had to add babel-plugin-module-resolver and eslint-import-resolver-babel-module
added file .env with NODE_PATH='src'
in .flowconfigoptions section added module.system.node.resolve_dirname=./src module.system.node.resolve_dirname=node_modules
We used SPA template for https://github.com/strvcom/strv-admin-web, at the beginning we dealt with a few issues or not completed configuration. I wrote small guideline which may help others to use it.
Before creating PR I would like to discuss what you consider as mandatory and other aspects.
Here is the list of changes in SPA project itself:
tasks in package.json
eslint
missing task for run eslint/lint
after checking eslint, several warnings/errors appeared, mainly that some
Definition for rule
was not found:eslint-plugin-import
package.eslintrc
react/prefer-stateless-function
and also contains classNames through styled-components optionflow
.flowconfig
filerelative paths - module resolving
babel-plugin-module-resolver
andeslint-import-resolver-babel-module
.env
withNODE_PATH='src'
.flowconfig
options section addedmodule.system.node.resolve_dirname=./src module.system.node.resolve_dirname=node_modules
.eslintrc
:Worth considering
// @flow
comment: credit to @koss-lebedevlast but not least
.editorconfig
The text was updated successfully, but these errors were encountered: