Skip to content

Format code to project rules #150

Description

@danyill

On a recent run I saw:

npm run lint

> @openscd/scl-lib@2.0.0 lint
> eslint --ext .ts,.html . --ignore-path .gitignore && prettier "**/*.ts" --check --ignore-path .gitignore

Checking formatting...
[warn] index.ts
[warn] tAddress/changeGseOrSmvAddress.ts
[warn] tBay/updateBay.spec.ts
[warn] tControl/removeControlBlock.ts
[warn] tControl/updateDatSet.ts
[warn] tDataSet/removeDataSet.ts
[warn] tDataTypeTemplates/foundation.ts
[warn] tDataTypeTemplates/importLNodeType.spec.ts
[warn] tDataTypeTemplates/importLNodeType.ts
[warn] tDataTypeTemplates/insertSelecetdLNodeType.spec.ts
[warn] tDataTypeTemplates/insertSelectedLNodeType.testdata.ts
[warn] tDataTypeTemplates/insertSelectedLNodeType.ts
[warn] tDataTypeTemplates/nsdToJson.ts
[warn] tDataTypeTemplates/nsdToJson/testJson/APC.ts
[warn] tDataTypeTemplates/nsdToJson/testJson/BAC.ts
[warn] tDataTypeTemplates/nsdToJson/testJson/BCR.ts
[warn] tDataTypeTemplates/nsdToJson/testJson/RFLO.ts
[warn] tDataTypeTemplates/nsdToJson/testJson/TCTR.ts
[warn] tDataTypeTemplates/nsdToJson/testNsdJson.ts
[warn] tDataTypeTemplates/removeDataType.spec.ts
[warn] tDataTypeTemplates/removeDataType.ts
[warn] tDataTypeTemplates/updateLNodeType.spec.ts
[warn] tDataTypeTemplates/updateLNodeType.testfiles.ts
[warn] tDataTypeTemplates/updateLNodeType.ts
[warn] tExtRef/extRefTypeRestrictions.spec.ts
[warn] tExtRef/subscribe.ts
[warn] tGSE/createGSE.spec.ts
[warn] tGSEControl/updateGSEControl.spec.ts
[warn] tGSEControl/updateGSEControl.ts
[warn] tIED/insertIED.spec.ts
[warn] tIED/removeIED.ts
[warn] tIED/updateIED.spec.ts
[warn] tIED/updateIED.ts
[warn] tLN/supervision/insertSubscriptionSupervisions.ts
[warn] tReportControl/canAddReportControl.spec.ts
[warn] tReportControl/updateReportControl.spec.ts
[warn] tReportControl/updateReportControl.ts
[warn] tSampledValueControl/updateSampledValueControl.spec.ts
[warn] tSampledValueControl/updateSampledValueControl.ts
[warn] tServices/tConfReportControl/maxReportControl.spec.ts
[warn] tSubstation/updateLnType.spec.ts
[warn] tSubstation/updateLnType.ts
[warn] tSubstation/updateSubstation.spec.ts
[warn] tVoltageLevel/updateVoltageLevel.spec.ts
[warn] tVoltageLevel/updateVoltageLevel.ts
[warn] Code style issues found in 45 files. Run Prettier to fix.

We should tidy these up.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

choreTask which doesn't affect end-user including improving developer tooling and CI

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions