Skip to content

Commit

Permalink
Merge pull request #465 from api3dao/main
Browse files Browse the repository at this point in the history
Initiate release
  • Loading branch information
hiletmis authored Oct 14, 2024
2 parents 45236ed + 5a75b6a commit 5ff1714
Show file tree
Hide file tree
Showing 25 changed files with 1,877 additions and 148 deletions.
5 changes: 5 additions & 0 deletions .changeset/fresh-foxes-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@api3/chains': patch
---

Use api3/eslint-plugin-commons and apply lints
6 changes: 6 additions & 0 deletions .changeset/slow-boxes-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@api3/chains': minor
---

Adds following chain:
* unichain-sepolia-testnet
2 changes: 2 additions & 0 deletions .changeset/strange-parents-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
dist/
node_modules/
coverage/
jest.config.js
.eslintrc.js
39 changes: 15 additions & 24 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,16 @@ module.exports = {
es6: true,
node: true,
},
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:import/recommended',
'plugin:import/typescript',
],
plugins: ['@typescript-eslint', 'import'],
extends: ['plugin:@api3/eslint-plugin-commons/universal', 'plugin:@api3/eslint-plugin-commons/jest'],
parserOptions: {
project: ['./tsconfig.json', './tsconfig.eslint.json'],
},
rules: {
// TypeScript
'@typescript-eslint/ban-ts-comment': 0,
'@typescript-eslint/ban-ts-ignore': 0,
'@typescript-eslint/ban-types': 0,
'@typescript-eslint/camelcase': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/explicit-module-boundary-types': 0,
// Turning off, because it conflicts with prettier
'@typescript-eslint/indent': ['off'],
'@typescript-eslint/no-empty-function': 0,
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/no-non-null-assertion': 0,
// Leave vars as 'all' to force everything to be handled when pattern matching
// Variables can be ignored by prefixing with an '_'
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_', vars: 'all' }],
'@typescript-eslint/no-use-before-define': 0,
'@typescript-eslint/no-var-requires': 0,

// eslint-plugin-import
'import/namespace': [2, { allowComputed: true }],
Expand All @@ -42,9 +25,6 @@ module.exports = {
],

// ESLint
'comma-dangle': [2, 'only-multiline'],
eqeqeq: ['error', 'smart'],
indent: 'off',
'no-console': 0,
'no-useless-escape': 0,
semi: 2,
Expand All @@ -54,5 +34,16 @@ module.exports = {
ignoreDeclarationSort: true,
},
],

// Jest
'jest/no-conditional-in-test': 0,

// Unicorn
'unicorn/prefer-string-replace-all': 0,
'unicorn/prefer-type-error': 0,

// Lodash
'lodash/prefer-lodash-typecheck': 0,
'lodash/prefer-noop': 0,
},
};
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ jobs:

- name: Create pull request
if: steps.changesets.outputs.published == 'true'
run: gh pr create -B main -H production --title 'Merge production into main' --body 'Merges production into main' --reviewer andreogle
run: gh pr create -B main -H production --title 'Merge production into main' --body 'Merges production into main' --reviewer hiletmis
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23 changes: 23 additions & 0 deletions chains/unichain-sepolia-testnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"alias": "unichain-sepolia-testnet",
"decimals": 18,
"explorer": {
"api": {
"key": {
"required": true
},
"url": "https://api-sepolia.uniscan.xyz/api"
},
"browserUrl": "https://sepolia.uniscan.xyz/"
},
"id": "1301",
"name": "Unichain testnet",
"providers": [
{
"alias": "default",
"rpcUrl": "https://sepolia.unichain.org"
}
],
"symbol": "ETH",
"testnet": true
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@api3/eslint-plugin-commons": "3.0.0",
"@api3/promise-utils": "^0.4.0",
"@changesets/cli": "^2.27.7",
"@slack/web-api": "^7.3.4",
Expand Down
Loading

0 comments on commit 5ff1714

Please sign in to comment.