Skip to content
This repository was archived by the owner on Mar 23, 2023. It is now read-only.

Commit 6a91f81

Browse files
authored
Merge pull request #549 from ArkEcosystem/develop
release: 1.8.0
2 parents 0252946 + 2a0bfd0 commit 6a91f81

File tree

265 files changed

+26472
-17010
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+26472
-17010
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
coverage

.eslintrc.json

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"project": "./tsconfig.eslint.json"
5+
},
6+
"plugins": [
7+
"@typescript-eslint",
8+
"prettier",
9+
"simple-import-sort",
10+
"html",
11+
"unused-imports"
12+
],
13+
"extends": [
14+
"eslint:recommended",
15+
"plugin:@typescript-eslint/eslint-recommended",
16+
"plugin:@typescript-eslint/recommended-requiring-type-checking",
17+
"plugin:@typescript-eslint/recommended",
18+
"plugin:prettier/recommended",
19+
"prettier/@typescript-eslint"
20+
],
21+
"rules": {
22+
"@typescript-eslint/prefer-string-starts-ends-with": "off",
23+
"@typescript-eslint/no-this-alias": "off",
24+
"@typescript-eslint/await-thenable": "off",
25+
"@typescript-eslint/ban-ts-ignore": "off",
26+
"@typescript-eslint/camelcase": "off",
27+
"@typescript-eslint/explicit-function-return-type": "off",
28+
"@typescript-eslint/explicit-member-accessibility": ["off"],
29+
"@typescript-eslint/interface-name-prefix": "off",
30+
"@typescript-eslint/member-ordering": ["error"],
31+
"@typescript-eslint/no-empty-function": "off",
32+
"@typescript-eslint/no-empty-interface": "off",
33+
"@typescript-eslint/no-explicit-any": "off",
34+
"@typescript-eslint/no-inferrable-types": "off",
35+
"@typescript-eslint/no-misused-promises": "off",
36+
"@typescript-eslint/no-namespace": "off",
37+
"@typescript-eslint/no-non-null-assertion": "off",
38+
"@typescript-eslint/no-unnecessary-condition": "off",
39+
"@typescript-eslint/no-unused-vars": "off",
40+
"@typescript-eslint/no-var-requires": "off",
41+
"@typescript-eslint/prefer-regexp-exec": "off",
42+
"@typescript-eslint/require-await": "off",
43+
"@typescript-eslint/unbound-method": "off",
44+
"no-async-promise-executor": "off",
45+
"no-empty": "off",
46+
"no-inferrable-types": "off",
47+
"no-prototype-builtins": "off",
48+
"prefer-const": [
49+
"error",
50+
{
51+
"destructuring": "all"
52+
}
53+
],
54+
"prettier/prettier": "error",
55+
"require-atomic-updates": "off",
56+
"simple-import-sort/sort": "error",
57+
"unused-imports/no-unused-imports-ts": "error"
58+
}
59+
}

.github/workflows/lint.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ jobs:
2121
uses: actions/setup-node@v1
2222
with:
2323
node-version: ${{ matrix.node-version }}
24-
- name: Install pre dependencies
25-
run: npm install -g ionic cordova
2624
- name: Install
27-
run: npm rebuild node-sass && npm install
25+
run: npm install --ignore-scripts
2826
- name: Lint
2927
run: npm run lint

.github/workflows/test.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
uses: actions/setup-node@v1
2222
with:
2323
node-version: ${{ matrix.node-version }}
24-
- name: Install pre dependencies
25-
run: npm i -g ionic cordova
2624
- name: Install
27-
run: npm rebuild node-sass && npm install
25+
run: npm install --ignore-scripts
2826
- name: Test
2927
run: npm run test:coverage
3028
- name: Build
3129
run: npm run build -- --prod
30+
- name: Codecov
31+
run: ./node_modules/.bin/codecov --token=${{ secrets.CODECOV_TOKEN }}
3232

3333
e2e:
3434
runs-on: ubuntu-latest
@@ -43,11 +43,7 @@ jobs:
4343
uses: actions/setup-node@v1
4444
with:
4545
node-version: ${{ matrix.node-version }}
46-
- name: Install pre dependencies
47-
run: npm i -g ionic cordova
4846
- name: Install
49-
run: npm rebuild node-sass && npm install
47+
run: npm install --ignore-scripts
5048
- name: Test
51-
run: npm run test:e2e
52-
- name: Build
53-
run: npm run build -- --prod
49+
run: npm run test:e2e -- --prod

.lintstagedrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"*.ts": ["tslint -c tslint.json --fix", "prettier --write"],
3-
"src/**/*.ts": ["ng-lint-staged lint --fix --"],
2+
"*.ts": ["prettier --write", "eslint --fix"],
43
"*.{css,pcss,scss,html,json,md,js}": ["prettier --write"]
54
}

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
coverage

.storybook/main.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
stories: ["../src/**/*.stories.[tj]s"],
3+
webpackFinal: config => {
4+
config.module.rules.push({
5+
test: /\.(scss|pcss)$/,
6+
loader: "postcss-loader",
7+
options: {
8+
ident: "postcss",
9+
syntax: "postcss-scss",
10+
plugins: () => [
11+
require("postcss-import"),
12+
require("tailwindcss"),
13+
require("postcss-nested"),
14+
require("autoprefixer"),
15+
],
16+
},
17+
});
18+
19+
return config;
20+
},
21+
};

.storybook/preview.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { addDecorator } from "@storybook/angular";
2+
import { IonicModule } from "@ionic/angular";
3+
import { moduleMetadata } from "@storybook/angular";
4+
import { TranslateModule, TranslateLoader } from "@ngx-translate/core";
5+
import { of } from "rxjs";
6+
// @ts-ignore
7+
import enLocale from "../src/assets/i18n/en.json";
8+
9+
class CustomLoader implements TranslateLoader {
10+
getTranslation(lang: string) {
11+
return of(enLocale);
12+
}
13+
}
14+
15+
addDecorator(
16+
moduleMetadata({
17+
imports: [
18+
IonicModule.forRoot(),
19+
TranslateModule.forRoot({
20+
loader: { provide: TranslateLoader, useClass: CustomLoader },
21+
defaultLanguage: "en",
22+
}),
23+
],
24+
}),
25+
);

.storybook/tsconfig.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"resolveJsonModule": true
5+
},
6+
"exclude": ["../src/test.ts", "../src/**/*.spec.ts"],
7+
"include": ["../src/**/*"]
8+
}

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @luciorubeens @alexbarnsley
1+
* @luciorubeens @clucasalcantara

0 commit comments

Comments
 (0)