Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/training merge main #2541

Merged
merged 219 commits into from
Dec 2, 2024
Merged

Conversation

cpaulve-1A
Copy link
Contributor

Proposed change

Merge main with eslint refacto into the training feature
Fix eslint issues

Related issues

- No issue associated -

matthieu-crouzet and others added 30 commits September 23, 2024 14:09
…epending on the presence of eslintrc or not (#2193)

## Proposed change

- Select `@o3r/eslint-config` or `@o3r/eslint-config-otter` depending on
the presence of eslintrc or not
- Use `@o3r/eslint-config` when generating a shell sdk
…config (#2201)

## Proposed change

Set relative path instead of absolute path in the merge config
## Proposed change
As discussed move all warnings into errors.
Open to discussion if some rules should become `off` instead of `errors`
…lphabetize (#2273)

## Proposed change
One import per line
Import alphabetize
Export all alphabetize
…ve (#2274)

## Proposed change
Require a description when using eslint disable directive
## Proposed change
Change default vscode config
## Proposed change

Update documentation for eslint flat config

- [x] Review the ESLint configuration with the team
## Proposed change
Run the auto-fix with the new config

## Rules to discuss

- [x]
[@eslint-community/eslint-comments/disable-enable-pair](https://github.com/mysticatea/eslint-plugin-eslint-comments/blob/master/docs/rules/disable-enable-pair.md)
=> off
- [x]
[unicorn/prefer-type-error](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-type-error.md)
=> off
- [x]
[unicorn/numeric-separators-style](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/numeric-separators-style.md)
=> keep
- [x]
[unicorn/no-useless-promise-resolve-reject](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-promise-resolve-reject.md)
=> off
- [x]
[@stylistic/operator-linebreak](https://eslint.style/rules/js/operator-linebreak)
`"before", { "overrides": { "=": "after"} }`
- [x]
[unicorn/no-useless-undefined](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-undefined.md)
=> keep until issue with mandatory params
- [x]
[unicorn/prefer-set-has](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-has.md)
=> off
- [x]
[@stylistic/arrow-parens](https://eslint.style/rules/js/arrow-parens) =>
keep
- [x]
[unicorn/prefer-prototype-methods](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-prototype-methods.md)
=> keep
- [x]
[unicorn/prefer-string-slice](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-string-slice.md)
=> off

## Missing rules
- [ ] [max-len](https://eslint.org/docs/latest/rules/max-len)
- [x]
[require-await](https://eslint.org/docs/latest/rules/require-await)
## Proposed change

Apply eslint auto-run (remaining rules on import).

removed rule override:
```
      'import/first': 'off',
      'import/order': 'off',
      'import/newline-after-import': 'off',
      'import-newlines/enforce': 'off',
      '@stylistic/object-curly-spacing': 'off',
      '@stylistic/no-multiple-empty-lines': 'off',
      '@stylistic/brace-style': 'off',
      '@stylistic/padded-blocks': 'off',
      '@stylistic/block-spacing': 'off',
      '@stylistic/template-curly-spacing': 'off'
```

Require to merge #2291
@cpaulve-1A cpaulve-1A merged commit 31e5f9f into feat/otter-training Dec 2, 2024
3 checks passed
@cpaulve-1A cpaulve-1A deleted the feat/training-merge-main branch December 2, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change This issue or pull request introduces a breaking change bug Something isn't working deprecate The issue or pull request involves code deprecation documentation Improvements or additions to documentation enhancement New feature or request project:@ama-sdk/client-angular project:@ama-sdk/client-beacon project:@ama-sdk/client-fetch project:@ama-sdk/core project:@ama-sdk/create project:@ama-sdk/schematics project:@ama-sdk/swagger-builder project:@ama-terasu/cli project:@ama-terasu/core project:@ama-terasu/schematics project:audit-gh-action project:cascading-gh-action project:get-npm-tag-gh-action project:new-version-gh-action project:@o3r/amaterasu-api-spec project:@o3r/amaterasu-dodo project:@o3r/amaterasu-otter project:@o3r/amaterasu-sdk project:@o3r/analytics project:@o3r/apis-manager project:@o3r/application project:@o3r/artifactory-tools project:@o3r/azure-tools project:@o3r/build-helpers project:@o3r/chrome-devtools project:@o3r/components project:@o3r/configuration project:@o3r/core project:@o3r/create project:@o3r/design project:@o3r/dev-tools project:@o3r/dynamic-content project:@o3r/eslint-config project:@o3r/eslint-config-otter project:@o3r/eslint-plugin project:@o3r/extractors project:@o3r/forms project:@o3r/github-cascading-app project:@o3r/localization project:@o3r/logger project:@o3r/mobile project:@o3r/new-version project:@o3r/pipeline project:@o3r/routing project:@o3r/rules-engine project:@o3r/schematics project:@o3r/showcase project:@o3r/store-sync project:@o3r/storybook project:@o3r/stylelint-plugin project:@o3r/styling project:@o3r/telemetry project:@o3r/test-helpers project:@o3r/testing project:@o3r/third-party project:@o3r/workspace project:@o3r/workspace-helpers project:@o3r-training/showcase-sdk project:@o3r-training/training-tools project:otter-devtools project:release-gh-action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants