mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 00:06:54 +00:00
style: add ESLint ignore file to enable linting of dotfiles (#103)
Closes #100.
This commit is contained in:
parent
dbaa380ea6
commit
a0b2acf16c
4 changed files with 14 additions and 2 deletions
|
|
@ -7,4 +7,5 @@ coverage
|
||||||
fixtures
|
fixtures
|
||||||
src/action.test.js
|
src/action.test.js
|
||||||
src/testUtils.js
|
src/testUtils.js
|
||||||
|
.eslintignore
|
||||||
.eslintrc.json
|
.eslintrc.json
|
||||||
|
|
|
||||||
10
.eslintignore
Normal file
10
.eslintignore
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
.git/
|
||||||
|
.vscode
|
||||||
|
/build/
|
||||||
|
/dist/
|
||||||
|
/coverage/
|
||||||
|
/LICENSE.md
|
||||||
|
/modules/
|
||||||
|
/node_modules/
|
||||||
|
/worktrees/
|
||||||
|
!.*
|
||||||
3
.github/tasks/actionYamlUpdater.js
vendored
3
.github/tasks/actionYamlUpdater.js
vendored
|
|
@ -1,10 +1,11 @@
|
||||||
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
||||||
const yaml = require('yaml')
|
const yaml = require('yaml')
|
||||||
|
|
||||||
yaml.scalarOptions.str.fold.lineWidth = 100
|
yaml.scalarOptions.str.fold.lineWidth = 100
|
||||||
|
|
||||||
const versionRegex = /\d+\.\d+\.\d+/
|
const versionRegex = /\d+\.\d+\.\d+/
|
||||||
|
|
||||||
module.exports.readVersion = contents =>
|
module.exports.readVersion = (contents) =>
|
||||||
yaml.parse(contents).runs.image.match(versionRegex)[0]
|
yaml.parse(contents).runs.image.match(versionRegex)[0]
|
||||||
|
|
||||||
module.exports.writeVersion = (contents, version) => {
|
module.exports.writeVersion = (contents, version) => {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
"postinstall": "husky install",
|
"postinstall": "husky install",
|
||||||
"test": "NODE_PATH=./node_modules jest",
|
"test": "NODE_PATH=./node_modules jest",
|
||||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
|
||||||
"lint": "eslint --ignore-path .gitignore ."
|
"lint": "eslint ."
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.0.0"
|
"node": ">=12.0.0"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue