open-scd icon indicating copy to clipboard operation
open-scd copied to clipboard

Update and fix Linting

Open clepski opened this issue 1 year ago • 1 comments

Problem

Currently the lint command does not work and the ESLint version 7 and config format are outdated and deprecated.

TypeError: Failed to load plugin '@typescript-eslint' declared in '.eslintrc.cjs': Class extends value undefined is not a constructor or null
Referenced from: /Users/christopherlepski/open-scd/packages/openscd/.eslintrc.cjs

Proposed improvements

  • Remove prettier
  • Remove Husky precommit hook
  • Update ESLint to v9.x and replace deprecated .eslintrc config with eslint.config
  • Use Nx Workspaces to share eslint.config between packages and have a single lint command to scan all packages
  • Add Lint github action and trigger for PRs

clepski avatar Feb 20 '25 13:02 clepski

is related to #1366

Sander3003 avatar Mar 12 '25 12:03 Sander3003