Skip to content

Commit

Permalink
fix: eslint and jest complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
niieani committed May 1, 2023
1 parent 8b71131 commit 8b1cb01
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 54 deletions.
7 changes: 7 additions & 0 deletions .config/beemo/jest.ts
@@ -0,0 +1,7 @@
import { JestConfig } from '@beemo/driver-jest'

const config: JestConfig = {
preset: 'ts-jest/presets/js-with-ts',
}

export default config
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -52,3 +52,4 @@ node_modules/
*.local

tsconfig.json
jest.config.js
51 changes: 0 additions & 51 deletions jest.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -87,7 +87,7 @@
"test": "yarn test:format && yarn test:types && yarn test:lint && yarn test:code",
"test:code": "rrun jest",
"test:format": "yarn rrun prettier --check \"./{src,tests,.config}/**/!(*.d).{.js,jsx,ts,tsx,json,md}\"",
"test:lint": "rrun eslint 'src/**/*.{js,jsx,ts,tsx}'",
"test:lint": "rrun eslint 'src/*.{js,jsx,ts,tsx}'",
"test:types": "yarn rrun tsc --noEmit"
},
"release": {
Expand Down
4 changes: 2 additions & 2 deletions src/getBpe.ts → src/getData.ts
Expand Up @@ -16,7 +16,8 @@ const bpeMerges = lines.slice(1, -1).map((x) =>
)

const bpeRanks = dictZip(bpeMerges, range(0, bpeMerges.length))
const encoder = require('../data/encoder.json')
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const encoder: object = require('../data/encoder.json')

fs.mkdirSync(path.join(__dirname, 'data'), { recursive: true })
fs.writeFileSync(
Expand All @@ -31,4 +32,3 @@ fs.writeFileSync(
encoder,
)}`,
)

0 comments on commit 8b1cb01

Please sign in to comment.