Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.

Commit c5970f8

Browse files
committed
style: migrate to @bifravst/prettier-config
1 parent 748419d commit c5970f8

File tree

9 files changed

+21
-18
lines changed

9 files changed

+21
-18
lines changed

.github/ncs-version.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import fs from 'fs'
2+
import yaml from 'js-yaml'
3+
import path from 'path'
4+
5+
const westYaml = yaml.load(
6+
fs.readFileSync(path.join(process.cwd(), 'west.yml'), 'utf-8'),
7+
)
8+
9+
process.stdout.write(
10+
westYaml.manifest.projects.find(({ name }) => name === 'sdk-nrf').revision,
11+
)

.github/ncs-version.mjs

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/pr-check_compliance.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: npm ci
3333
- name: Get NCS version
3434
id: version
35-
run: echo "version=`node .github/ncs-version.mjs`" >> $GITHUB_OUTPUT
35+
run: echo "version=`node .github/ncs-version.js`" >> $GITHUB_OUTPUT
3636
checkpatch:
3737
runs-on: ubuntu-22.04
3838
needs: [ncs]

.github/workflows/pr-clang-format.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: npm ci
2929
- name: Get NCS version
3030
id: version
31-
run: echo "version=`node .github/ncs-version.mjs`" >> $GITHUB_OUTPUT
31+
run: echo "version=`node .github/ncs-version.js`" >> $GITHUB_OUTPUT
3232
clang-format:
3333
runs-on: ubuntu-22.04
3434
needs: [ncs]

.github/workflows/update-from-ncs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
run: npm ci
3535
- name: Get NCS version
3636
id: version
37-
run: echo "version=`node .github/ncs-version.mjs`" >> $GITHUB_OUTPUT
37+
run: echo "version=`node .github/ncs-version.js`" >> $GITHUB_OUTPUT
3838
update:
3939
runs-on: ubuntu-22.04
4040
needs: [ncs]

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
package-lock.json
22
src/
3-
child_image/
3+
child_image/
4+
sample.yaml

commitlint.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ['@commitlint/config-conventional'] }

commitlint.config.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "@nordicsemiconductor/asset-tracker-cloud-firmware-aws",
33
"version": "0.0.0-development",
44
"description": "nRF Asset Tracker for AWS firmware.",
5+
"type": "module",
56
"repository": {
67
"type": "git",
78
"url": "https://github.com/NordicSemiconductor/asset-tracker-cloud-firmware-aws.git"
@@ -29,7 +30,7 @@
2930
},
3031
"lint-staged": {
3132
"*.{yml,md,js,json}": [
32-
"prettier --write --config .prettierrc.js"
33+
"prettier --write"
3334
]
3435
},
3536
"engines": {
@@ -180,5 +181,6 @@
180181
},
181182
"cloud": {
182183
"repository": "https://github.com/NordicSemiconductor/asset-tracker-cloud-aws-js.git"
183-
}
184+
},
185+
"prettier": "@bifravst/prettier-config"
184186
}

0 commit comments

Comments
 (0)