Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
presets: [
[
"@babel/preset-env",
],
],
};
39 changes: 8 additions & 31 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,41 +1,18 @@
{
"extends": "eslint:recommended",

"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"env": {
"es6": true,
"node": true,
"browser": true,
"mocha": true
},

"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"arrow-parens": 2,
"arrow-spacing": [2, {"before": true, "after": true}],
"brace-style": [1, "1tbs"],
"callback-return": [2, ["callback", "cb", "fn", "next"]],
"comma-style": [1, "last"],
"computed-property-spacing": [2, "never"],
"eqeqeq": 2,
"indent": [2, 2, {"SwitchCase": 1}],
"linebreak-style": [2, "unix"],
"no-class-assign": 2,
"no-console": 0,
"no-const-assign": 2,
"no-inner-declarations": [2, "both"],
"no-useless-call": 2,
"object-curly-spacing": [2, "never"],
"one-var": [2, "never"],
"operator-assignment": [2, "never"],
"operator-linebreak": [2, "after"],
"prefer-spread": 2,
"quotes": [2, "single"],
"semi": [2, "always"],
"space-after-keywords": 1,
"space-before-blocks": 1,
"space-before-function-paren": [1, "never"],
"space-in-parens": 1,
"space-infix-ops": 1,
"space-return-throw-case": 1,
"wrap-iife": [2, "inside"]

}
}
41 changes: 37 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,39 @@
node_modules/
.env

# compiled output
/dist
/node_modules
.cache
.parcel-cache

# Logs
logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# OS
.DS_Store
lib-cov
html-report
lcov.info

# Tests
/coverage
/.nyc_output

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
9 changes: 8 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
test
src
node_modules
coverage
.editorconfig
.eslintrc
.babelrc.js
.travis.yml
bower.json
rollup.config.js
tsconfig.json
jest.config.json
.npmignore
15 changes: 15 additions & 0 deletions jest.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"transform": {
"^.+\\.(t|j)sx?$": "ts-jest"
},
"testMatch": [
"**/src/**/*.spec.ts"
],
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
"coverageDirectory": "./coverage/",
"globals": {
"ts-jest": {
"tsconfig": "tsconfig.json"
}
}
}
180 changes: 0 additions & 180 deletions lib/rubles.js

This file was deleted.

1 change: 0 additions & 1 deletion lib/rubles.min.js

This file was deleted.

2 changes: 1 addition & 1 deletion license.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013-2015 Alexey Simonenko, [email protected], http://simonenko.su
Copyright (c) 2013-2022 Alexey Simonenko, [email protected], <http://simonenko.su>

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
Loading