Playing around with GIT actions
To solve the LFCR linting errors add a .gitattributes
file to the root with the content:
*.js eol=lf
*.json eol=lf
See https://dev.to/deadlybyte/please-add-gitattributes-to-your-git-repository-1jld, eslint linebreak-style rule and https://git-scm.com/docs/gitattributes for more info.
By adding
"type": "module",
to the package.json
we indicate that this project uses modules and therefore the IDE will use the import statement instead of the require statement.
small fix... by adding "private": "true",
to the package.json
we prevent accidental publishing of the project on npm
Witin the vite.config.js file an import triggers ESLint to complain that the import is depended on a devdependency library. By adding this rule
"rules": {
"import/no-extraneous-dependencies": ["error", {"devDependencies": true}]
}
to .eslintrc.json
the problem is fixed.