Skip to content

Commit

Permalink
Run eslint from root
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Nov 12, 2024
1 parent 287f960 commit c814834
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions config/eslint.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = {
'github',
'implicit-dependencies',
'import',
'prettier',
// 'prettier',
'simple-import-sort',
'ethereumjs',
],
Expand Down Expand Up @@ -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'],
Expand Down Expand Up @@ -107,22 +107,23 @@ 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',
},
parserOptions: {
extraFileExtensions: ['.json'],
sourceType: 'module',
project: './tsconfig.lint.json',
project: './config/tsconfig.lint.json',
},
overrides: [
{
files: ['test/**/*.ts', 'tests/**/*.ts', 'examples/**/*.ts'],
rules: {
'implicit-dependencies/no-implicit': 'off',
'import/no-extraneous-dependencies': 'off',
'no-console': 'off',
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c814834

Please sign in to comment.