Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
Upgrade eslint deps to be able to resolve some issues.
  • Loading branch information
jor-rit committed Sep 30, 2021
1 parent a3d1022 commit efd2b0a
Show file tree
Hide file tree
Showing 7 changed files with 611 additions and 718 deletions.
13 changes: 11 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,20 @@
"semi": "off",
"@typescript-eslint/semi": ["error", "never"],
"@typescript-eslint/type-annotation-spacing": "error",
"@typescript-eslint/unbound-method": "error"
"@typescript-eslint/unbound-method": "error",

"filenames/match-regex": ["error", "^[a-z0-9-]+(.d)?$", true],
"i18n-text/no-en": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": 1

},
"env": {
"node": true,
"es6": true,
"jest/globals": true
},
"globals": {
"NodeJS": true
}
}
}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
npm run all
test: # sortof an integration test
runs-on: ubuntu-latest
if: contains(github.ref, "release")
if: contains(github.ref, 'release')
steps:
- uses: actions/checkout@v2
- uses: ./
Expand Down
2 changes: 1 addition & 1 deletion __tests__/expire.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
afterEach,
jest
} from '@jest/globals'
import { subMonths, subDays } from 'date-fns'
import {subMonths, subDays} from 'date-fns'

import {expireCache} from '../src/expire'

Expand Down
Loading

0 comments on commit efd2b0a

Please sign in to comment.