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

Commit

Permalink
style: migrate to @bifravst/prettier-config
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Feb 19, 2024
1 parent 748419d commit c5970f8
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 18 deletions.
11 changes: 11 additions & 0 deletions .github/ncs-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import fs from 'fs'
import yaml from 'js-yaml'
import path from 'path'

const westYaml = yaml.load(
fs.readFileSync(path.join(process.cwd(), 'west.yml'), 'utf-8'),
)

process.stdout.write(
westYaml.manifest.projects.find(({ name }) => name === 'sdk-nrf').revision,
)
11 changes: 0 additions & 11 deletions .github/ncs-version.mjs

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/pr-check_compliance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: npm ci
- name: Get NCS version
id: version
run: echo "version=`node .github/ncs-version.mjs`" >> $GITHUB_OUTPUT
run: echo "version=`node .github/ncs-version.js`" >> $GITHUB_OUTPUT
checkpatch:
runs-on: ubuntu-22.04
needs: [ncs]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-clang-format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: npm ci
- name: Get NCS version
id: version
run: echo "version=`node .github/ncs-version.mjs`" >> $GITHUB_OUTPUT
run: echo "version=`node .github/ncs-version.js`" >> $GITHUB_OUTPUT
clang-format:
runs-on: ubuntu-22.04
needs: [ncs]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-from-ncs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: npm ci
- name: Get NCS version
id: version
run: echo "version=`node .github/ncs-version.mjs`" >> $GITHUB_OUTPUT
run: echo "version=`node .github/ncs-version.js`" >> $GITHUB_OUTPUT
update:
runs-on: ubuntu-22.04
needs: [ncs]
Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
package-lock.json
src/
child_image/
child_image/
sample.yaml
1 change: 1 addition & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] }
1 change: 0 additions & 1 deletion commitlint.config.js

This file was deleted.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "@nordicsemiconductor/asset-tracker-cloud-firmware-aws",
"version": "0.0.0-development",
"description": "nRF Asset Tracker for AWS firmware.",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/NordicSemiconductor/asset-tracker-cloud-firmware-aws.git"
Expand Down Expand Up @@ -29,7 +30,7 @@
},
"lint-staged": {
"*.{yml,md,js,json}": [
"prettier --write --config .prettierrc.js"
"prettier --write"
]
},
"engines": {
Expand Down Expand Up @@ -180,5 +181,6 @@
},
"cloud": {
"repository": "https://github.com/NordicSemiconductor/asset-tracker-cloud-aws-js.git"
}
},
"prettier": "@bifravst/prettier-config"
}

0 comments on commit c5970f8

Please sign in to comment.