Skip to content

Commit 1eb343e

Browse files
ccharlyclaude
andcommitted
build: exclude snap packages from root linting
Snap packages carry older tooling (ESLint v8, Prettier v2) and different configs that are incompatible with the monorepo's current setup. Exclude packages/snaps/** from ESLint and oxfmt until a follow-up aligns them. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 82a05c6 commit 1eb343e

4 files changed

Lines changed: 14 additions & 8 deletions

File tree

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Snap packages use older tooling (Prettier v2, different configs).
2+
# Formatting will be aligned in a follow-up.
3+
packages/snaps/

eslint.config.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ const config = createConfig([
1616
'**/dist/**',
1717
'**/docs/**',
1818
'**/coverage/**',
19+
// Snap packages use older tooling (ESLint v8, different configs).
20+
// Linting will be aligned in a follow-up.
21+
'packages/snaps/**',
1922
],
2023
},
2124

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"lint:dependencies:fix": "yarn foreach depcheck && yarn dedupe",
2929
"lint:eslint": "yarn build:only-clean && yarn eslint",
3030
"lint:fix": "yarn lint:eslint --fix --prune-suppressions && yarn lint:misc --write && yarn constraints --fix && yarn lint:dependencies:fix",
31-
"lint:misc": "oxfmt --ignore-path .gitignore",
31+
"lint:misc": "oxfmt --ignore-path .gitignore --ignore-path .prettierignore",
3232
"lint:misc:check": "yarn lint:misc --check",
3333
"lint:readme": "yarn readme:update",
3434
"prepare:preview": "ts-node --project tsconfig.scripts.json scripts/prepare-preview-builds.ts",

yarn.config.cjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,20 @@ const ALLOWED_INCONSISTENT_DEPENDENCIES = {
5252
'@metamask/eth-sig-util': ['^7.0.1'],
5353
'@metamask/snaps-sdk': ['^11.0.0', '^11.1.0'],
5454
'@types/node': ['^20.6.2'],
55-
'depcheck': ['^1.4.6'],
56-
'eslint': ['^8.21.0', '^8.36.0'],
55+
depcheck: ['^1.4.6'],
56+
eslint: ['^8.21.0', '^8.36.0'],
5757
'eslint-config-prettier': ['^8.1.0', '^8.7.0'],
5858
'eslint-plugin-import': ['^2.26.0', '^2.27.5'],
5959
'eslint-plugin-jest': ['^26.8.2', '^27.2.1'],
6060
'eslint-plugin-jsdoc': ['^39.2.9', '^40.0.3'],
6161
'eslint-plugin-n': ['^16.1.0', '^16.6.2'],
6262
'eslint-plugin-prettier': ['^4.2.1'],
6363
'eslint-plugin-promise': ['^6.1.1'],
64-
'prettier': ['^2.2.1', '^2.8.4'],
65-
'rimraf': ['^3.0.2', '^4.4.0'],
66-
'typescript': ['^4.7.4', '^4.9.5'],
67-
'uuid': ['^9.0.0'],
68-
'semver': ['^7.5.4'],
64+
prettier: ['^2.2.1', '^2.8.4'],
65+
rimraf: ['^3.0.2', '^4.4.0'],
66+
typescript: ['^4.7.4', '^4.9.5'],
67+
uuid: ['^9.0.0'],
68+
semver: ['^7.5.4'],
6969
};
7070

7171
/**

0 commit comments

Comments
 (0)