Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 7 additions & 15 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
import globals from 'globals';
import { defineConfig } from 'eslint/config';

import { frontend, recommended, javascript, typescript } from '@polygonlabs/apps-team-lint';
import { recommended, typescript } from '@polygonlabs/apps-team-lint';

export default [
...recommended(),
...javascript({ globals: 'node' }),
...typescript({ tsconfigRootDir: import.meta.dirname }),
...frontend(),
{
files: ['packages/polygon-agent-cli/**/*.ts'],
languageOptions: { globals: { ...globals.node } }
},
{
ignores: ['.claude/**', '**/dist/**']
}
];
export default defineConfig([
...recommended({ globals: 'node' }),
...typescript(),
{ ignores: ['.claude/**', '**/dist/**'] }
]);
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@
"packageManager": "pnpm@10.30.3",
"scripts": {
"prepare": "husky",
"lint": "concurrently --group --prefix-colors auto 'pnpm:lint:ts' 'pnpm:typecheck' 'prettier --check .'",
"lint:ts": "eslint .",
"format": "pnpm run format:ts && prettier --write .",
"format:ts": "eslint . --fix",
"lint": "eslint .",
"format": "eslint . --fix && prettier --write .",
"build": "pnpm -r run build",
"typecheck": "pnpm -r run typecheck",
"polygon-agent": "node packages/polygon-agent-cli/src/index.ts"
Expand All @@ -20,12 +18,11 @@
"devDependencies": {
"@commitlint/cli": "^20.4.2",
"@commitlint/config-conventional": "^20.4.2",
"@polygonlabs/apps-team-lint": "^0.1.0",
"@polygonlabs/apps-team-lint": "^1.0.0",
"@tsconfig/node24": "^24.0.4",
"@tsconfig/node-ts": "^23.6.4",
"concurrently": "^9.2.1",
"eslint": "^9.39.3",
"globals": "^17.4.0",
"eslint": "^10.0.0",
"husky": "^9.1.7",
"lint-staged": "^16.2.7",
"lerna": "^9.0.5",
Expand Down
10 changes: 10 additions & 0 deletions packages/connector-ui/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineConfig } from 'eslint/config';

import { frontend, recommended, typescript } from '@polygonlabs/apps-team-lint';

export default defineConfig([
...recommended({ globals: 'browser' }),
...typescript({ tsconfigRootDir: import.meta.dirname }),
...frontend(),
{ ignores: ['dist/**'] }
]);
1 change: 1 addition & 0 deletions packages/connector-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"dev": "vite",
"build": "tsc -b && vite build",
"preview": "vite preview",
"lint": "eslint .",
"start": "serve dist -s -l ${PORT:-3000}",
"postinstall": "(cp -n .env.example .env) || echo already exists",
"typecheck": "tsc --noEmit"
Expand Down
9 changes: 9 additions & 0 deletions packages/polygon-agent-cli/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineConfig } from 'eslint/config';

import { recommended, typescript } from '@polygonlabs/apps-team-lint';

export default defineConfig([
...recommended({ globals: 'node' }),
...typescript({ tsconfigRootDir: import.meta.dirname }),
{ ignores: ['dist/**'] }
]);
1 change: 1 addition & 0 deletions packages/polygon-agent-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"build": "tsc -p tsconfig.build.json",
"prepublishOnly": "pnpm run build",
"dev": "node src/index.ts",
"lint": "eslint .",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand Down
Loading
Loading