From c814834ed64c6fc71984780f2940188d23c7faa2 Mon Sep 17 00:00:00 2001 From: acolytec3 <17355484+acolytec3@users.noreply.github.com> Date: Tue, 12 Nov 2024 10:04:28 -0500 Subject: [PATCH] Run eslint from root --- config/eslint.cjs | 9 +++++---- package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/config/eslint.cjs b/config/eslint.cjs index d2f97618a8..5458fe9349 100644 --- a/config/eslint.cjs +++ b/config/eslint.cjs @@ -5,7 +5,7 @@ module.exports = { 'github', 'implicit-dependencies', 'import', - 'prettier', + // 'prettier', 'simple-import-sort', 'ethereumjs', ], @@ -35,7 +35,7 @@ module.exports = { 'eslint:recommended', 'plugin:import/recommended', 'plugin:import/typescript', - 'prettier', + // 'prettier', ], rules: { 'no-restricted-imports': ['error', 'ethereum-cryptography/utils.js'], @@ -107,7 +107,7 @@ module.exports = { 'no-var': 'error', 'object-shorthand': 'error', 'prefer-const': 'error', - 'prettier/prettier': 'error', + // 'prettier/prettier': 'error', 'simple-import-sort/exports': 'error', 'sort-imports': ['error', { ignoreDeclarationSort: true }], 'ethereumjs/noBuffer': 'error', @@ -115,7 +115,7 @@ module.exports = { parserOptions: { extraFileExtensions: ['.json'], sourceType: 'module', - project: './tsconfig.lint.json', + project: './config/tsconfig.lint.json', }, overrides: [ { @@ -123,6 +123,7 @@ module.exports = { rules: { 'implicit-dependencies/no-implicit': 'off', 'import/no-extraneous-dependencies': 'off', + 'no-console': 'off', }, }, ], diff --git a/package.json b/package.json index ddbc1811ce..34c1405084 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "e2e:resolutions": "node ./scripts/e2e-resolutions.js", "examples": "npm run examples --workspaces --if-present", "examples:build": "npm run examples:build --workspaces --if-present", - "lint": "npm run lint --workspaces --if-present", + "lint": "npx eslint --format codeframe --config ./config/eslint.cjs . --ext .js,.ts", "lint:fix": "npm run lint:fix --workspaces --if-present", "test": "npm run test --workspaces --if-present", "test:node": "npm run test:node --workspaces --if-present",