-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from AcalaNetwork/fix-infra
updated infra
- Loading branch information
Showing
46 changed files
with
1,762 additions
and
7,920 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
**/build/* | ||
**/dist/* | ||
**/coverage/* | ||
**/node_modules/* | ||
**/configs/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,64 @@ | ||
const base = require('@polkadot/dev/config/eslint.cjs'); | ||
|
||
module.exports = { | ||
...base, | ||
ignorePatterns: [ | ||
'.eslintrc.js', | ||
'.github/**', | ||
'.vscode/**', | ||
'.yarn/**', | ||
'**/build/*', | ||
'**/coverage/*', | ||
'**/node_modules/*' | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint', 'import', 'sort-imports-es6-autofix'], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:import/recommended', | ||
'plugin:import/typescript', | ||
], | ||
parserOptions: { | ||
project: ['./tsconfig.eslint.json'] | ||
}, | ||
rules: { | ||
...base.rules, | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'import/extensions': 'off', | ||
'header/header': 'off', | ||
'sort-keys': 'off', | ||
'@typescript-eslint/no-unsafe-assignment': 'off', | ||
'@typescript-eslint/no-unsafe-member-access': 'off', | ||
'@typescript-eslint/no-unsafe-return': 'off', | ||
} | ||
indent: [2, 2, { SwitchCase: 1 }], | ||
quotes: [2, 'single'], | ||
semi: [1, 'always'], | ||
'no-trailing-spaces': [2], | ||
'quote-props': [2, 'as-needed'], | ||
'eol-last': [2, 'always'], | ||
'object-curly-spacing': [2, 'always'], | ||
'comma-dangle': [2, { | ||
arrays: 'always-multiline', | ||
objects: 'always-multiline', | ||
imports: 'always-multiline', | ||
exports: 'always-multiline', | ||
functions: 'only-multiline', | ||
}], | ||
|
||
/* ---------- turn off ---------- */ | ||
'@typescript-eslint/no-extra-semi': 0, | ||
'@typescript-eslint/no-use-before-define': 0, | ||
'@typescript-eslint/explicit-member-accessibility': 0, | ||
'@typescript-eslint/naming-convention': 0, | ||
'@typescript-eslint/no-explicit-any': 0, // any is sometimes unavoidable | ||
'@typescript-eslint/consistent-type-definitions': 0, // can use Type and Interface | ||
'@typescript-eslint/explicit-function-return-type': 0, // type inference on return type is useful | ||
'@typescript-eslint/no-parameter-properties': 0, | ||
'@typescript-eslint/typedef': 0, | ||
'no-unused-expressions': 0, // short ciucuit if | ||
'max-lines': 0, | ||
'@typescript-eslint/no-empty-function': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'sort-imports-es6-autofix/sort-imports-es6': 'warn', | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'no-useless-escape': 'off', | ||
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off', | ||
'import/no-named-as-default-member': 'off', | ||
'import/no-named-as-default': 'off', | ||
'@typescript-eslint/no-non-null-assertion': 'off', | ||
'@typescript-eslint/no-unused-vars': [ | ||
'warn', | ||
{ | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_', | ||
caughtErrorsIgnorePattern: '^_', | ||
}, | ||
], | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
typescript: { | ||
project: './tsconfig.json', | ||
}, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,4 +55,4 @@ jobs: | |
- name: build | ||
run: | | ||
yarn install --immutable | grep -v 'YN0013' | ||
yarn build:release | ||
yarn build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,22 +17,23 @@ | |
], | ||
"scripts": { | ||
"build": "yarn workspaces foreach -pvit run build", | ||
"build:release": "yarn workspaces foreach -pvit run build:release", | ||
"check-deps": "./node_modules/@open-web3/util/scripts/check-deps.js yarn.lock @polkadot/ @open-web3/", | ||
"clean": "polkadot-dev-clean-build", | ||
"lint": "polkadot-dev-run-lint", | ||
"postinstall": "polkadot-dev-yarn-only", | ||
"lint": "eslint . --ext .ts", | ||
"test": "echo noop", | ||
"bump": "yarn workspaces foreach -vit version", | ||
"publish:manual": "yarn workspaces foreach -vit run pub" | ||
"publish": "yarn workspaces foreach -vit run publish:manual" | ||
}, | ||
"devDependencies": { | ||
"@polkadot/api": "^10.9.1", | ||
"@polkadot/dev": "^0.73.11", | ||
"@types/eslint": "^8", | ||
"@types/node": "^20.4.9", | ||
"@typescript-eslint/eslint-plugin": "^6.5.0", | ||
"@typescript-eslint/parser": "^6.5.0", | ||
"eslint": "^8.48.0", | ||
"eslint-import-resolver-typescript": "^3.6.0", | ||
"eslint-plugin-import": "^2.28.1", | ||
"eslint-plugin-sort-imports-es6-autofix": "^0.6.0", | ||
"ts-node": "^10.9.1", | ||
"tsconfig-paths": "^4.2.0", | ||
"typescript": "^5.0.4" | ||
"typescript": "^5.2.2" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.