starters icon indicating copy to clipboard operation
starters copied to clipboard

fix(angular-standalone): update eslint

Open jcesarmobile opened this issue 8 months ago • 5 comments

eslint 9 changed the configuration files and .eslintrc.json no longer works.

I first removed all the eslint related packages, .eslintrc.json file and eslint entries from angular.json. Then ran ng add angular-eslint, which installs eslint-angular and related packages and configure the project with default angular configuration, creating a eslint.config.js and makes some automatic modifications to angular.json. Then I replaced the no-underscore-dangle rule since it no longer caused issues, but added @typescript-eslint/no-explicit-any as it complains about that now. Then removed tseslint.configs.stylistic config as it was causing lint errors about empty constructors. Finally added Page to valid component suffixes since it was causing a lint error that Pages weren't named Component.

I made all the steps as separate commits to see the process better, but should be squashed on merge

closes https://github.com/ionic-team/starters/issues/1860

jcesarmobile avatar Feb 14 '25 14:02 jcesarmobile