Conversation
Hello damiengillesscality,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
Peer approvals must include at least 1 approval from the following list: |
3b36515 to
82da530
Compare
|
@damiengillesscality I'm trying to use it in metalk8s. I have this : -> % npm run lint
> metalk8s-platform-ui@0.1.0 lint
> eslint .
Oops! Something went wrong! :(
ESLint: 10.0.2
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@typescript-eslint/parser' imported from /Users/patrickear/Scality/metalk8s/ui/node_modules/@scality/core-ui/src/lib/valalint/index.js
at packageResolve (node:internal/modules/esm/resolve:873:9)
at moduleResolve (node:internal/modules/esm/resolve:946:18)
at defaultResolve (node:internal/modules/esm/resolve:1188:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:642:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:591:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:574:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:236:38)
at ModuleJob._link (node:internal/modules/esm/module_job:130:49)
patrickear@Patricks-MacBook-Pro [19:01:00] [~/Scality/metalk8s/ui] [imp
I guess we need to have |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
Peer approvals must include at least 1 approval from the following list: |
|
I think the solution is to move @typescript-eslint/parser from devDeps to deps. This wont change our front end build size and core ui will be installed with the tools to use the linting rules. I've made a commit to do that let me know if it is fine for you.
|
Yes I was thinking about that too, i was not sure about the impact to our UIs. |
|
@damiengillesscality Can you check why it show a warning for this case ? <Text variant="Smaller" style={{ fontStyle: 'italic', color: '#666' }}>
No nodes found {quantileName === 'Q90' ? 'above' : 'below'} threshold
</Text> |
Their was a bug, this created multiple jsx text element and it treated them each as sentence. So it expected a capitalized letter on threshold. this is fixed. |
|
/approve |
|
I have successfully merged the changeset of this pull request
Please check the status of the associated issue CUI-2. Goodbye damiengillesscality. The following options are set: approve |
Resolves https://scality.atlassian.net/browse/CUI-2 by implementing an EsLint rule plugin that check for capitalisation issues.
It can be used easily by configuring projects like this:
The rule is also tested using the existing jest setup. I updated a few import in the test files that where still using CommonJs notation to be able to use
type: moduleinpackage.json.