-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
52,622 additions
and
4,436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,179 @@ | ||
// eslint.config.js | ||
const angularEslintRecommended = require('@angular-eslint/eslint-plugin').configs.recommended; | ||
const angularTemplateProcessInlineTemplates = require('@angular-eslint/eslint-plugin-template').configs['process-inline-templates']; | ||
const prettierConfig = require('eslint-config-prettier'); | ||
|
||
// eslint.config.js | ||
module.exports = [ | ||
{ | ||
ignores: ["projects/**/*"], // Optional: ignore specific folders | ||
}, | ||
{ | ||
files: ["src/**/*.ts"], // Specify the source folder explicitly | ||
languageOptions: { | ||
parser: require("@typescript-eslint/parser"), // Correct parser import | ||
parserOptions: { | ||
project: ['tsconfig.json'], | ||
createDefaultProgram: true, | ||
}, | ||
}, | ||
plugins: { | ||
"@typescript-eslint": require("@typescript-eslint/eslint-plugin"), | ||
"import": require("eslint-plugin-import"), | ||
"@angular-eslint": require("@angular-eslint/eslint-plugin"), | ||
}, | ||
rules: { | ||
...angularEslintRecommended.rules, | ||
...angularTemplateProcessInlineTemplates.rules, | ||
...prettierConfig.rules, | ||
'@angular-eslint/component-class-suffix': [ | ||
'warn', | ||
{ | ||
suffixes: ['Page', 'Component','Container'], | ||
}, | ||
], | ||
// '@angular-eslint/component-selector': [ | ||
// 'warn', | ||
// { | ||
// type: 'element', | ||
// prefix: 'app', | ||
// style: 'kebab-case', | ||
// }, | ||
// ], | ||
// '@angular-eslint/directive-selector': [ | ||
// 'warn', | ||
// { | ||
// type: 'attribute', | ||
// prefix: 'app', | ||
// style: 'camelCase', | ||
// }, | ||
// ], | ||
// TO EXPENSIVE | ||
// '@typescript-eslint/member-ordering': [ | ||
// 'warn', | ||
// { | ||
// default: [ | ||
// 'signature', | ||
// 'call-signature', | ||
|
||
// 'public-static-field', | ||
// 'protected-static-field', | ||
// 'private-static-field', | ||
// '#private-static-field', | ||
|
||
// 'public-decorated-field', | ||
// 'protected-decorated-field', | ||
// 'private-decorated-field', | ||
|
||
// 'public-instance-field', | ||
// 'protected-instance-field', | ||
// 'private-instance-field', | ||
// '#private-instance-field', | ||
|
||
// 'public-abstract-field', | ||
// 'protected-abstract-field', | ||
|
||
// 'public-field', | ||
// 'protected-field', | ||
// 'private-field', | ||
// '#private-field', | ||
|
||
// 'static-field', | ||
// 'instance-field', | ||
// 'abstract-field', | ||
|
||
// 'decorated-field', | ||
|
||
// 'field', | ||
|
||
// 'static-initialization', | ||
|
||
// 'public-constructor', | ||
// 'protected-constructor', | ||
// 'private-constructor', | ||
|
||
// 'constructor', | ||
// 'public-static-method', | ||
// 'protected-static-method', | ||
// 'private-static-method', | ||
// '#private-static-method', | ||
|
||
// 'public-decorated-method', | ||
// 'protected-decorated-method', | ||
// 'private-decorated-method', | ||
|
||
// 'public-instance-method', | ||
// 'protected-instance-method', | ||
// 'private-instance-method', | ||
// '#private-instance-method', | ||
|
||
// 'public-abstract-method', | ||
// 'protected-abstract-method', | ||
|
||
// 'public-method', | ||
// 'protected-method', | ||
// 'private-method', | ||
// '#private-method', | ||
|
||
// 'static-method', | ||
// 'instance-method', | ||
// 'abstract-method', | ||
|
||
// 'decorated-method', | ||
|
||
// 'method', | ||
// ], | ||
// }, | ||
// ], | ||
// '@typescript-eslint/explicit-function-return-type': 0, | ||
// 'no-void': 'error', | ||
"no-unused-vars": "warn", | ||
"import/order": [ | ||
"warn", | ||
{ | ||
"newlines-between": "always", | ||
"alphabetize": { | ||
"order": "asc", | ||
"caseInsensitive": true | ||
} | ||
} | ||
], | ||
'@typescript-eslint/explicit-function-return-type': [ | ||
'warn', | ||
{ | ||
allowExpressions: true, // Allow function expressions (like anonymous functions) without return type | ||
allowTypedFunctionExpressions: true, // Allow functions in type declarations (like in interfaces) | ||
allowDirectConstAssertionInArrowFunctions: true, // Allow direct assertions | ||
allowHigherOrderFunctions: true, // Allow higher-order functions without explicit return type | ||
allowedNames: [], // List of getter names that are allowed to not have a return type | ||
// enforceForGetters: true, // Enforce return type for getters | ||
// enforceForSetters: false, // No need to enforce return type for setters (setters don't have return types) | ||
}, | ||
], | ||
// '@typescript-eslint/typedef': [ | ||
// 'warn', | ||
// { | ||
// memberVariableDeclaration: true, | ||
// parameter: true, | ||
// propertyDeclaration: true, | ||
// }, | ||
// ], | ||
}, | ||
}, | ||
// NOTE: WE ARE NOT APPLYING PRETTIER IN THIS OVERRIDE, ONLY @ANGULAR-ESLINT/TEMPLATE | ||
{ | ||
files: ['*.html'], | ||
extends: ['plugin:@angular-eslint/template/recommended'], | ||
rules: {}, | ||
}, | ||
// NOTE: WE ARE NOT APPLYING @ANGULAR-ESLINT/TEMPLATE IN THIS OVERRIDE, ONLY PRETTIER | ||
{ | ||
files: ['*.html'], | ||
excludedFiles: ['*inline-template-*.component.html'], | ||
extends: ['plugin:prettier/recommended'], | ||
rules: { | ||
// NOTE: WE ARE OVERRIDING THE DEFAULT CONFIG TO ALWAYS SET THE PARSER TO ANGULAR (SEE BELOW) | ||
'prettier/prettier': ['error', { parser: 'angular' }], | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 20 additions & 2 deletions
22
projects/container-v18/isomorphic-lib-v18/.vscode/settings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,77 @@ | ||
{ | ||
"files.exclude": {}, | ||
|
||
"workbench.colorCustomizations": { | ||
"activityBar.background": "#0084ff", | ||
"activityBar.foreground": "#000000" | ||
}, | ||
|
||
"editor.rulers": [ | ||
80, | ||
120 | ||
], | ||
|
||
"html.format.wrapAttributes": "force-aligned", | ||
"workbench.colorTheme": "Default Light+", | ||
"tslint.autoFixOnSave": true, | ||
"eslint.enable": true, | ||
"tslint.enable": false, | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
|
||
"search.exclude": { | ||
"docs": true, | ||
"projects": true, | ||
"bin": true | ||
}, | ||
|
||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": false | ||
}, | ||
|
||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": false | ||
}, | ||
|
||
"[jsonc]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": false | ||
}, | ||
|
||
"[json5]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": false | ||
}, | ||
|
||
"[scss]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": false | ||
}, | ||
|
||
"[html]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": false | ||
}, | ||
|
||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": false | ||
}, | ||
|
||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": false | ||
}, | ||
|
||
"eslint.migration.2_x": "off", | ||
"prettier.enable": true, | ||
"editor.suggest.snippetsPreventQuickSuggestions": false, | ||
"editor.inlineSuggest.enabled": true, | ||
"prettier.endOfLine": "auto" | ||
} | ||
"prettier.endOfLine": "auto", | ||
|
||
"json.schemas": [{ | ||
"fileMatch": ["/taon.jsonc"], | ||
"url": "./taon-config-standalone.schema.json" | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.