Skip to content

Commit

Permalink
Merge pull request #2026 from aeternity/release/14.0.0
Browse files Browse the repository at this point in the history
Release 14.0.0
  • Loading branch information
davidyuk authored Oct 20, 2024
2 parents 8cf3b9f + a40b06b commit 3d74f53
Show file tree
Hide file tree
Showing 329 changed files with 27,994 additions and 15,653 deletions.
141 changes: 141 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
const path = require('path');

require('eslint-plugin-rulesdir').RULES_DIR = path.resolve(__dirname, 'tooling/eslint-rules');

module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: ['plugin:@typescript-eslint/recommended'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 13,
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'rulesdir', 'import'],
ignorePatterns: [
'dist',
'es',
'src/apis',
'docs/api',
'test/environment/ledger/browser',
'docs/examples',
'site',
'examples/browser/tools',
],
rules: {
'rulesdir/tsdoc-syntax': 'error',
'no-spaced-func': 'off',
// TODO: enable rules from below
'no-underscore-dangle': 'off',
'no-param-reassign': 'off',
'no-console': 'off',
'no-await-in-loop': 'off',
'no-void': 'off',
},
overrides: [
{
files: '*.ts',
extends: [
'airbnb-typescript/base',
// TODO: enable extends from below
// 'plugin:@typescript-eslint/recommended-requiring-type-checking',
],
parserOptions: {
project: './tsconfig.eslint.json',
},
rules: {
'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/consistent-type-assertions': [
'error',
{ assertionStyle: 'as', objectLiteralTypeAssertions: 'never' },
],
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/explicit-function-return-type': [
'error',
{
allowExpressions: true,
allowHigherOrderFunctions: true,
allowTypedFunctionExpressions: true,
allowDirectConstAssertionInArrowFunctions: true,
},
],
'@typescript-eslint/member-delimiter-style': 'error',
'@typescript-eslint/method-signature-style': 'error',
'@typescript-eslint/no-base-to-string': 'error',
'@typescript-eslint/no-dynamic-delete': 'error',
// by default allowSingleExtends is false that breaks interfaces for documentation
'@typescript-eslint/no-empty-interface': ['error', { allowSingleExtends: true }],
'@typescript-eslint/no-extraneous-class': ['error', { allowWithDecorator: true }],
'@typescript-eslint/no-invalid-void-type': 'error',
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-nullish-coalescing': [
'error',
{ ignoreConditionalTests: false, ignoreMixedLogicalExpressions: false },
],
'@typescript-eslint/prefer-optional-chain': 'error',
'@typescript-eslint/prefer-readonly': 'error',
'@typescript-eslint/prefer-reduce-type-parameter': 'error',
'@typescript-eslint/prefer-ts-expect-error': 'error',
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/require-array-sort-compare': ['error', { ignoreStringArrays: true }],
'@typescript-eslint/strict-boolean-expressions': [
'error',
{
allowString: false,
allowNumber: false,
allowNullableObject: false,
allowNullableBoolean: false,
allowNullableString: false,
allowNullableNumber: false,
allowAny: false,
},
],
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/indent': 'off',
// TODO: enable rules from below
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-types': 'off',
},
},
{
files: 'tooling/**/*',
rules: {
'import/no-extraneous-dependencies': 'off',
'no-console': 'off',
},
},
{
files: 'test/**/*',
rules: {
'no-underscore-dangle': 'off',
// TODO: enable rules from below
'no-console': 'off',
},
},
{
files: 'examples/**/*',
rules: {
'no-console': 'off',
'no-alert': 'off',
'no-restricted-globals': 'off',
'import/no-unresolved': 'off',
},
},
{
files: 'examples/node/**/*',
rules: { 'no-restricted-syntax': 'off' },
},
{
files: ['tooling/**/*', 'examples/node/*', '**/*.config.js', '.eslintrc.js'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
},
},
],
};
121 changes: 0 additions & 121 deletions .eslintrc.js

This file was deleted.

14 changes: 7 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:

1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
Expand All @@ -25,11 +25,11 @@ If applicable, add screenshots to help explain your problem.

**Please tell us about your environment:**

- Node Version: v0.0.0
- Protocol Version: 1
- Compiler version: v0.0.0
- VM Version: fate | fate2
- SDK Version: v0.0.0
- Python version: v3.7.0
- Node Version: v0.0.0
- Protocol Version: 1
- Compiler version: v0.0.0
- VM Version: fate | fate2
- SDK Version: v0.0.0
- Python version: v3.7.0

**Other information** (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. forum, telegram, etc)
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ about: Suggest an idea for this project
title: ''
labels: feature
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: "CodeQL"
name: CodeQL

on:
push:
branches: [ "develop", "master" ]
branches: [develop, master]
pull_request:
branches: [ "develop" ]
branches: [develop]
schedule:
- cron: "59 6 * * 2"
- cron: 59 6 * * 2

jobs:
analyze:
Expand All @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: [ javascript ]
language: [javascript]

steps:
- name: Checkout
Expand All @@ -38,4 +38,4 @@ jobs:
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"
category: /language:${{ matrix.language }}
30 changes: 0 additions & 30 deletions .github/workflows/docs-develop.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/docs-release.yml

This file was deleted.

Loading

0 comments on commit 3d74f53

Please sign in to comment.