Skip to content

Commit

Permalink
Improve linter configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
sembrestels committed Sep 19, 2024
1 parent b627701 commit 0fdd6a1
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 56 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ node_modules

# Testing
coverage
coverage.json

# Turbo
.turbo
Expand All @@ -27,12 +28,22 @@ out/
build
dist

# Subgraph
generated/

# Hardhat
artifacts/
cache/

# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Logs
logs
*.log

# Misc
.DS_Store
*.pem
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
cd contracts/councilhaus
npx hardhat clean
cd ../..
bun run format-and-lint:fix
git update-index --again
16 changes: 15 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,28 @@
},
"linter": {
"enabled": true,
"ignore": ["contracts/councilhaus-subgraph/generated/**"],
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "off"
}
}
},
"overrides": [
{
"include": ["contracts/councilhaus-subgraph/**"],
"linter": {
"rules": {
"suspicious": {
"noShadowRestrictedNames": "off"
},
"style": {
"useImportType": "off"
}
}
}
}
],
"vcs": {
"enabled": true,
"useIgnoreFile": true,
Expand Down
35 changes: 0 additions & 35 deletions contracts/councilhaus-subgraph/.gitignore
Original file line number Diff line number Diff line change
@@ -1,38 +1,3 @@
# Abis and subgraph.yaml
abis/
subgraph.yaml

# Graph CLI generated artifacts
build/
generated/

# Dependency directories
node_modules/
jspm_packages/

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# dotenv environment variables file
.env

# Testing
coverage
coverage.json

# Typechain
typechain
typechain-types

# Hardhat files
cache
2 changes: 1 addition & 1 deletion contracts/councilhaus-subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "AGPL-3.0-only",
"scripts": {
"codegen": "graph codegen",
"build": "graph build",
"build": "bun prepare:optimism && bun codegen && graph build",
"deploy": "graph deploy --node https://api.studio.thegraph.com/deploy/ councilhaus-optimism",
"prepare:optimism": "mustache config/optimism.json subgraph.template.yaml > subgraph.yaml",
"create-local": "graph create --node http://localhost:8020/ councilhaus-optimism",
Expand Down
1 change: 0 additions & 1 deletion contracts/councilhaus-subgraph/src/council.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// biome-ignore lint/suspicious/noShadowRestrictedNames: x
import { BigInt } from "@graphprotocol/graph-ts";
import { log } from "@graphprotocol/graph-ts";
import { Allocation, CouncilMember, Grantee } from "../generated/schema";
Expand Down
15 changes: 0 additions & 15 deletions contracts/councilhaus/.gitignore

This file was deleted.

0 comments on commit 0fdd6a1

Please sign in to comment.