Skip to content

Commit

Permalink
Merge branch 'master' into stylelint
Browse files Browse the repository at this point in the history
  • Loading branch information
fbasmaison-lucca committed Jan 13, 2025
2 parents d2aa610 + db8f245 commit 18a5e18
Show file tree
Hide file tree
Showing 1,273 changed files with 55,404 additions and 60,628 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.json]
indent_style = space

[*.ts]
quote_type = single

[*.md]
indent_style = space
indent_size = 2
max_line_length = off
trim_trailing_whitespace = false
283 changes: 125 additions & 158 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,160 +1,127 @@
{
"root": true,
"ignorePatterns": [
"src/**/*",
"**/*.stories.ts"
],
"overrides": [
{
"files": [
"*.ts"
],
"parserOptions": {
"project": [
"tsconfig.json",
"packages/ng/tsconfig.json"
],
"createDefaultProgram": true
},
"extends": [
"plugin:@angular-eslint/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
// "plugin:@angular-eslint/template/process-inline-templates",
// Keep prettier at the end
"plugin:prettier/recommended"
// "plugin:@angular-eslint/ng-cli-compat",
// "plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
],
"plugins": [
"deprecation"
],
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
// OUR RULES
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "enumMember",
"format": [
"PascalCase",
"camelCase",
"UPPER_CASE"
]
}
],
// Would be nice to have these three but requires refactoring of old code
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/explicit-function-return-type": "off",
// on aimerait bien dire oui sauf pour void
"@typescript-eslint/explicit-module-boundary-types": "off",
// on aimerait bien dire oui sauf pour void
"@angular-eslint/no-input-rename": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
],
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/type-annotation-spacing": [
"error"
],
"no-console": [
"error",
{
"allow": [
"warn",
"error"
]
}
],
"curly": "error",
"deprecation/deprecation": "warn",
"no-restricted-imports": [
"error",
{
"paths": [
"rxjs/Rx",
"@ngneat/spectator"
]
}
],
"max-classes-per-file": "off",
"quote-props": [
"error",
"as-needed"
],
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true
}
],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"asyncArrow": "always",
"named": "never"
}
],
// BASIC RULES
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "lu",
"style": "kebab-case"
}
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "lu",
"style": "camelCase"
}
],
"@angular-eslint/no-host-metadata-property": "off"
}
},
{
"files": [
"*.html"
],
"extends": [
"plugin:@angular-eslint/template/recommended",
"plugin:prettier/recommended"
],
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"@angular-eslint/template/button-has-type": "error"
}
},
{
"files": [
"*.js"
],
"env": {
"es6": true
}
}
]
"root": true,
"ignorePatterns": ["src/**/*", "**/*.stories.ts"],
"overrides": [
{
"files": ["*.ts"],
"parserOptions": {
"project": ["tsconfig.json", "packages/ng/tsconfig.json"],
"createDefaultProgram": true,
},
"extends": [
"plugin:@angular-eslint/recommended",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
// "plugin:@angular-eslint/template/process-inline-templates",
// Keep prettier at the end
"plugin:prettier/recommended",
// "plugin:@angular-eslint/ng-cli-compat",
// "plugin:@angular-eslint/ng-cli-compat--formatting-add-on",
],
"plugins": ["deprecation"],
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto",
},
],
// OUR RULES
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "enumMember",
"format": ["PascalCase", "camelCase", "UPPER_CASE"],
},
],
// Would be nice to have these three but requires refactoring of old code
"@typescript-eslint/no-redundant-type-constituents": "off",
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-unsafe-enum-comparison": "off",
"@typescript-eslint/explicit-function-return-type": "off",
// on aimerait bien dire oui sauf pour void
"@typescript-eslint/explicit-module-boundary-types": "off",
// on aimerait bien dire oui sauf pour void
"@angular-eslint/no-input-rename": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true,
},
],
"@typescript-eslint/unbound-method": "off",
"no-console": [
"error",
{
"allow": ["warn", "error"],
},
],
"curly": "error",
"deprecation/deprecation": "warn",
"no-restricted-imports": [
"error",
{
"paths": ["rxjs/Rx", "@ngneat/spectator"],
},
],
"max-classes-per-file": "off",
"quote-props": ["error", "as-needed"],
"quotes": [
"error",
"single",
{
"avoidEscape": true,
"allowTemplateLiterals": true,
},
],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"asyncArrow": "always",
"named": "never",
},
],
// BASIC RULES
"@angular-eslint/component-selector": [
"error",
{
"type": "element",
"prefix": "lu",
"style": "kebab-case",
},
],
"@angular-eslint/directive-selector": [
"error",
{
"type": "attribute",
"prefix": "lu",
"style": "camelCase",
},
],
"@angular-eslint/no-host-metadata-property": "off",
},
},
{
"files": ["*.html"],
"extends": ["plugin:@angular-eslint/template/recommended", "plugin:prettier/recommended"],
"rules": {
"prettier/prettier": [
"error",
{
"endOfLine": "auto",
},
],
"@angular-eslint/template/button-has-type": "error",
},
},
{
"files": ["*.js"],
"env": {
"es6": true,
},
},
],
}
7 changes: 7 additions & 0 deletions .github/c-3po.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,10 @@ auto-labels:
path: "(^Jenkinsfile$|^.github/*|^.cd/*)"
- label: ":book: Documentation changes"
path: "(^stories/*)"
check-milestone:
enabled: true
targetBranches:
- "rc"
- "master"
linkMilestonesToMepBranches:
enabled: false
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ compodoc-static

# apple stuff
.DS_Store

# lucca stuff
.lokalise.logs
Loading

0 comments on commit 18a5e18

Please sign in to comment.