Skip to content

Commit a0b2acf

Browse files
authored
style: add ESLint ignore file to enable linting of dotfiles (#103)
Closes #100.
1 parent dbaa380 commit a0b2acf

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ coverage
77
fixtures
88
src/action.test.js
99
src/testUtils.js
10+
.eslintignore
1011
.eslintrc.json

.eslintignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
.git/
2+
.vscode
3+
/build/
4+
/dist/
5+
/coverage/
6+
/LICENSE.md
7+
/modules/
8+
/node_modules/
9+
/worktrees/
10+
!.*

.github/tasks/actionYamlUpdater.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
// eslint-disable-next-line import/no-extraneous-dependencies
12
const yaml = require('yaml')
23

34
yaml.scalarOptions.str.fold.lineWidth = 100
45

56
const versionRegex = /\d+\.\d+\.\d+/
67

7-
module.exports.readVersion = contents =>
8+
module.exports.readVersion = (contents) =>
89
yaml.parse(contents).runs.image.match(versionRegex)[0]
910

1011
module.exports.writeVersion = (contents, version) => {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"postinstall": "husky install",
99
"test": "NODE_PATH=./node_modules jest",
1010
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
11-
"lint": "eslint --ignore-path .gitignore ."
11+
"lint": "eslint ."
1212
},
1313
"engines": {
1414
"node": ">=12.0.0"

0 commit comments

Comments
 (0)