@coara/eslint-config-ng v2.1.0
@coara/eslint-config-ng
This package has been updated to work with Angular v19.
Installation
$ npm i -D @coara/eslint-config-ngUsage
Run Angular ESLint:
ng add angular-eslintInstall
@coara/eslint-config-ng:npm i -D @coara/eslint-config-ngReplace the file content and configure the parser's relative path:
// eslint.config.js import createEslintConfig from "@coara/eslint-config-ng"; import { dirname } from "path"; import { fileURLToPath } from "url"; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); export default createEslintConfig({ project: "./tsconfig.json", tsconfigRootDir: __dirname, });Add module compatibility:
// package.json { "type": "module" }Recommended: Install Prettier:
npm install prettier --save-devRecommended: Configure Prettier with the print width option:
// prettier.config.js export default { printWidth: 120, };Optional: For VSCode auto formatting, linter fixes, and differentiating linter from TypeScript errors:
// .vscode/settings.json { "editor.defaultFormatter": "esbenp.prettier-vscode", "eslint.rules.customizations": [{ "rule": "*", "severity": "warn" }], "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "eslint.useFlatConfig": true, "editor.formatOnSave": true }
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
7 months ago
10 months ago
10 months ago
9 months ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago