-
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate codebase on TypeScript; remove babel; migrate on gi…
…tlab actions; update dev dependencies. BREAKING CHANGE: remove Flowtype declarations. There is no code changes but build now uses `tsc` instead of `babel`.
- Loading branch information
Showing
67 changed files
with
4,978 additions
and
14,215 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,5 +1,6 @@ | ||
flow-typed | ||
lib | ||
mjs | ||
esm | ||
dist | ||
dist | ||
coverage | ||
*.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,46 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint', 'prettier'], | ||
extends: ['plugin:@typescript-eslint/recommended', 'prettier', 'plugin:prettier/recommended'], | ||
parserOptions: { | ||
sourceType: 'module', | ||
useJSXTextNode: true, | ||
project: [path.resolve(__dirname, 'tsconfig.json')], | ||
}, | ||
rules: { | ||
'no-underscore-dangle': 0, | ||
'arrow-body-style': 0, | ||
'no-unused-expressions': 0, | ||
'no-plusplus': 0, | ||
'no-console': 0, | ||
'func-names': 0, | ||
'comma-dangle': [ | ||
'error', | ||
{ | ||
arrays: 'always-multiline', | ||
objects: 'always-multiline', | ||
imports: 'always-multiline', | ||
exports: 'always-multiline', | ||
functions: 'ignore', | ||
}, | ||
], | ||
'no-prototype-builtins': 0, | ||
'prefer-destructuring': 0, | ||
'no-else-return': 0, | ||
'lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }], | ||
'@typescript-eslint/explicit-member-accessibility': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/no-inferrable-types': 0, | ||
'@typescript-eslint/explicit-function-return-type': 0, | ||
'@typescript-eslint/no-use-before-define': 0, | ||
'@typescript-eslint/no-empty-function': 0, | ||
'@typescript-eslint/camelcase': 0, | ||
'@typescript-eslint/ban-ts-comment': 0, | ||
}, | ||
env: { | ||
jasmine: true, | ||
jest: 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,12 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [nodkz] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Patreon username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
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 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Node.js CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
- name: Install node_modules | ||
run: yarn | ||
- name: Test – Jest | ||
run: yarn coverage | ||
env: | ||
CI: true | ||
- name: Test – Eslint | ||
run: yarn eslint | ||
- name: Test – TSCheck | ||
run: yarn tscheck | ||
- name: Publish Test Report | ||
uses: mikepenz/action-junit-report@v2 | ||
with: | ||
check_name: JUnit Annotations for Node ${{ matrix.node-version }} | ||
report_paths: '**/coverage/junit/**/*.xml' | ||
- name: Send codecov.io stats | ||
run: bash <(curl -s https://codecov.io/bash) || echo '' | ||
|
||
publish: | ||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/alpha' || github.ref == 'refs/heads/beta' | ||
needs: [tests] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 14 | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- name: Install node_modules | ||
run: yarn install | ||
- name: Build | ||
run: yarn build | ||
- name: Semantic Release (publish to npm) | ||
run: yarn 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"singleQuote": true, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"printWidth": 100, | ||
"trailingComma": "es5" | ||
} |
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 |
---|---|---|
@@ -1,3 +1,11 @@ | ||
{ | ||
"javascript.validate.enable": false | ||
"javascript.validate.enable": false, | ||
"cSpell.words": [ | ||
"constantize", | ||
"Declention", | ||
"firstname", | ||
"lastname", | ||
"lvovich", | ||
"middlename" | ||
] | ||
} |
Oops, something went wrong.