Skip to content

Commit

Permalink
fix: updating linter
Browse files Browse the repository at this point in the history
  • Loading branch information
wei3erHase committed Oct 1, 2024
1 parent d75f543 commit bd05971
Show file tree
Hide file tree
Showing 8 changed files with 334 additions and 79 deletions.
1 change: 0 additions & 1 deletion js/.eslintignore

This file was deleted.

56 changes: 0 additions & 56 deletions js/.eslintrc.js

This file was deleted.

1 change: 0 additions & 1 deletion js/.prettierrc.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
arrowParens: 'avoid'
bracketSpacing: true
jsxBracketSameLine: false
semi: true
singleQuote: true
tabWidth: 2
Expand Down
8 changes: 6 additions & 2 deletions js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@
"pretty:fix": "prettier --write 'src/*.[jt]s'"
},
"devDependencies": {
"@babel/eslint-parser": "7.25.1",
"@bonfida/utils": "0.0.4",
"@rollup/plugin-commonjs": "28.0.0",
"@rollup/plugin-terser": "0.4.4",
"@rollup/plugin-typescript": "12.1.0",
"@solana/spl-token": "0.4.8",
"@solana/web3.js": "1.95.3",
"@tsconfig/recommended": "1.0.7",
"@types/node": "22.7.2",
"@babel/eslint-parser": "7.25.1",
"eslint": "9.11.1",
"eslint-plugin-import": "2.30.0",
"nodemon": "3.1.7",
"prettier": "3.3.3",
"rollup": "4.23.0",
"@rollup/plugin-terser": "0.4.4",
"ts-node": "10.9.2",
"tslib": "2.7.0",
"typescript": "5.6.2"
Expand All @@ -48,10 +48,14 @@
"@solana/web3.js": "1.95.3"
},
"dependencies": {
"@babel/core": "^7.25.2",
"@eslint/compat": "^1.1.1",
"babel-eslint": "^10.1.0",
"bip32": "^2.0.6",
"bn.js": "^5.1.3",
"bs58": "^4.0.1",
"buffer-layout": "^1.2.0",
"globals": "^15.9.0",
"tweetnacl": "^1.0.3"
}
}
12 changes: 6 additions & 6 deletions js/rollup.config.mjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import typescript from "@rollup/plugin-typescript";
import commonjs from "@rollup/plugin-commonjs";
import terser from "@rollup/plugin-terser";
import {typescript} from '@rollup/plugin-typescript';
import {commonjs} from '@rollup/plugin-commonjs';
import {terser} from '@rollup/plugin-terser';

export default {
input: "src/index.ts",
input: 'src/index.ts',
output: {
dir: "dist",
format: "cjs",
dir: 'dist',
format: 'cjs',
},
plugins: [typescript(), commonjs(), terser()],
};
1 change: 0 additions & 1 deletion js/src/instructions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
TransactionInstruction,
} from '@solana/web3.js';
import { CreateSchedule } from './state';
import { Numberu32 } from './utils';

export enum Instruction {
Init,
Expand Down
2 changes: 1 addition & 1 deletion js/src/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export class ContractInfo {
if (!header.isInitialized) {
return undefined;
}
const schedule = Schedule.fromBuffer(buf.slice(65, 81))
const schedule = Schedule.fromBuffer(buf.slice(65, 81));
return new ContractInfo(
header.destinationAddress,
header.mintAddress,
Expand Down
Loading

0 comments on commit bd05971

Please sign in to comment.