Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Merge branch 'release/5.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
shuse2 committed Nov 30, 2020
2 parents d74fad8 + 65be24e commit 13073ab
Show file tree
Hide file tree
Showing 1,969 changed files with 126,901 additions and 281,176 deletions.
8 changes: 6 additions & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
commander/
docs/
elements/
lisk/
templates/
types/
examples/
**/*.d.ts
jest.config.js
coverage
benchmark
.eslintrc.js
74 changes: 74 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.json',
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint'],
extends: [
'lisk-base/base',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier/@typescript-eslint',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
],
rules: {
'max-len': 'off', // Managed by prettier
'no-underscore-dangle': 'off', // Used for private variables and methods
'implicit-arrow-linebreak': 'off', // Prefered
'no-mixed-spaces-and-tabs': 'off', // Managed by prettier
'operator-linebreak': 'off',
'import/prefer-default-export': 'off',
'lines-between-class-members': 'off', // Off because typescript has members and methods
'no-continue': 'off',
'no-useless-constructor': 'off',
'no-unused-expressions': 'off',
'@typescript-eslint/consistent-type-assertions': ['error'],
'@typescript-eslint/explicit-member-accessibility': ['error'],
'@typescript-eslint/member-delimiter-style': ['error'],
'@typescript-eslint/member-ordering': ['error'],
'@typescript-eslint/no-extraneous-class': ['error'],
'@typescript-eslint/no-unnecessary-boolean-literal-compare': ['error'],
'@typescript-eslint/no-unnecessary-qualifier': ['error'],
'@typescript-eslint/no-unnecessary-type-arguments': ['error'],
'@typescript-eslint/prefer-for-of': ['error'],
'@typescript-eslint/prefer-function-type': ['error'],
'@typescript-eslint/prefer-includes': ['error'],
'@typescript-eslint/prefer-nullish-coalescing': ['error'],
'@typescript-eslint/prefer-optional-chain': ['error'],
'@typescript-eslint/prefer-readonly': ['error'],
'@typescript-eslint/prefer-reduce-type-parameter': ['error'],
'@typescript-eslint/prefer-string-starts-ends-with': ['error'],
'@typescript-eslint/prefer-ts-expect-error': ['error'],
'@typescript-eslint/promise-function-async': ['error'],
'@typescript-eslint/require-array-sort-compare': ['error'],
'@typescript-eslint/switch-exhaustiveness-check': ['error'],
'@typescript-eslint/type-annotation-spacing': ['error'],
'@typescript-eslint/unified-signatures': ['error'],
'@typescript-eslint/no-unused-expressions': ['error'],
'@typescript-eslint/no-useless-constructor': ['error'],
'@typescript-eslint/ban-types': 'warn',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/restrict-template-expressions': [
'error',
{
allowNumber: true,
allowBoolean: true,
},
],
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
ts: 'never',
},
],
},
globals: {
BigInt: true,
},
};
11 changes: 0 additions & 11 deletions .eslintrc.json

This file was deleted.

18 changes: 18 additions & 0 deletions .eslintrc.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
extends: ['.eslintrc.js', 'lisk-base/jest'],
rules: {
'arrow-body-style': 'off',
'dot-notation': 'off',
'jest/no-conditional-expect': 'off',
'jest/valid-title': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-magic-numbers': 'off',
'@typescript-eslint/unbound-method': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
},
};
4 changes: 2 additions & 2 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"*.js": ["prettier --write", "eslint"],
"*.ts": ["prettier --write", "tslint --format verbose"],
"*.js": ["prettier --write"],
"*.ts": ["prettier --write", "eslint"],
"*.{json,md}": ["prettier --write"]
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.14.1
12.20.0
1 change: 0 additions & 1 deletion .nycrc

This file was deleted.

13 changes: 13 additions & 0 deletions Jenkinsfile.audit
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
pipeline {
agent { node { label 'lisk-sdk' } }
stages {
stage('yarn audit') {
steps {
nvm(readFile(".nvmrc").trim()) {
sh 'yarn audit'
}
}
}
}
}
// vim: filetype=groovy
Loading

0 comments on commit 13073ab

Please sign in to comment.