Skip to content

Commit

Permalink
build(npm): update all toolings & their configs
Browse files Browse the repository at this point in the history
  • Loading branch information
GerkinDev committed Sep 7, 2021
1 parent a30cbd1 commit 1d00113
Show file tree
Hide file tree
Showing 14 changed files with 14,701 additions and 3,315 deletions.
25 changes: 15 additions & 10 deletions .esdoc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
{
"source": "./buildDocs",
"destination": "./docs",
"title": "Lodash Decorators Documentation",
"access": [ "public" ],
"excludes": [ ".*\\.spec\\.js" ],
"test": {
"type": "mocha",
"source": "./buildDocs",
"includes": [ ".*\\.spec\\.js" ]
}
"source": "./src",
"destination": "./docs",
"plugins": [
{"name": "esdoc-standard-plugin","option": {
"accessor": {"access": [ "public" ], "autoPrivate": true},
"test": {
"type": "mocha",
"source": "./src",
"includes": [ ".*\\.spec\\.ts" ]
},
"brand": {"title": "Lodash Decorators Documentation"}
}},
{"name": "esdoc-typescript-plugin", "option": {"enable": true}}
],
"excludes": [ ".*\\.spec\\.ts" ]
}
190 changes: 190 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,190 @@
/*
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
https://github.com/typescript-eslint/tslint-to-eslint-config
It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.
We recommend eventually switching this configuration to extend from
the recommended rulesets in typescript-eslint.
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
Happy linting! 💖
*/
module.exports = {
"env": {
"node": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json",
"sourceType": "module"
},
"plugins": [
"eslint-plugin-import",
"eslint-plugin-prefer-arrow",
"eslint-plugin-jsdoc",
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": [
"error",
{
"default": "array"
}
],
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/dot-notation": "error",
"@typescript-eslint/explicit-member-accessibility": [
"off",
{
"accessibility": "explicit"
}
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/naming-convention": [
"error",
{
"format": [
"strictCamelCase",
"StrictPascalCase"
],
"leadingUnderscore": "allow",
"selector": "function"
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-shadow": [
"error",
{
"hoist": "all"
}
],
"@typescript-eslint/no-this-alias": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_"
}
],
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/quotes": [
"error",
"single"
],
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/semi": [
"error",
"always"
],
"@typescript-eslint/triple-slash-reference": [
"error",
{
"lib": "always",
"path": "always",
"types": "prefer-import"
}
],
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/unified-signatures": "error",
"comma-dangle": "off",
"complexity": "off",
"constructor-super": "error",
"dot-notation": "error",
"eol-last": "off",
"eqeqeq": [
"error",
"smart"
],
"guard-for-in": "error",
"id-blacklist": "error",
"id-match": "error",
"import/order": "off",
"jsdoc/check-alignment": "error",
"jsdoc/check-indentation": [
"off"
],
"jsdoc/newline-after-description": "error",
"max-classes-per-file": "off",
"max-len": "off",
"new-parens": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-console": "error",
"no-debugger": "error",
"no-empty": "off",
"no-empty-function": "off",
"no-eval": "error",
"no-fallthrough": "off",
"no-invalid-this": "off",
"no-new-wrappers": "error",
"no-shadow": "off",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-unsafe-finally": "error",
"no-unused-expressions": "off",
"no-unused-labels": "error",
"no-use-before-define": "off",
"no-var": "error",
"object-shorthand": "error",
"one-var": [
"error",
"never"
],
"prefer-arrow/prefer-arrow-functions": "off",
"prefer-const": "error",
"prefer-template": "error",
"quotes": "off",
"radix": "error",
"semi": "error",
"spaced-comment": [
"error",
"always",
{
"markers": [
"/"
]
}
],
"use-isnan": "error",
"valid-typeof": "off"
}
};
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ node_modules
src/**/*.js
src/**/*.map
.history
!/.eslintrc.js
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ Decorators using lodash functions. View the [API docs](https://steelsojka.github
- [Decorators](#decorators)
- [Example](#example)
- [Optional Params and Casing](#optional-params-and-casing)
- [Example](#example)
- [Partials](#partials)
- [Example](#example-1)
- [Composition](#composition)
- [Partials](#partials)
- [Example](#example-2)
- [Composition](#composition)
- [Example](#example-3)
- [Instance Decorators](#instance-decorators)
- [Mixin](#mixin)
- [Example](#example-3)
- [Attempt](#attempt)
- [Example](#example-4)
- [Bind](#bind)
- [Attempt](#attempt)
- [Example](#example-5)
- [Bind](#bind)
- [Example](#example-6)
- [Example](#example-7)
- [v4 Breaking Changes](#v4-breaking-changes)
- [Not all decorators can be applied to or forced on getters/setters.](#not-all-decorators-can-be-applied-to-or-forced-on-getterssetters)
- [No longer force instance decorator onto prototype](#no-longer-force-instance-decorator-onto-prototype)
Expand Down
3 changes: 0 additions & 3 deletions mocha.opts

This file was deleted.

Loading

0 comments on commit 1d00113

Please sign in to comment.