fix: add prettier Solidity plugin and configuration
Some checks failed
Integration Tests / test-service-integration (push) Failing after 40s
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 38s
Package Tests / Python package - aitbc-core (push) Successful in 23s
Package Tests / Python package - aitbc-crypto (push) Successful in 20s
Package Tests / Python package - aitbc-sdk (push) Failing after 20s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 7s
Package Tests / JavaScript package - aitbc-token (push) Failing after 7s
Security Scanning / security-scan (push) Has been cancelled
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Failing after 3s
Smart Contract Tests / lint-solidity (push) Failing after 4s
Some checks failed
Integration Tests / test-service-integration (push) Failing after 40s
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 38s
Package Tests / Python package - aitbc-core (push) Successful in 23s
Package Tests / Python package - aitbc-crypto (push) Successful in 20s
Package Tests / Python package - aitbc-sdk (push) Failing after 20s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 7s
Package Tests / JavaScript package - aitbc-token (push) Failing after 7s
Security Scanning / security-scan (push) Has been cancelled
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Failing after 3s
Smart Contract Tests / lint-solidity (push) Failing after 4s
Added @prettier/plugin-solidity package and .prettierrc configuration to enable Solidity file parsing in prettier linting. This fixes the 'No parser could be inferred' error for .sol files.
This commit is contained in:
17
packages/solidity/aitbc-token/.prettierrc
Normal file
17
packages/solidity/aitbc-token/.prettierrc
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"plugins": ["@prettier/plugin-solidity"],
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": "*.sol",
|
||||||
|
"options": {
|
||||||
|
"parser": "solidity-parse",
|
||||||
|
"printWidth": 80,
|
||||||
|
"tabWidth": 2,
|
||||||
|
"useTabs": false,
|
||||||
|
"singleQuote": false,
|
||||||
|
"bracketSpacing": true,
|
||||||
|
"explicitTypes": "always"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -27,6 +27,7 @@
|
|||||||
"ethers": "^6.16.0",
|
"ethers": "^6.16.0",
|
||||||
"hardhat": "^3.3.0",
|
"hardhat": "^3.3.0",
|
||||||
"hardhat-gas-reporter": "^1.0.10",
|
"hardhat-gas-reporter": "^1.0.10",
|
||||||
|
"@prettier/plugin-solidity": "^1.3.1",
|
||||||
"prettier": "^3.2.5",
|
"prettier": "^3.2.5",
|
||||||
"solidity-coverage": "^0.8.4",
|
"solidity-coverage": "^0.8.4",
|
||||||
"ts-node": "^10.9.2",
|
"ts-node": "^10.9.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user