Skip to content

Commit

Permalink
Updated stack.
Browse files Browse the repository at this point in the history
  • Loading branch information
RillingDev committed Sep 26, 2020
1 parent 362c108 commit 93430fc
Show file tree
Hide file tree
Showing 57 changed files with 6,075 additions and 17,909 deletions.
7 changes: 4 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# don't ever lint node_modules
node_modules
# don't lint build output (make sure it's set to your correct build folder name)
dist
./node_modules/

# don't lint build output
./dist/
131 changes: 98 additions & 33 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,75 +3,140 @@ module.exports = {
parser: "@typescript-eslint/parser",
parserOptions: {
tsconfigRootDir: __dirname,
project: ["./src/tsconfig.json", "./spec/src/tsconfig.json"],
project: ["./src/tsconfig.json", "./spec/tsconfig.json"],
},
env: {
"es6": true,
"es2017": true,
"es2020": true,
"shared-node-browser": true,
},
plugins: ["import", "@typescript-eslint", "prettier"],
plugins: ["@typescript-eslint", "prettier", "import"],
extends: [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier",
"prettier/@typescript-eslint",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
],
rules: {
"no-shadow": "error",
/*
* ESLint
*/
// Error prevention
"no-undef-init": "error",
"no-import-assign": "error",
"no-loss-of-precision": "error",
"no-promise-executor-return": "error",
"no-template-curly-in-string": "warn",
"no-implicit-coercion": "warn",
radix: "warn",
"array-callback-return": "warn",
"consistent-return": "warn",
"no-else-return": "warn",
"no-implicit-coercion": "warn",
"no-dupe-else-if": "warn",
"radix": "warn",
"no-unreachable-loop": "warn",

/*
* Prettier
*/
"prettier/prettier": "warn",

/*
* Imports
*/
// Error prevention
"import/no-unresolved": "off", // Covered by TS
"import/named": "off", // Covered by TS
"import/namespace": "off", // Covered by TS
"import/no-absolute-path": "error",
"import/no-self-import": "error",
"import/no-default-export": "warn",
"import/no-absolute-path": "error",
"import/no-mutable-exports": "warn",
"import/no-webpack-loader-syntax": "warn",
"import/no-cycle": "warn",

// Styleguide
"import/no-default-export": "warn",
"import/no-useless-path-segments": "warn",
"import/no-mutable-exports": "warn",

"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
/*
* Typescript
*/
// Error prevention
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-throw-literal": "error",
"@typescript-eslint/no-base-to-string": "error",
"@typescript-eslint/no-dynamic-delete": "error",
"@typescript-eslint/no-implied-eval": "error",
"@typescript-eslint/interface-name-prefix": [
"@typescript-eslint/no-base-to-string": "error",
"@typescript-eslint/strict-boolean-expressions": "error",
"@typescript-eslint/no-redeclare": "error",
"@typescript-eslint/no-shadow": "error",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/prefer-enum-initializers": "warn",

// Styleguide
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/prefer-readonly": "warn",
"@typescript-eslint/prefer-for-of": "warn",
"@typescript-eslint/prefer-includes": "warn",
"@typescript-eslint/require-array-sort-compare": "warn",
"@typescript-eslint/prefer-regexp-exec": "warn",
"@typescript-eslint/no-confusing-non-null-assertion": "warn",
"@typescript-eslint/no-extra-non-null-assertion": "warn",
"@typescript-eslint/no-unnecessary-condition": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/prefer-function-type": "warn",
"@typescript-eslint/member-delimiter-style": "warn",
"@typescript-eslint/method-signature-style": "warn",
"@typescript-eslint/consistent-type-imports": "warn",
"@typescript-eslint/consistent-type-assertions": [
"warn",
{
prefixWithI: "never",
assertionStyle: "as",
},
],
"@typescript-eslint/consistent-type-assertions": [
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
assertionStyle: "angle-bracket",
allowExpressions: true,
},
],
"@typescript-eslint/no-extra-non-null-assertion": "warn",
"@typescript-eslint/no-non-null-asserted-optional-chain": "warn",
"@typescript-eslint/no-unnecessary-condition": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/prefer-readonly": "warn"
"@typescript-eslint/ban-types": [
"warn",
{
types: {
object: false,
},
},
],
"@typescript-eslint/naming-convention": [
"warn",
{
selector: "default",
format: ["strictCamelCase"],
leadingUnderscore: "allow",
trailingUnderscore: "forbid",
},
{
selector: "variable",
format: ["strictCamelCase", "StrictPascalCase", "UPPER_CASE"],
},
{
selector: "property",
format: ["strictCamelCase", "StrictPascalCase", "UPPER_CASE"],
},
{ selector: "typeAlias", format: ["StrictPascalCase"] },
{
selector: "typeParameter",
format: ["PascalCase"], // Allow "T", "TValue", "Value" and such
},
{
selector: "interface",
format: ["StrictPascalCase"],
custom: {
regex: "^I[A-Z]",
match: false,
},
},
{ selector: "class", format: ["StrictPascalCase"] },
{ selector: "enum", format: ["StrictPascalCase"] },
{ selector: "enumMember", format: ["UPPER_CASE"] },
],
},
};
13 changes: 5 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,16 @@
*.vi
*.zip
*~
_key.*

# OS or Editor folders
._*
.DS_Store
.idea
.project
.settings
.tmproj
*.esproj
*.sublime-project
*.sublime-workspace
nbproject
Thumbs.db
desktop.ini

# Vendor Files
node_modules/
Expand All @@ -32,8 +27,10 @@ node_modules/
npm-debug.*

# Temp Files
spec/dist/
tsconfig.tsbuildinfo
tsconfig.*.tsbuildinfo

# Safe files
_key*


# Build Output files
dist/
44 changes: 44 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Numerous always-ignore extensions
*.diff
*.err
*.log
*.orig
*.rej
*.swo
*.swp
*.vi
*.zip
*~

# OS or Editor folders
._*
.idea
.project
.settings
.tmproj
*.esproj
*.sublime-project
*.sublime-workspace

# Vendor Files
node_modules/

# Debug Files
npm-debug.*

# Temp Files
tsconfig.tsbuildinfo
tsconfig.*.tsbuildinfo



# Source Files
src/
spec/

# Config Files
.eslintrc.json
.eslintignore
.editorconfig
typedoc.json
jasmine.json
38 changes: 0 additions & 38 deletions dist/esm/src/Ok.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion dist/esm/src/Ok.d.ts.map

This file was deleted.

76 changes: 0 additions & 76 deletions dist/esm/src/Ok.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/esm/src/Ok.js.map

This file was deleted.

10 changes: 0 additions & 10 deletions dist/esm/src/dom/getInputElementValue.d.ts

This file was deleted.

0 comments on commit 93430fc

Please sign in to comment.