Skip to content

Commit

Permalink
chore: ignore some lint rules for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Sep 20, 2022
1 parent d5580e7 commit d768311
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .eslintrc.local.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,13 @@ module.exports = {
'no-shadow': 0,
'no-unused-expressions': 0,
'no-sequences': 0,
'no-empty': 0,
},
overrides: [{
files: ['test/**'],
rules: {
'promise/catch-or-return': 0,
'promise/always-return': 0,
},
}],
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"yallist": "^4.0.0"
},
"devDependencies": {
"@npmcli/eslint-config": "^3.0.1",
"@npmcli/eslint-config": "^3.1.0",
"@npmcli/template-oss": "4.3.2",
"chmodr": "^1.2.0",
"end-of-stream": "^1.4.3",
Expand Down
14 changes: 14 additions & 0 deletions scripts/template-oss/_step-git.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- name: Support Long Pathsg
run: git config --system core.longpaths true
- name: Checkout
uses: actions/checkout@v3
{{#if jobCheckout}}
with:
{{#each jobCheckout}}
{{ @key }}: {{ this }}
{{/each}}
{{/if}}
- name: Setup Git User
run: |
git config --global user.email "npm-cli+bot@github.com"
git config --global user.name "npm CLI robot"
Empty file added scripts/template-oss/index.js
Empty file.

0 comments on commit d768311

Please sign in to comment.