Global variables in Javascript and ESLint
I don’t think hacking ESLint rules per file is a great idea. You should rather define globals in .eslintrc or package.json. For .eslintrc: “globals”: { “angular”: true } For package.json: “eslintConfig”: { “globals”: { “angular”: true } } Check https://eslint.org/docs/user-guide/configuring/language-options#specifying-globals