-
Notifications
You must be signed in to change notification settings - Fork 87
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 #109 from batoulapps/develop
v4.4.0
- Loading branch information
Showing
77 changed files
with
15,739 additions
and
23,287 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
/coverage | ||
/lib | ||
/Shared |
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,24 +1,49 @@ | ||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
|
||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: "module", | ||
project: ['./tsconfig.json'], | ||
sourceType: 'module', | ||
}, | ||
|
||
extends: ["eslint:recommended", "plugin:jest/recommended"], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:jest/recommended', | ||
'plugin:jest/style', | ||
'plugin:prettier/recommended', | ||
], | ||
|
||
overrides: [ | ||
{ | ||
files: ['*.js'], | ||
parser: null, | ||
parserOptions: { project: null }, | ||
rules: { | ||
'@typescript-eslint/ban-ts-comment': 'off', | ||
'@typescript-eslint/no-unnecessary-condition': 'off', | ||
}, | ||
}, | ||
], | ||
|
||
env: { | ||
node: true, | ||
browser: true, | ||
"jest/globals": true, | ||
'jest/globals': true, | ||
}, | ||
|
||
rules: { | ||
"complexity": ["warn", 10], | ||
"max-lines": ["warn", 300], | ||
"max-params": ["warn", 5], | ||
"eqeqeq": ["error", "smart"], | ||
"no-var": "error", | ||
"prefer-const": "error", | ||
"object-shorthand": "error", | ||
'@typescript-eslint/ban-ts-comment': 'warn', | ||
'@typescript-eslint/no-unnecessary-condition': 'warn', | ||
complexity: ['warn', 10], | ||
'max-lines': ['warn', 300], | ||
'max-params': ['warn', 5], | ||
eqeqeq: ['error', 'smart'], | ||
'no-var': 'error', | ||
'prefer-const': 'error', | ||
'object-shorthand': 'error', | ||
}, | ||
|
||
plugins: ['@typescript-eslint', 'jest'], | ||
}; |
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 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,23 @@ | ||
name: Release | ||
'on': | ||
push: | ||
branches: | ||
- master | ||
- next | ||
- beta | ||
- '*.x' | ||
jobs: | ||
release: | ||
name: release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: npm | ||
node-version: 16 | ||
- run: npm ci | ||
- run: npx semantic-release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Test | ||
'on': | ||
push: | ||
branches: | ||
- master | ||
- renovate/** | ||
pull_request: | ||
types: | ||
- opened | ||
- synchronize | ||
jobs: | ||
test_matrix: | ||
strategy: | ||
matrix: | ||
node-version: [12, 14, 16, 17] | ||
os: | ||
- ubuntu-latest | ||
runs-on: '${{ matrix.os }}' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: 'Use Node.js ${{ matrix.node-version }}' | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '${{ matrix.node-version }}' | ||
cache: npm | ||
- run: npm ci | ||
- run: npm run test | ||
coverage: | ||
runs-on: ubuntu-latest | ||
needs: test_matrix | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: npm | ||
- run: npm ci | ||
- run: npm run lint | ||
- run: npm run test | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
directory: ./coverage | ||
build: | ||
runs-on: ubuntu-latest | ||
needs: test_matrix | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
cache: npm | ||
- run: npm ci | ||
- run: npm run 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ coverage/ | |
.idea | ||
.vscode/ | ||
.env | ||
lib/ |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx pretty-quick --staged |
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,8 +1,14 @@ | ||
test/ | ||
.github/ | ||
.husky/ | ||
coverage/ | ||
scripts/ | ||
Shared/ | ||
src/ | ||
test/ | ||
coverage/ | ||
*.config.js | ||
.nvmrc | ||
.eslint* | ||
.prettier* | ||
.releaserc.json | ||
example.html | ||
.travis.yml | ||
jest.config.js | ||
babel.config.js | ||
webpack.config.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,2 @@ | ||
/lib | ||
/Shared |
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,9 @@ | ||
{ | ||
"endOfLine": "lf", | ||
"tabWidth": 2, | ||
"arrowParens": "always", | ||
"bracketSpacing": true, | ||
"semi": true, | ||
"singleQuote": true, | ||
"trailingComma": "all" | ||
} |
Oops, something went wrong.