Skip to content
This repository has been archived by the owner on Aug 5, 2019. It is now read-only.

Commit

Permalink
Typescript rewrite
Browse files Browse the repository at this point in the history
This originated as a new codebase, following the currently unreleased
ssz rewrite ethereum/consensus-specs#696
  • Loading branch information
wemeetagain committed Mar 1, 2019
1 parent 62408ba commit 08a3299
Show file tree
Hide file tree
Showing 36 changed files with 6,262 additions and 4,680 deletions.
15 changes: 15 additions & 0 deletions .babel-register
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
See
https://github.com/babel/babel/issues/8652
https://github.com/babel/babel/pull/6027
Babel isn't currently configured by default to read .ts files and
can only be configured to do so via cli or configuration below.

This file is used by mocha to interpret test files using a properly
configured babel.

This can (probably) be removed in babel 8.x.
*/
require('@babel/register')({
extensions: ['.ts'],
})
10 changes: 10 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
"@babel/env",
"@babel/typescript"
],
"plugins": [
"@babel/proposal-class-properties",
"@babel/proposal-object-rest-spread"
]
}
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ jobs:

- run:
name: Check API
command: npm run docs && ./test-diff.sh
command: npm run build-docs && ./test-diff.sh
workflows:
version: 2
lint_and_test:
jobs:
- lint
- test
- test
22 changes: 22 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"max-line-length": {
"options": [180]
},
"new-parens": "error",
"no-caller": "error",
"no-bitwise": "off",
"@typescript-eslint/indent": ["error", 2],
"@typescript-eslint/no-use-before-define": "off",
"no-conditional-assignment": true,
"no-consecutive-blank-lines": false,
"object-literal-sort-keys": false,
"no-console": "warn"
}
}
8 changes: 5 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
.vscode
.idea/
.nyc_output/
coverage/
dist/
lib/
node_modules/
107 changes: 0 additions & 107 deletions API.md

This file was deleted.

202 changes: 0 additions & 202 deletions LICENSE

This file was deleted.

Loading

0 comments on commit 08a3299

Please sign in to comment.