Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.52 KB

readme.md

File metadata and controls

40 lines (27 loc) · 1.52 KB

Linting

The codebase uses ESLint to lint files.

If ESLint rules are not respected, the main GitHub workflow will fail during Run ESLint step.

If you want to keep ESLint, check How to use ESLint. Otherwise see How to remove ESLint.

How to use ESLint

The ESLint configuration can be found in .eslintrc.cjs.

It is recommended to install and use vscode-eslint to have ESLint integrated in VSCode.

To execute ESLint on all files use the following command: npm run eslint

> npm run eslint

/Users/d.maillard/dev/jsenv/jsenv-template-pwa/test/greet.test.html
  12:16  error  asert not found in '@jsenv/assert'  import/named
  12:16  error  'asert' is defined but never used   no-unused-vars
  18:7   error  'assert' is not defined             no-undef

✖ 3 problems (3 errors, 0 warnings)

How to remove ESLint

  1. Remove "Run ESLint" step in .github/workflows/main.yml

  2. Remove "eslint" from "scripts" in package.json

  3. Delete .eslintrc.cjs

  4. Delete .eslintignore

  5. Remove these "devDependencies" in package.json

    • "@jsenv/eslint-config"
    • "@jsenv/eslint-import-resolver"
    • "eslint-plugin-import"
    • "eslint-plugin-html"
    • "eslint"