Skip to content

Commit 8f6862a

Browse files
committed
fix: security issues
1 parent c325012 commit 8f6862a

26 files changed

+920
-4274
lines changed

.editorconfig

Lines changed: 0 additions & 11 deletions
This file was deleted.

.eslintrc.js

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,6 @@
11
module.exports = {
2-
root: true,
3-
parser: '@typescript-eslint/parser',
4-
plugins: ['@typescript-eslint', 'unused-imports'],
5-
extends: [
6-
'eslint:recommended',
7-
'plugin:@typescript-eslint/recommended',
8-
'prettier',
9-
],
2+
extends: ['@1inch'],
103
rules: {
11-
'@typescript-eslint/member-ordering': 'error',
12-
'lines-between-class-members': 'error',
13-
'padding-line-between-statements': 'error',
14-
'no-unused-vars': 'off',
15-
'max-len': ['error', {code: 120}],
16-
'max-depth': ['error', 3],
17-
'max-lines-per-function': ['error', 70],
18-
'max-params': ['error', 7],
19-
'@typescript-eslint/no-explicit-any': 'error',
20-
'@typescript-eslint/no-unused-vars': 'error',
21-
'unused-imports/no-unused-imports': 'error',
22-
'unused-imports/no-unused-vars': 0,
23-
},
24-
overrides: [
25-
{
26-
files: ['src/**/*.test.ts'],
27-
rules: {
28-
'max-lines-per-function': ['error', 400],
29-
'max-len': ['error', {code: 130}],
30-
},
31-
},
32-
],
33-
};
4+
'max-depth': ['error', 4]
5+
}
6+
}

.github/workflows/pr.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ jobs:
2222

2323
- name: CI
2424
run: yarn run ci-pipeline
25+
26+
- name: Security
27+
run: yarn audit

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"trailingComma": "none",
3+
"tabWidth": 4,
4+
"bracketSpacing": false,
5+
"singleQuote": true,
6+
"semi": false
7+
}

.prettierrc.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

.swcrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"jsc": {
3+
"parser": {
4+
"syntax": "typescript",
5+
"decorators": true
6+
},
7+
"transform": {
8+
"decoratorMetadata": true
9+
}
10+
}
11+
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2021 1INCH LIMITED
1+
Copyright 2024 1INCH LIMITED
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
44

babel.config.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

jest.config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
testTimeout: 200000,
3+
moduleFileExtensions: ['js', 'json', 'ts'],
4+
rootDir: 'src',
5+
testRegex: '.*\\.(spec|test)\\.ts$',
6+
transform: {
7+
'^.+\\.(t|j)s$': '@swc/jest'
8+
},
9+
collectCoverageFrom: ['**/*.(t|j)s'],
10+
coverageDirectory: '../coverage',
11+
testEnvironment: 'node',
12+
forceExit: true // For close all ws connections.
13+
}

jest.config.ts

Lines changed: 0 additions & 193 deletions
This file was deleted.

0 commit comments

Comments
 (0)