Skip to content

Commit

Permalink
Dedupe eslint config & dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
LogvinovLeon committed Feb 14, 2024
1 parent 3128df9 commit 7a73438
Show file tree
Hide file tree
Showing 9 changed files with 137 additions and 184 deletions.
5 changes: 3 additions & 2 deletions ethereum_history_api/tests/.eslintrc.cjs → .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
module.exports = {
root: true,
ignorePatterns: ['**/.eslintrc.cjs'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: 'ethereum_history_api/tests/tsconfig.json'
project: 'ethereum_history_api/oracles/tsconfig.json'
},
env: {
browser: true,
es2021: true
},
extends: ['plugin:@typescript-eslint/recommended', 'prettier', 'plugin:prettier/recommended'],
Expand Down
228 changes: 114 additions & 114 deletions .pnp.cjs

Large diffs are not rendered by default.

Binary file modified .yarn/install-state.gz
Binary file not shown.
32 changes: 1 addition & 31 deletions ethereum_history_api/oracles/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,24 +1,5 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: 'ethereum_history_api/oracles/tsconfig.json'
},
env: {
browser: true,
es2021: true
},
extends: ['plugin:@typescript-eslint/recommended', 'prettier', 'plugin:prettier/recommended'],
rules: {
// Override specific rules
'@typescript-eslint/consistent-type-assertions': [
'error',
{
assertionStyle: 'as',
objectLiteralTypeAssertions: 'allow'
}
],
'no-restricted-imports': [
'error',
{
Expand All @@ -30,16 +11,5 @@ module.exports = {
]
}
]
},
overrides: [
{
env: {
node: true
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script'
}
}
]
}
};
9 changes: 0 additions & 9 deletions ethereum_history_api/oracles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,10 @@
"viem": "^2.0.0"
},
"devDependencies": {
"@types/eslint": "^8",
"@types/json-bigint": "^1",
"@types/lodash.isequal": "^4",
"@types/node": "^20.10.5",
"@typescript-eslint/eslint-plugin": "^6.18.0",
"@typescript-eslint/parser": "^6.18.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^43.0.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-promise": "^6.0.0",
"pino-pretty": "^10.3.1",
"prettier": "^3.1.1",
"tsx": "^4.7.0",
Expand Down
9 changes: 0 additions & 9 deletions ethereum_history_api/tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,8 @@
"viem": "^2.0.0"
},
"devDependencies": {
"@types/eslint": "^8",
"@types/node": "^20.10.5",
"@typescript-eslint/eslint-plugin": "^6.18.0",
"@typescript-eslint/parser": "^6.18.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^43.0.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-promise": "^6.0.0",
"prettier": "^3.1.1",
"tsx": "^4.7.0",
"typescript": "^5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion ethereum_history_api/tests/src/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ describe(
expect(deploymentTxReceipt.status).toEqual('success');

assert(!!deploymentTxReceipt.contractAddress, 'Deployed contract address should not be empty');
return deploymentTxReceipt.contractAddress!;
return deploymentTxReceipt.contractAddress;
}

it('smart contract proof verification successes', async () => {
Expand Down
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,16 @@
},
"packageManager": "[email protected]",
"devDependencies": {
"@types/eslint": "^8",
"@typescript-eslint/eslint-plugin": "^6.18.0",
"@typescript-eslint/parser": "^6.18.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard-with-typescript": "^43.0.0",
"eslint-plugin-import": "^2.25.2",
"eslint-plugin-n": "^15.0.0 || ^16.0.0 ",
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-promise": "^6.0.0",
"prettier": "^3.2.2",
"typescript": "^5.3.3"
}
Expand Down
27 changes: 9 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3299,17 +3299,8 @@ __metadata:
resolution: "noir-ethereum-api-e2e-tests@workspace:ethereum_history_api/tests"
dependencies:
"@noir-lang/noirc_abi": "npm:^0.23.0"
"@types/eslint": "npm:^8"
"@types/node": "npm:^20.10.5"
"@typescript-eslint/eslint-plugin": "npm:^6.18.0"
"@typescript-eslint/parser": "npm:^6.18.0"
eslint: "npm:^8.56.0"
eslint-config-prettier: "npm:^9.1.0"
eslint-config-standard-with-typescript: "npm:^43.0.0"
eslint-plugin-import: "npm:^2.25.2"
eslint-plugin-n: "npm:^15.0.0 || ^16.0.0 "
eslint-plugin-prettier: "npm:^5.1.2"
eslint-plugin-promise: "npm:^6.0.0"
noir-ethereum-api-oracles: "npm:^1.0.0"
prettier: "npm:^3.1.1"
toml: "npm:^3.0.0"
Expand All @@ -3326,20 +3317,11 @@ __metadata:
dependencies:
"@noir-lang/noir_js": "npm:0.23.0"
"@noir-lang/noirc_abi": "npm:^0.23.0"
"@types/eslint": "npm:^8"
"@types/json-bigint": "npm:^1"
"@types/lodash.isequal": "npm:^4"
"@types/node": "npm:^20.10.5"
"@typescript-eslint/eslint-plugin": "npm:^6.18.0"
"@typescript-eslint/parser": "npm:^6.18.0"
dotenv: "npm:^16.3.1"
eslint: "npm:^8.56.0"
eslint-config-prettier: "npm:^9.1.0"
eslint-config-standard-with-typescript: "npm:^43.0.0"
eslint-plugin-import: "npm:^2.25.2"
eslint-plugin-n: "npm:^15.0.0 || ^16.0.0 "
eslint-plugin-prettier: "npm:^5.1.2"
eslint-plugin-promise: "npm:^6.0.0"
fastify: "npm:^4.25.2"
json-bigint: "npm:^1.0.0"
json-rpc-2.0: "npm:^1.7.0"
Expand All @@ -3357,7 +3339,16 @@ __metadata:
version: 0.0.0-use.local
resolution: "noir-ethereum-history-api@workspace:."
dependencies:
"@types/eslint": "npm:^8"
"@typescript-eslint/eslint-plugin": "npm:^6.18.0"
"@typescript-eslint/parser": "npm:^6.18.0"
eslint: "npm:^8.56.0"
eslint-config-prettier: "npm:^9.1.0"
eslint-config-standard-with-typescript: "npm:^43.0.0"
eslint-plugin-import: "npm:^2.25.2"
eslint-plugin-n: "npm:^15.0.0 || ^16.0.0 "
eslint-plugin-prettier: "npm:^5.1.2"
eslint-plugin-promise: "npm:^6.0.0"
prettier: "npm:^3.2.2"
typescript: "npm:^5.3.3"
languageName: unknown
Expand Down

0 comments on commit 7a73438

Please sign in to comment.