Skip to content

Alex-Jongman/FEP-action

Repository files navigation

ESLINT AXE Unit-Test Cypress

Git Action tryout

Playing around with GIT actions

Things I learned...

LF / LFCR Linting error

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.

require imports instead of imports

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.

prevent npm publishing

small fix... by adding "private": "true", to the package.json we prevent accidental publishing of the project on npm

ESLint error of devdependencies

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published