11
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2026-04-05 00:56:54 +00:00

style: add ESLint ignore file to enable linting of dotfiles (#103)

Closes #100.
This commit is contained in:
Jeroen de Bruijn 2021-02-25 19:03:56 +01:00 committed by GitHub
parent dbaa380ea6
commit a0b2acf16c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 2 deletions

View file

@ -1,10 +1,11 @@
// eslint-disable-next-line import/no-extraneous-dependencies
const yaml = require('yaml')
yaml.scalarOptions.str.fold.lineWidth = 100
const versionRegex = /\d+\.\d+\.\d+/
module.exports.readVersion = contents =>
module.exports.readVersion = (contents) =>
yaml.parse(contents).runs.image.match(versionRegex)[0]
module.exports.writeVersion = (contents, version) => {