Skip to content

Commit

Permalink
feat: added typescript and upgraded packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-master committed Feb 7, 2020
1 parent cd5fd2b commit e71ae27
Show file tree
Hide file tree
Showing 69 changed files with 3,464 additions and 12,057 deletions.
22 changes: 0 additions & 22 deletions .babelrc

This file was deleted.

1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist/**
test/**
node_modules/**
!src
161 changes: 11 additions & 150 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"root": true,
"parser": "babel-eslint",
"extends": ["standard"],
"plugins": ["import", "security"],
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": ["import", "security", "@typescript-eslint"],
"env": {
"commonjs": true,
"es6": true,
Expand All @@ -18,155 +22,12 @@
}
},
"rules": {
"import/extensions": [
0,
"always",
{
"js": "never"
}
],
"array-callback-return": "warn",
"default-case": [
"warn",
{
"commentPattern": "^no default$"
}
],
"keyword-spacing": ["warn", { "before": true, "after": true }],
"quotes": ["error", "double"],
"no-tabs": 0,
"space-before-function-paren": 0,
"indent": [0, "tab"],
"semi": [1, "always"],
"dot-location": ["warn", "property"],
"eqeqeq": ["warn", "allow-null"],
"new-parens": "warn",
"no-array-constructor": "warn",
"no-caller": "warn",
"no-cond-assign": ["warn", "always"],
"no-const-assign": "warn",
"no-control-regex": "warn",
"no-delete-var": "warn",
"no-dupe-args": "warn",
"no-dupe-class-members": "warn",
"no-dupe-keys": "warn",
"no-duplicate-case": "warn",
"no-empty-character-class": "warn",
"no-empty-pattern": "warn",
"no-eval": "warn",
"no-ex-assign": "warn",
"no-extend-native": "warn",
"no-extra-bind": "warn",
"no-extra-label": "warn",
"no-fallthrough": "warn",
"no-func-assign": "warn",
"no-implied-eval": "warn",
"no-invalid-regexp": "warn",
"no-iterator": "warn",
"no-label-var": "warn",
"no-labels": [
"warn",
{
"allowLoop": true,
"allowSwitch": false
}
],
"no-lone-blocks": "warn",
"no-loop-func": "warn",
"no-mixed-operators": [
"warn",
{
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
],
"allowSamePrecedence": false
}
],
"no-multi-str": "warn",
"no-native-reassign": "warn",
"no-negated-in-lhs": "warn",
"no-new-func": "warn",
"no-new-object": "warn",
"no-new-symbol": "warn",
"no-new-wrappers": "warn",
"no-obj-calls": "warn",
"no-octal": "warn",
"no-octal-escape": "warn",
"no-redeclare": "warn",
"no-regex-spaces": "warn",
"no-restricted-syntax": ["warn", "WithStatement"],
"no-script-url": "warn",
"no-self-assign": "warn",
"no-self-compare": "warn",
"no-sequences": "warn",
"no-shadow-restricted-names": "warn",
"no-sparse-arrays": "warn",
"no-template-curly-in-string": "warn",
"no-this-before-super": "warn",
"no-throw-literal": "warn",
"no-undef": "error",
"no-unexpected-multiline": "warn",
"no-unreachable": "warn",
"no-unused-expressions": [
"warn",
{
"allowShortCircuit": true,
"allowTernary": true,
"allowTaggedTemplates": true
}
],
"no-unused-labels": "warn",
"no-unused-vars": [
"warn",
{
"args": "none",
"ignoreRestSiblings": true
}
],
"no-use-before-define": [
"warn",
{
"functions": false,
"classes": false,
"variables": false
}
],
"no-useless-computed-key": "warn",
"no-useless-concat": "warn",
"no-useless-constructor": "warn",
"no-useless-escape": "warn",
"no-useless-rename": [
"warn",
{
"ignoreDestructuring": false,
"ignoreImport": false,
"ignoreExport": false
}
],
"no-with": "warn",
"no-whitespace-before-property": "warn",
"radix": "warn",
"require-yield": "warn",
"rest-spread-spacing": ["warn", "never"],
"strict": ["warn", "never"],
"unicode-bom": ["warn", "never"],
"use-isnan": "warn",
"valid-typeof": "warn",
"no-restricted-properties": [
"error",
{
"object": "System",
"property": "import",
"message":
"Please use import() instead. More info: https://webpack.js.org/guides/code-splitting/"
}
],
"import/first": "error",
"import/no-amd": "error",
"import/no-webpack-loader-syntax": "error"
"import/no-webpack-loader-syntax": "error",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/ban-ts-ignore": "off"
},
"ecmaFeatures": {
"modules": true
Expand Down
13 changes: 13 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
printWidth: 120,
tabWidth: 4,
useTabs: true,
semi: true,
trailingComma: "all",
overrides: [
{
files: [".prettierrc", ".json"],
options: { parser: "json", useTabs: false, tabWidth: 2 },
},
],
};
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
1 change: 1 addition & 0 deletions dist/index.bundle.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/index.es.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/index.js

Large diffs are not rendered by default.

143 changes: 0 additions & 143 deletions dist/modules/NumberToWords.js

This file was deleted.

2 changes: 0 additions & 2 deletions dist/modules/NumberToWords.min.js

This file was deleted.

Loading

0 comments on commit e71ae27

Please sign in to comment.