Shared base #1
@@ -0,0 +1,37 @@
|
||||
// @ts-check
|
||||
const { defineConfig } = require('eslint/config');
|
||||
const avalonBase = require('@avalon-vanguard/config/eslint');
|
||||
const avalonAngular = require('@avalon-vanguard/config/eslint/angular');
|
||||
|
||||
module.exports = defineConfig([
|
||||
{
|
||||
// Build, test and Playwright output (see .gitignore): ESLint does not read .gitignore.
|
||||
ignores: [
|
||||
'dist/**',
|
||||
'coverage/**',
|
||||
'.angular/**',
|
||||
'node_modules/**',
|
||||
'out-tsc/**',
|
||||
'tools/etl/.cache/**',
|
||||
'e2e/test-output/**',
|
||||
'test-results/**',
|
||||
'playwright-report/**',
|
||||
'blob-report/**',
|
||||
],
|
||||
},
|
||||
{
|
||||
files: ['**/*.ts'],
|
||||
extends: [avalonBase, avalonAngular.typescript],
|
||||
rules: {
|
||||
'@angular-eslint/directive-selector': [
|
||||
'error',
|
||||
{ type: 'attribute', prefix: 'app', style: 'camelCase' },
|
||||
],
|
||||
'@angular-eslint/component-selector': [
|
||||
'error',
|
||||
{ type: 'element', prefix: 'app', style: 'kebab-case' },
|
||||
],
|
||||
},
|
||||
},
|
||||
avalonAngular.templates,
|
||||
]);
|
||||
Generated
+1405
-67
File diff suppressed because it is too large
Load Diff
@@ -7,6 +7,7 @@
|
||||
"build": "ng build",
|
||||
"watch": "ng build --watch --configuration development",
|
||||
"test": "ng test",
|
||||
"lint": "eslint .",
|
||||
"etl": "tsx tools/etl/build.ts",
|
||||
"etl:typecheck": "tsc -p tools/etl/tsconfig.json --noEmit",
|
||||
"e2e": "playwright test",
|
||||
@@ -34,16 +35,20 @@
|
||||
"@angular/cli": "^22.0.6",
|
||||
"@angular/compiler-cli": "^22.0.0",
|
||||
"@avalon-vanguard/config": "^1.0.0",
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@playwright/test": "^1.61.1",
|
||||
"@tailwindcss/postcss": "^4.3.2",
|
||||
"@types/node": "^26.1.1",
|
||||
"@types/three": "^0.185.1",
|
||||
"angular-eslint": "^22.5.0",
|
||||
"eslint": "^10.10.0",
|
||||
"jsdom": "^28.0.0",
|
||||
"postcss": "^8.5.19",
|
||||
"prettier": "^3.8.1",
|
||||
"tailwindcss": "^4.3.2",
|
||||
"tsx": "^4.23.1",
|
||||
"typescript": "~6.0.2",
|
||||
"typescript-eslint": "^8.70.0",
|
||||
"vitest": "^4.0.8"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user