supercop.ts

cross-compiled javascript implementation of ed25519 based on supercop-ref10
git clone git://git.finwo.net/lib/supercop.ts
Log | Files | Refs | README | LICENSE

commit cb9825615a5a4cb58895223b6c8407a7f1cd8cbf
parent 4ae464bdb4a042b84eedcae31d08f58b5274b851
Author: finwo <finwo@pm.me>
Date:   Mon, 17 Jun 2019 20:02:59 +0200

Let's enforce style

Diffstat:
A.editorconfig | 11+++++++++++
A.eslintrc.js | 46++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/.editorconfig b/.editorconfig @@ -0,0 +1,11 @@ +root = true + +[*] +end_of_line = lf +insert_final_newline = true +charset = utf-8 +indent_size = 2 +indent_style = space + +[Makefile*] +indent_style = tab diff --git a/.eslintrc.js b/.eslintrc.js @@ -0,0 +1,46 @@ +module.exports = { + 'env': { + 'browser': true, + 'commonjs': true, + 'es6': true, + 'node': true + }, + 'extends': 'eslint:recommended', + 'globals': { + 'Atomics': 'readonly', + 'SharedArrayBuffer': 'readonly' + }, + 'parserOptions': { + 'ecmaVersion': 2018, + 'sourceType': 'module' + }, + 'rules': { + 'indent': [ + 'error', + 2, + { + 'SwitchCase': 1, + 'VariableDeclarator': 'first' + } + ], + 'linebreak-style': [ + 'error', + 'unix' + ], + 'quotes': [ + 'error', + 'single' + ], + 'semi': [ + 'error', + 'always' + ], + 'no-trailing-spaces': [ + 'error' + ], + 'comma-dangle': [ + 'error', + 'always-multiline' + ] + } +};