This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,969 changed files
with
126,901 additions
and
281,176 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,6 +1,10 @@ | ||
commander/ | ||
docs/ | ||
elements/ | ||
lisk/ | ||
templates/ | ||
types/ | ||
examples/ | ||
**/*.d.ts | ||
jest.config.js | ||
coverage | ||
benchmark | ||
.eslintrc.js |
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 |
---|---|---|
@@ -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, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -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', | ||
}, | ||
}; |
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,5 +1,5 @@ | ||
{ | ||
"*.js": ["prettier --write", "eslint"], | ||
"*.ts": ["prettier --write", "tslint --format verbose"], | ||
"*.js": ["prettier --write"], | ||
"*.ts": ["prettier --write", "eslint"], | ||
"*.{json,md}": ["prettier --write"] | ||
} |
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 +1 @@ | ||
12.14.1 | ||
12.20.0 |
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 |
---|---|---|
@@ -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 |
Oops, something went wrong.