Skip to content

Commit

Permalink
add a bunch of angular linting stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
RChandler234 committed Dec 15, 2024
1 parent 707eb89 commit e674a9e
Show file tree
Hide file tree
Showing 5 changed files with 3,164 additions and 5,603 deletions.
67 changes: 0 additions & 67 deletions angular-client/.eslintrc.js

This file was deleted.

100 changes: 100 additions & 0 deletions angular-client/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"root": true,
"ignorePatterns": [
"projects/**/*",
"**/.github/**",
"build",
"coverage",
"docs",
"lambda",
"node_modules",
"public",
"lib",
"dist",
"generated"
],
"overrides": [
{
"files": [
"*.ts"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@angular-eslint/recommended",
"plugin:@angular-eslint/template/process-inline-templates"
],
"rules": {
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "app",
"style": "camelCase"
}
],
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "app",
"style": "kebab-case"
}
],
"guard-for-in": "error",
"prefer-arrow-callback": "error",
"no-unsafe-negation": [
"error",
{
"enforceForOrderingRelations": true
}
],
"no-unsafe-optional-chaining": [
"error",
{
"disallowArithmeticOperators": true
}
],
"eqeqeq": "error",
"no-else-return": "error",
"no-lonely-if": "error",
"no-throw-literal": "error",
"prefer-promise-reject-errors": "error",
"no-unneeded-ternary": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-const": "error",
"prefer-destructuring": [
"error",
{
"VariableDeclarator": {
"array": true,
"object": true
},
"AssignmentExpression": {
"array": true,
"object": true
}
},
{
"enforceForRenamedProperties": false
}
],
"prefer-exponentiation-operator": "error",
"prefer-object-spread": "error",
"prefer-rest-params": "error",
"prefer-spread": "error"
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended",
"plugin:@angular-eslint/template/accessibility"
],
"rules": {}
}
]
}
38 changes: 32 additions & 6 deletions angular-client/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,14 @@
"base": "dist/angular-client"
},
"index": "src/index.html",
"polyfills": ["zone.js"],
"polyfills": [
"zone.js"
],
"tsConfig": "tsconfig.app.json",
"assets": ["src/favicon.ico", "src/assets"],
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.css",
"node_modules/primeng/resources/themes/lara-light-blue/theme.css",
Expand Down Expand Up @@ -76,17 +81,38 @@
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"polyfills": ["zone.js", "zone.js/testing"],
"polyfills": [
"zone.js",
"zone.js/testing"
],
"tsConfig": "tsconfig.spec.json",
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["@angular/material/prebuilt-themes/deeppurple-amber.css", "src/styles.css"],
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"@angular/material/prebuilt-themes/deeppurple-amber.css",
"src/styles.css"
],
"scripts": []
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"src/**/*.ts",
"src/**/*.html"
]
}
}
}
}
},
"cli": {
"analytics": "21a1f8c6-2f5d-46e0-8ef6-df03c0607381"
"analytics": "21a1f8c6-2f5d-46e0-8ef6-df03c0607381",
"schematicCollections": [
"@angular-eslint/schematics"
]
}
}
Loading

0 comments on commit e674a9e

Please sign in to comment.