Skip to content

Commit 1abb4d3

Browse files
committed
fix: prevent schemas.ts from being linted
1 parent 5381601 commit 1abb4d3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/sdk-analytics/eslint.config.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ const config = createConfig(
66
{
77
// The TypeScript config disables certain rules that you want to keep for
88
// non-TypeScript files, so it should be added in an override.
9-
files: ['src/**/*.ts', '!src/schema.ts'],
10-
ignores: ['dist/**', 'node_modules/**'],
9+
files: ['src/**/*.ts'],
10+
ignores: ['dist/**', 'node_modules/**', 'src/schema.ts'],
1111
extends: [
1212
// This should be added last unless you know what you're doing.
1313
...base,

packages/sdk-analytics/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"types": "dist/index.d.ts",
77
"scripts": {
88
"build": "tsup src/index.ts --dts",
9-
"lint": "eslint src --ext .ts,.tsx",
10-
"lint:fix": "eslint src --ext .ts,.tsx --fix",
9+
"lint": "eslint src --ext .ts,.tsx --ignore-pattern 'src/schema.ts'",
10+
"lint:fix": "eslint src --ext .ts,.tsx --fix --ignore-pattern 'src/schema.ts'",
1111
"test": "vitest",
1212
"test:ci": "vitest --run",
1313
"allow-scripts": ""

0 commit comments

Comments
 (0)