Skip to content

Commit

Permalink
fix: use const over let (#89)
Browse files Browse the repository at this point in the history
* fix: use const over let

and updated project
  • Loading branch information
unional committed Jan 3, 2022
1 parent 02c83c5 commit 569ef8e
Show file tree
Hide file tree
Showing 35 changed files with 8,307 additions and 8,505 deletions.
112 changes: 0 additions & 112 deletions .circleci/config.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
dist*
cjs
esm
lib*
out*
17 changes: 15 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,20 @@
"extends": "plugin:harmony/latest",
"root": true,
"env": {
"es6": true,
"node": true,
"es6": true
}
"jest": true
},
"overrides": [
{
"extends": "plugin:harmony/ts-recommended",
"files": [
"*.ts",
"*.tsx"
],
"rules": {
"no-use-before-define": "off"
}
}
]
}
70 changes: 70 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '40 14 * * 1'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
21 changes: 21 additions & 0 deletions .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: nodejs
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize]
jobs:
build:
uses: unional/.github/.github/workflows/typescript-build.yml@main
secrets:
codacy-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
test:
uses: unional/.github/.github/workflows/typescript-test.yml@main
needs: build
release:
if: github.ref == 'refs/heads/main'
uses: unional/.github/.github/workflows/npm-release.yml@main
needs: test
secrets:
npm-token: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ lib-cov
coverage
.nyc_output
.progress
.reports

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand All @@ -42,6 +43,8 @@ node_modules
.idea

# project folders
cjs
dist*
esm
lib*
out*
1 change: 1 addition & 0 deletions .markdownlistignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
LICENSE
7 changes: 7 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"branches": [
"main",
"next",
"beta"
]
}
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
],
"url": "http://json.schemastore.org/tsconfig"
}
],
"cSpell.words": [
"libm"
]
}
27 changes: 0 additions & 27 deletions .vscode/tasks.json

This file was deleted.

20 changes: 20 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
['@babel/preset-typescript', {
allowNamespaces: true
}],
],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-optional-chaining',
'@babel/plugin-proposal-nullish-coalescing-operator'
],
};
2 changes: 1 addition & 1 deletion dist/color-map.es5.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions jest.config.js

This file was deleted.

42 changes: 42 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"collectCoverageFrom": [
"<rootDir>/ts/**/*.[jt]s",
"!<rootDir>/ts/bin.[jt]s",
"!<rootDir>/ts/type-checker/*"
],
"reporters": [
"default",
"jest-progress-tracker",
[
"jest-junit",
{
"outputDirectory": ".reports/junit",
"outputName": "js-test-results.xml"
}
]
],
"roots": [
"<rootDir>/ts"
],
"testEnvironment": "node",
"testMatch": [
"**/?(*.)+(spec|test|integrate|accept|system|unit).[jt]s?(x)"
],
"watchPlugins": [
"jest-watch-suspend",
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname",
[
"jest-watch-toggle-config",
{
"setting": "verbose"
}
],
[
"jest-watch-toggle-config",
{
"setting": "collectCoverage"
}
]
]
}

0 comments on commit 569ef8e

Please sign in to comment.