@softwareventures/eslint-config 9.1.0 → 9.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +15 -15
package/LICENSE.md
CHANGED
package/index.js
CHANGED
|
@@ -134,6 +134,7 @@ const config = {
|
|
|
134
134
|
"@typescript-eslint/no-invalid-void-type": ["error", { allowAsThisParameter: true }],
|
|
135
135
|
"@typescript-eslint/no-loop-func": "error",
|
|
136
136
|
"@typescript-eslint/no-loss-of-precision": "error",
|
|
137
|
+
"@typescript-eslint/no-require-imports": "off",
|
|
137
138
|
"@typescript-eslint/no-non-null-assertion": "error",
|
|
138
139
|
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
|
|
139
140
|
"@typescript-eslint/no-unnecessary-qualifier": "error",
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAEA,MAAM,MAAM,GAAkB;IAC1B,GAAG,EAAE;QACD,GAAG,EAAE,IAAI;QACT,IAAI,EAAE,IAAI;KACb;IACD,OAAO,EAAE,CAAC,oBAAoB,EAAE,UAAU,CAAC;IAC3C,OAAO,EAAE,CAAC,oBAAoB,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,SAAS,CAAC;IAC7E,aAAa,EAAE;QACX,WAAW,EAAE,IAAI;KACpB;IACD,SAAS,EAAE;QACP;YACI,KAAK,EAAE,CAAC,gBAAgB,CAAC;YACzB,OAAO,EAAE;gBACL,8CAA8C;gBAC9C,uCAAuC;gBACvC,+DAA+D;aAClE;YACD,MAAM,EAAE,2BAA2B;YACnC,aAAa,EAAE;gBACX,OAAO,EAAE,eAAe;aAC3B;YACD,KAAK,EAAE;gBACH,uBAAuB,EAAE,KAAK;gBAC9B,mBAAmB,EAAE,KAAK;gBAC1B,cAAc,E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jB,kBAAkB,EAAE,OAAO;QAC3B,SAAS,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QAC7B,qCAAqC,EAAE,CAAC,OAAO,EAAE,EAAC,2BAA2B,EAAE,IAAI,EAAC,CAAC;QACrF,cAAc,EAAE,OAAO;QACvB,gCAAgC,EAAE,OAAO;QACzC,yBAAyB,EAAE,OAAO;QAClC,sBAAsB,EAAE,OAAO;QAC/B,8BAA8B,EAAE,OAAO;QACvC,oBAAoB,EAAE,OAAO;QAC7B,uBAAuB,EAAE,CAAC,OAAO,EAAE,EAAC,yBAAyB,EAAE,IAAI,EAAC,CAAC;QACrE,eAAe,EAAE,OAAO;QACxB,OAAO,EAAE,OAAO;QAChB,wBAAwB,EAAE,OAAO;QACjC,wBAAwB,EAAE,OAAO;QACjC,QAAQ,EAAE,OAAO;QACjB,oCAAoC,EAAE,OAAO;QAC7C,2BAA2B,EAAE,OAAO;QACpC,qCAAqC,EAAE,OAAO;QAC9C,gCAAgC,EAAE,OAAO;QACzC,8BAA8B,EAAE,OAAO;QACvC,6BAA6B,EAAE,OAAO;QACtC,4BAA4B,EAAE,OAAO;QACrC,mCAAmC,EAAE,OAAO;QAC5C,iCAAiC,EAAE,OAAO;QAC1C,kCAAkC,EAAE,OAAO;QAC3C,gCAAgC,EAAE,OAAO;QACzC,mCAAmC,EAAE,OAAO;QAC5C,+BAA+B,EAAE,OAAO;QACxC,8BAA8B,EAAE,OAAO;QACvC,2BAA2B,EAAE,OAAO;QACpC,8BAA8B,EAAE,OAAO;QACvC,sCAAsC,EAAE,OAAO;QAC/C,0BAA0B,EAAE,OAAO;QACnC,+BAA+B,EAAE,OAAO;QACxC,+BAA+B,EAAE,OAAO;QACxC,sBAAsB,EAAE,OAAO;KAClC;CACJ,CAAC;AAEF,iBAAS,MAAM,CAAC","sourcesContent":["import type {Linter} from \"eslint\";\n\nconst config: Linter.Config = {\n env: {\n es6: true,\n node: true\n },\n extends: [\"eslint:recommended\", \"prettier\"],\n plugins: [\"@typescript-eslint\", \"import\", \"jsdoc\", \"prefer-arrow\", \"sonarjs\"],\n parserOptions: {\n ecmaVersion: 2018\n },\n overrides: [\n {\n files: [\"*.{,c,m}ts{,x}\"],\n extends: [\n \"plugin:@typescript-eslint/eslint-recommended\",\n \"plugin:@typescript-eslint/recommended\",\n \"plugin:@typescript-eslint/recommended-requiring-type-checking\"\n ],\n parser: \"@typescript-eslint/parser\",\n parserOptions: {\n project: \"tsconfig.json\"\n },\n rules: {\n \"array-callback-return\": \"off\",\n \"consistent-return\": \"off\",\n \"dot-notation\": \"off\",\n \"no-invalid-this\": \"off\",\n \"no-unsafe-optional-chaining\": \"off\",\n \"no-unused-expressions\": \"off\",\n \"sonarjs/no-extra-arguments\": \"off\",\n \"sonarjs/no-ignored-return\": \"error\",\n \"@typescript-eslint/array-type\": [\n \"error\",\n {\n default: \"array-simple\"\n }\n ],\n \"@typescript-eslint/ban-tslint-comment\": \"error\",\n \"@typescript-eslint/ban-ts-comment\": \"error\",\n \"@typescript-eslint/class-literal-property-style\": \"error\",\n \"@typescript-eslint/consistent-type-assertions\": [\n \"error\",\n {assertionStyle: \"as\", objectLiteralTypeAssertions: \"never\"}\n ],\n \"@typescript-eslint/consistent-type-definitions\": [\"error\", \"interface\"],\n \"@typescript-eslint/consistent-type-imports\": \"error\",\n \"@typescript-eslint/dot-notation\": \"error\",\n \"@typescript-eslint/explicit-function-return-type\": [\n \"error\",\n {\n allowExpressions: true,\n allowTypedFunctionExpressions: true\n }\n ],\n \"@typescript-eslint/explicit-member-accessibility\": [\n \"error\",\n {\n accessibility: \"explicit\"\n }\n ],\n \"@typescript-eslint/explicit-module-boundary-types\": [\n \"error\",\n {\n allowDirectConstAssertionInArrowFunctions: false,\n allowHigherOrderFunctions: false\n }\n ],\n \"@typescript-eslint/interface-name-prefix\": \"off\",\n \"@typescript-eslint/member-ordering\": \"error\",\n \"@typescript-eslint/method-signature-style\": \"error\",\n \"@typescript-eslint/naming-convention\": [\n \"error\",\n {\n selector: [\"parameter\"],\n modifiers: [\"unused\"],\n filter: \"..\",\n format: [\"strictCamelCase\"],\n leadingUnderscore: \"allow\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"parameter\"],\n modifiers: [\"unused\"],\n filter: \"^.$\",\n format: null,\n custom: {\n regex: \"^_$\",\n match: true\n }\n },\n {\n selector: [\"variableLike\", \"enumMember\"],\n format: [\"strictCamelCase\"],\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"class\", \"interface\", \"typeAlias\", \"enum\"],\n format: [\"StrictPascalCase\"],\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"typeParameter\"],\n format: [\"StrictPascalCase\"],\n prefix: [\"T\"],\n filter: \"..\",\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"typeParameter\"],\n format: [\"UPPER_CASE\"],\n custom: {\n regex: \"^[A-Z]$\",\n match: true\n },\n filter: \"^.$\"\n }\n ],\n \"@typescript-eslint/no-base-to-string\": \"error\",\n \"@typescript-eslint/no-confusing-non-null-assertion\": \"error\",\n \"@typescript-eslint/no-confusing-void-expression\": [\n \"error\",\n {ignoreVoidOperator: true}\n ],\n \"@typescript-eslint/no-empty-function\": \"off\",\n \"@typescript-eslint/no-empty-object-type\": \"off\",\n \"@typescript-eslint/no-explicit-any\": \"error\",\n \"@typescript-eslint/no-extra-semi\": \"off\",\n \"@typescript-eslint/no-extraneous-class\": \"error\",\n \"@typescript-eslint/no-floating-promises\": \"error\",\n \"@typescript-eslint/no-invalid-void-type\": [\"error\", {allowAsThisParameter: true}],\n \"@typescript-eslint/no-loop-func\": \"error\",\n \"@typescript-eslint/no-loss-of-precision\": \"error\",\n \"@typescript-eslint/no-non-null-assertion\": \"error\",\n \"@typescript-eslint/no-unnecessary-boolean-literal-compare\": \"error\",\n \"@typescript-eslint/no-unnecessary-qualifier\": \"error\",\n \"@typescript-eslint/no-unnecessary-type-arguments\": \"error\",\n \"@typescript-eslint/no-unnecessary-type-assertion\": \"error\",\n \"@typescript-eslint/no-unnecessary-type-constraint\": \"error\",\n \"@typescript-eslint/no-unsafe-argument\": \"error\",\n \"@typescript-eslint/no-unsafe-function-type\": \"error\",\n \"@typescript-eslint/no-unsafe-return\": \"error\",\n \"@typescript-eslint/no-unused-expressions\": [\"error\", {enforceForJSX: true}],\n \"@typescript-eslint/no-unused-vars\": \"off\",\n \"@typescript-eslint/no-useless-constructor\": \"error\",\n \"@typescript-eslint/no-use-before-define\": \"off\",\n \"@typescript-eslint/no-wrapper-object-types\": \"error\",\n \"@typescript-eslint/non-nullable-type-assertion-style\": \"error\",\n \"@typescript-eslint/prefer-for-of\": \"off\",\n \"@typescript-eslint/prefer-function-type\": \"error\",\n \"@typescript-eslint/prefer-includes\": \"error\",\n \"@typescript-eslint/prefer-nullish-coalescing\": \"error\",\n \"@typescript-eslint/prefer-optional-chain\": \"error\",\n \"@typescript-eslint/prefer-readonly\": \"error\",\n \"@typescript-eslint/prefer-regexp-exec\": \"off\",\n \"@typescript-eslint/prefer-return-this-type\": \"error\",\n \"@typescript-eslint/prefer-string-starts-ends-with\": \"error\",\n \"@typescript-eslint/promise-function-async\": \"error\",\n \"@typescript-eslint/require-array-sort-compare\": [\n \"error\",\n {ignoreStringArrays: true}\n ],\n \"@typescript-eslint/restrict-template-expressions\": [\n \"error\",\n {\n allowNumber: true,\n allowBoolean: true,\n allowAny: false,\n allowNullish: false\n }\n ],\n \"@typescript-eslint/require-await\": \"off\",\n \"@typescript-eslint/strict-boolean-expressions\": [\n \"error\",\n {\n allowString: false,\n allowNumber: false,\n allowNullableObject: false,\n allowNullableBoolean: false,\n allowNullableString: false,\n allowNullableNumber: false,\n allowAny: false\n }\n ],\n \"@typescript-eslint/triple-slash-reference\": [\n \"error\",\n {\n path: \"always\",\n types: \"prefer-import\",\n lib: \"always\"\n }\n ],\n \"@typescript-eslint/unified-signatures\": \"error\",\n \"no-underscore-dangle\": \"off\"\n }\n },\n {\n files: [\"*.{,c,m}tsx\"],\n rules: {\n \"@typescript-eslint/naming-convention\": [\n \"error\",\n {\n selector: [\"variable\", \"parameter\", \"enumMember\"],\n format: [\"strictCamelCase\"],\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"function\"],\n format: [\"strictCamelCase\", \"StrictPascalCase\"],\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"class\", \"interface\", \"typeAlias\", \"enum\"],\n format: [\"StrictPascalCase\"],\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"typeParameter\"],\n format: [\"StrictPascalCase\"],\n prefix: [\"T\"],\n filter: \"..\",\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"typeParameter\"],\n format: [\"UPPER_CASE\"],\n custom: {\n regex: \"^[A-Z]$\",\n match: true\n },\n filter: \"^.$\"\n }\n ]\n }\n },\n {\n files: [\n \"*(_)test?(s)*(_)/**/*.{,c,m}ts{,x}\",\n \"test.{,c,m}ts{,x}\",\n \"*.test.{,c,m}ts{,x}\",\n \"*.test-d.{,c,m}ts{,x}\"\n ],\n parserOptions: {\n project: \"tsconfig.test.json\"\n }\n },\n {\n files: [\n \"*(_)test?(s)*(_)/**/*.{,c,m}{js,ts}{,x}\",\n \"test.{,c,m}{js,ts}{,x}\",\n \"*.test.{,c,m}{js,ts}{,x}\",\n \"*.config.{,c,m}{js,ts}{,x}\"\n ],\n rules: {\n \"@typescript-eslint/no-restricted-imports\": \"off\"\n }\n }\n ],\n rules: {\n \"array-callback-return\": \"error\",\n \"arrow-body-style\": \"error\",\n \"complexity\": \"off\",\n \"consistent-return\": \"error\",\n \"curly\": \"error\",\n \"dot-notation\": \"error\",\n \"eqeqeq\": [\"error\", \"always\", {null: \"never\"}],\n \"guard-for-in\": \"error\",\n \"id-blacklist\": \"error\",\n \"id-match\": \"error\",\n \"import/no-duplicates\": \"error\",\n \"import/no-extraneous-dependencies\": [\n \"error\",\n {\n devDependencies: [\n \"**/*(_)test?(s)*(_)/**/*.{,c,m}{js,ts}{,x}\",\n \"**/*.config.{,c,m}{js,ts}{,x}\",\n \"**/*.test.{,c,m}{js,ts}{,x}\",\n \"**/*.test-d.{,c,m}ts{,x}\",\n \"**/test.{,c,m}{js,ts}{,x}\"\n ],\n optionalDependencies: false\n }\n ],\n \"import/order\": \"error\",\n \"jsdoc/check-alignment\": \"error\",\n \"jsdoc/check-indentation\": \"off\",\n \"jsdoc/no-types\": \"error\",\n \"max-classes-per-file\": \"off\",\n \"new-parens\": \"error\",\n \"no-alert\": \"error\",\n \"no-caller\": \"error\",\n \"no-constructor-return\": \"error\",\n \"no-duplicate-imports\": \"off\",\n \"no-empty\": \"off\",\n \"no-empty-function\": \"off\",\n \"no-eval\": \"error\",\n \"no-extend-native\": \"error\",\n \"no-extra-bind\": \"error\",\n \"no-extra-semi\": \"off\",\n \"no-implicit-coercion\": \"error\",\n \"no-invalid-this\": \"error\",\n \"no-irregular-whitespace\": [\"error\", {skipStrings: false}],\n \"no-iterator\": \"error\",\n \"no-lone-blocks\": \"error\",\n \"no-new-func\": \"error\",\n \"no-new-wrappers\": \"error\",\n \"no-nonoctal-decimal-escape\": \"error\",\n \"no-octal-escape\": \"error\",\n \"no-param-reassign\": \"error\",\n \"no-promise-executor-return\": \"error\",\n \"no-proto\": \"error\",\n \"@typescript-eslint/no-restricted-imports\": [\n \"error\",\n {\n patterns: [\n \"**/*(_)test?(s)*(_)/**/*\",\n \"**/*.config\",\n \"**/*.config.*\",\n \"**/*.test\",\n \"**/*.test.*\"\n ]\n }\n ],\n \"no-return-assign\": \"error\",\n \"no-return-await\": \"error\",\n \"no-script-url\": \"error\",\n \"no-self-compare\": \"error\",\n \"no-sequences\": [\"error\", {allowInParentheses: false}],\n \"no-throw-literal\": \"error\",\n \"no-undef-init\": \"error\",\n \"no-underscore-dangle\": \"error\",\n \"no-unneeded-ternary\": \"error\",\n \"no-unsafe-optional-chaining\": [\"error\", {disallowArithmeticOperators: true}],\n \"no-unused-expressions\": \"error\",\n \"no-useless-backreference\": \"error\",\n \"no-useless-call\": \"error\",\n \"no-useless-computed-key\": \"error\",\n \"no-useless-concat\": \"error\",\n \"no-useless-rename\": \"error\",\n \"no-var\": \"error\",\n \"object-shorthand\": \"error\",\n \"one-var\": [\"error\", \"never\"],\n \"prefer-arrow/prefer-arrow-functions\": [\"error\", {allowStandaloneDeclarations: true}],\n \"prefer-const\": \"error\",\n \"prefer-exponentiation-operator\": \"error\",\n \"prefer-numeric-literals\": \"error\",\n \"prefer-object-spread\": \"error\",\n \"prefer-promise-reject-errors\": \"error\",\n \"prefer-rest-params\": \"error\",\n \"prefer-regex-literals\": [\"error\", {disallowRedundantWrapping: true}],\n \"prefer-spread\": \"error\",\n \"radix\": \"error\",\n \"require-atomic-updates\": \"error\",\n \"require-unicode-regexp\": \"error\",\n \"strict\": \"error\",\n \"sonarjs/no-all-duplicated-branches\": \"error\",\n \"sonarjs/no-collapsible-if\": \"error\",\n \"sonarjs/no-collection-size-mischeck\": \"error\",\n \"sonarjs/no-duplicated-branches\": \"error\",\n \"sonarjs/no-element-overwrite\": \"error\",\n \"sonarjs/no-empty-collection\": \"error\",\n \"sonarjs/no-extra-arguments\": \"error\",\n \"sonarjs/no-gratuitous-expressions\": \"error\",\n \"sonarjs/no-identical-conditions\": \"error\",\n \"sonarjs/no-identical-expressions\": \"error\",\n \"sonarjs/no-identical-functions\": \"error\",\n \"sonarjs/no-inverted-boolean-check\": \"error\",\n \"sonarjs/no-one-iteration-loop\": \"error\",\n \"sonarjs/no-redundant-boolean\": \"error\",\n \"sonarjs/no-redundant-jump\": \"error\",\n \"sonarjs/no-unused-collection\": \"error\",\n \"sonarjs/no-use-of-empty-return-value\": \"error\",\n \"sonarjs/no-useless-catch\": \"error\",\n \"sonarjs/non-existent-operator\": \"error\",\n \"sonarjs/prefer-object-literal\": \"error\",\n \"sonarjs/prefer-while\": \"error\"\n }\n};\n\nexport = config;\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";AAEA,MAAM,MAAM,GAAkB;IAC1B,GAAG,EAAE;QACD,GAAG,EAAE,IAAI;QACT,IAAI,EAAE,IAAI;KACb;IACD,OAAO,EAAE,CAAC,oBAAoB,EAAE,UAAU,CAAC;IAC3C,OAAO,EAAE,CAAC,oBAAoB,EAAE,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,SAAS,CAAC;IAC7E,aAAa,EAAE;QACX,WAAW,EAAE,IAAI;KACpB;IACD,SAAS,EAAE;QACP;YACI,KAAK,EAAE,CAAC,gBAAgB,CAAC;YACzB,OAAO,EAAE;gBACL,8CAA8C;gBAC9C,uCAAuC;gBACvC,+DAA+D;aAClE;YACD,MAAM,EAAE,2BAA2B;YACnC,aAAa,EAAE;gBACX,OAAO,EAAE,eAAe;aAC3B;YACD,KAAK,EAAE;gBACH,uBAAuB,EAAE,KAAK;gBAC9B,mBAAmB,EAAE,KAAK;gBAC1B,cAAc,EAAE,KAAK;gBACrB,iBAAiB,EAAE,KAAK;gBACxB,6BAA6B,EAAE,KAAK;gBACpC,uBAAuB,EAAE,KAAK;gBAC9B,4BAA4B,EAAE,KAAK;gBACnC,2BAA2B,EAAE,OAAO;gBACpC,+BAA+B,EAAE;oBAC7B,OAAO;oBACP;wBACI,OAAO,EAAE,cAAc;qBAC1B;iBACJ;gBACD,uCAAuC,EAAE,OAAO;gBAChD,mCAAmC,EAAE,OAAO;gBAC5C,iDAAiD,EAAE,OAAO;gBAC1D,+CAA+C,EAAE;oBAC7C,OAAO;oBACP,EAAC,cAAc,EAAE,IAAI,EAAE,2BAA2B,EAAE,OAAO,EAAC;iBAC/D;gBACD,gDAAgD,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC;gBACxE,4CAA4C,EAAE,OAAO;gBACrD,iCAAiC,EAAE,OAAO;gBAC1C,kD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O;QACjB,oCAAoC,EAAE,OAAO;QAC7C,2BAA2B,EAAE,OAAO;QACpC,qCAAqC,EAAE,OAAO;QAC9C,gCAAgC,EAAE,OAAO;QACzC,8BAA8B,EAAE,OAAO;QACvC,6BAA6B,EAAE,OAAO;QACtC,4BAA4B,EAAE,OAAO;QACrC,mCAAmC,EAAE,OAAO;QAC5C,iCAAiC,EAAE,OAAO;QAC1C,kCAAkC,EAAE,OAAO;QAC3C,gCAAgC,EAAE,OAAO;QACzC,mCAAmC,EAAE,OAAO;QAC5C,+BAA+B,EAAE,OAAO;QACxC,8BAA8B,EAAE,OAAO;QACvC,2BAA2B,EAAE,OAAO;QACpC,8BAA8B,EAAE,OAAO;QACvC,sCAAsC,EAAE,OAAO;QAC/C,0BAA0B,EAAE,OAAO;QACnC,+BAA+B,EAAE,OAAO;QACxC,+BAA+B,EAAE,OAAO;QACxC,sBAAsB,EAAE,OAAO;KAClC;CACJ,CAAC;AAEF,iBAAS,MAAM,CAAC","sourcesContent":["import type {Linter} from \"eslint\";\n\nconst config: Linter.Config = {\n env: {\n es6: true,\n node: true\n },\n extends: [\"eslint:recommended\", \"prettier\"],\n plugins: [\"@typescript-eslint\", \"import\", \"jsdoc\", \"prefer-arrow\", \"sonarjs\"],\n parserOptions: {\n ecmaVersion: 2018\n },\n overrides: [\n {\n files: [\"*.{,c,m}ts{,x}\"],\n extends: [\n \"plugin:@typescript-eslint/eslint-recommended\",\n \"plugin:@typescript-eslint/recommended\",\n \"plugin:@typescript-eslint/recommended-requiring-type-checking\"\n ],\n parser: \"@typescript-eslint/parser\",\n parserOptions: {\n project: \"tsconfig.json\"\n },\n rules: {\n \"array-callback-return\": \"off\",\n \"consistent-return\": \"off\",\n \"dot-notation\": \"off\",\n \"no-invalid-this\": \"off\",\n \"no-unsafe-optional-chaining\": \"off\",\n \"no-unused-expressions\": \"off\",\n \"sonarjs/no-extra-arguments\": \"off\",\n \"sonarjs/no-ignored-return\": \"error\",\n \"@typescript-eslint/array-type\": [\n \"error\",\n {\n default: \"array-simple\"\n }\n ],\n \"@typescript-eslint/ban-tslint-comment\": \"error\",\n \"@typescript-eslint/ban-ts-comment\": \"error\",\n \"@typescript-eslint/class-literal-property-style\": \"error\",\n \"@typescript-eslint/consistent-type-assertions\": [\n \"error\",\n {assertionStyle: \"as\", objectLiteralTypeAssertions: \"never\"}\n ],\n \"@typescript-eslint/consistent-type-definitions\": [\"error\", \"interface\"],\n \"@typescript-eslint/consistent-type-imports\": \"error\",\n \"@typescript-eslint/dot-notation\": \"error\",\n \"@typescript-eslint/explicit-function-return-type\": [\n \"error\",\n {\n allowExpressions: true,\n allowTypedFunctionExpressions: true\n }\n ],\n \"@typescript-eslint/explicit-member-accessibility\": [\n \"error\",\n {\n accessibility: \"explicit\"\n }\n ],\n \"@typescript-eslint/explicit-module-boundary-types\": [\n \"error\",\n {\n allowDirectConstAssertionInArrowFunctions: false,\n allowHigherOrderFunctions: false\n }\n ],\n \"@typescript-eslint/interface-name-prefix\": \"off\",\n \"@typescript-eslint/member-ordering\": \"error\",\n \"@typescript-eslint/method-signature-style\": \"error\",\n \"@typescript-eslint/naming-convention\": [\n \"error\",\n {\n selector: [\"parameter\"],\n modifiers: [\"unused\"],\n filter: \"..\",\n format: [\"strictCamelCase\"],\n leadingUnderscore: \"allow\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"parameter\"],\n modifiers: [\"unused\"],\n filter: \"^.$\",\n format: null,\n custom: {\n regex: \"^_$\",\n match: true\n }\n },\n {\n selector: [\"variableLike\", \"enumMember\"],\n format: [\"strictCamelCase\"],\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"class\", \"interface\", \"typeAlias\", \"enum\"],\n format: [\"StrictPascalCase\"],\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"typeParameter\"],\n format: [\"StrictPascalCase\"],\n prefix: [\"T\"],\n filter: \"..\",\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"typeParameter\"],\n format: [\"UPPER_CASE\"],\n custom: {\n regex: \"^[A-Z]$\",\n match: true\n },\n filter: \"^.$\"\n }\n ],\n \"@typescript-eslint/no-base-to-string\": \"error\",\n \"@typescript-eslint/no-confusing-non-null-assertion\": \"error\",\n \"@typescript-eslint/no-confusing-void-expression\": [\n \"error\",\n {ignoreVoidOperator: true}\n ],\n \"@typescript-eslint/no-empty-function\": \"off\",\n \"@typescript-eslint/no-empty-object-type\": \"off\",\n \"@typescript-eslint/no-explicit-any\": \"error\",\n \"@typescript-eslint/no-extra-semi\": \"off\",\n \"@typescript-eslint/no-extraneous-class\": \"error\",\n \"@typescript-eslint/no-floating-promises\": \"error\",\n \"@typescript-eslint/no-invalid-void-type\": [\"error\", {allowAsThisParameter: true}],\n \"@typescript-eslint/no-loop-func\": \"error\",\n \"@typescript-eslint/no-loss-of-precision\": \"error\",\n \"@typescript-eslint/no-require-imports\": \"off\",\n \"@typescript-eslint/no-non-null-assertion\": \"error\",\n \"@typescript-eslint/no-unnecessary-boolean-literal-compare\": \"error\",\n \"@typescript-eslint/no-unnecessary-qualifier\": \"error\",\n \"@typescript-eslint/no-unnecessary-type-arguments\": \"error\",\n \"@typescript-eslint/no-unnecessary-type-assertion\": \"error\",\n \"@typescript-eslint/no-unnecessary-type-constraint\": \"error\",\n \"@typescript-eslint/no-unsafe-argument\": \"error\",\n \"@typescript-eslint/no-unsafe-function-type\": \"error\",\n \"@typescript-eslint/no-unsafe-return\": \"error\",\n \"@typescript-eslint/no-unused-expressions\": [\"error\", {enforceForJSX: true}],\n \"@typescript-eslint/no-unused-vars\": \"off\",\n \"@typescript-eslint/no-useless-constructor\": \"error\",\n \"@typescript-eslint/no-use-before-define\": \"off\",\n \"@typescript-eslint/no-wrapper-object-types\": \"error\",\n \"@typescript-eslint/non-nullable-type-assertion-style\": \"error\",\n \"@typescript-eslint/prefer-for-of\": \"off\",\n \"@typescript-eslint/prefer-function-type\": \"error\",\n \"@typescript-eslint/prefer-includes\": \"error\",\n \"@typescript-eslint/prefer-nullish-coalescing\": \"error\",\n \"@typescript-eslint/prefer-optional-chain\": \"error\",\n \"@typescript-eslint/prefer-readonly\": \"error\",\n \"@typescript-eslint/prefer-regexp-exec\": \"off\",\n \"@typescript-eslint/prefer-return-this-type\": \"error\",\n \"@typescript-eslint/prefer-string-starts-ends-with\": \"error\",\n \"@typescript-eslint/promise-function-async\": \"error\",\n \"@typescript-eslint/require-array-sort-compare\": [\n \"error\",\n {ignoreStringArrays: true}\n ],\n \"@typescript-eslint/restrict-template-expressions\": [\n \"error\",\n {\n allowNumber: true,\n allowBoolean: true,\n allowAny: false,\n allowNullish: false\n }\n ],\n \"@typescript-eslint/require-await\": \"off\",\n \"@typescript-eslint/strict-boolean-expressions\": [\n \"error\",\n {\n allowString: false,\n allowNumber: false,\n allowNullableObject: false,\n allowNullableBoolean: false,\n allowNullableString: false,\n allowNullableNumber: false,\n allowAny: false\n }\n ],\n \"@typescript-eslint/triple-slash-reference\": [\n \"error\",\n {\n path: \"always\",\n types: \"prefer-import\",\n lib: \"always\"\n }\n ],\n \"@typescript-eslint/unified-signatures\": \"error\",\n \"no-underscore-dangle\": \"off\"\n }\n },\n {\n files: [\"*.{,c,m}tsx\"],\n rules: {\n \"@typescript-eslint/naming-convention\": [\n \"error\",\n {\n selector: [\"variable\", \"parameter\", \"enumMember\"],\n format: [\"strictCamelCase\"],\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"function\"],\n format: [\"strictCamelCase\", \"StrictPascalCase\"],\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"class\", \"interface\", \"typeAlias\", \"enum\"],\n format: [\"StrictPascalCase\"],\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"typeParameter\"],\n format: [\"StrictPascalCase\"],\n prefix: [\"T\"],\n filter: \"..\",\n leadingUnderscore: \"forbid\",\n trailingUnderscore: \"forbid\"\n },\n {\n selector: [\"typeParameter\"],\n format: [\"UPPER_CASE\"],\n custom: {\n regex: \"^[A-Z]$\",\n match: true\n },\n filter: \"^.$\"\n }\n ]\n }\n },\n {\n files: [\n \"*(_)test?(s)*(_)/**/*.{,c,m}ts{,x}\",\n \"test.{,c,m}ts{,x}\",\n \"*.test.{,c,m}ts{,x}\",\n \"*.test-d.{,c,m}ts{,x}\"\n ],\n parserOptions: {\n project: \"tsconfig.test.json\"\n }\n },\n {\n files: [\n \"*(_)test?(s)*(_)/**/*.{,c,m}{js,ts}{,x}\",\n \"test.{,c,m}{js,ts}{,x}\",\n \"*.test.{,c,m}{js,ts}{,x}\",\n \"*.config.{,c,m}{js,ts}{,x}\"\n ],\n rules: {\n \"@typescript-eslint/no-restricted-imports\": \"off\"\n }\n }\n ],\n rules: {\n \"array-callback-return\": \"error\",\n \"arrow-body-style\": \"error\",\n \"complexity\": \"off\",\n \"consistent-return\": \"error\",\n \"curly\": \"error\",\n \"dot-notation\": \"error\",\n \"eqeqeq\": [\"error\", \"always\", {null: \"never\"}],\n \"guard-for-in\": \"error\",\n \"id-blacklist\": \"error\",\n \"id-match\": \"error\",\n \"import/no-duplicates\": \"error\",\n \"import/no-extraneous-dependencies\": [\n \"error\",\n {\n devDependencies: [\n \"**/*(_)test?(s)*(_)/**/*.{,c,m}{js,ts}{,x}\",\n \"**/*.config.{,c,m}{js,ts}{,x}\",\n \"**/*.test.{,c,m}{js,ts}{,x}\",\n \"**/*.test-d.{,c,m}ts{,x}\",\n \"**/test.{,c,m}{js,ts}{,x}\"\n ],\n optionalDependencies: false\n }\n ],\n \"import/order\": \"error\",\n \"jsdoc/check-alignment\": \"error\",\n \"jsdoc/check-indentation\": \"off\",\n \"jsdoc/no-types\": \"error\",\n \"max-classes-per-file\": \"off\",\n \"new-parens\": \"error\",\n \"no-alert\": \"error\",\n \"no-caller\": \"error\",\n \"no-constructor-return\": \"error\",\n \"no-duplicate-imports\": \"off\",\n \"no-empty\": \"off\",\n \"no-empty-function\": \"off\",\n \"no-eval\": \"error\",\n \"no-extend-native\": \"error\",\n \"no-extra-bind\": \"error\",\n \"no-extra-semi\": \"off\",\n \"no-implicit-coercion\": \"error\",\n \"no-invalid-this\": \"error\",\n \"no-irregular-whitespace\": [\"error\", {skipStrings: false}],\n \"no-iterator\": \"error\",\n \"no-lone-blocks\": \"error\",\n \"no-new-func\": \"error\",\n \"no-new-wrappers\": \"error\",\n \"no-nonoctal-decimal-escape\": \"error\",\n \"no-octal-escape\": \"error\",\n \"no-param-reassign\": \"error\",\n \"no-promise-executor-return\": \"error\",\n \"no-proto\": \"error\",\n \"@typescript-eslint/no-restricted-imports\": [\n \"error\",\n {\n patterns: [\n \"**/*(_)test?(s)*(_)/**/*\",\n \"**/*.config\",\n \"**/*.config.*\",\n \"**/*.test\",\n \"**/*.test.*\"\n ]\n }\n ],\n \"no-return-assign\": \"error\",\n \"no-return-await\": \"error\",\n \"no-script-url\": \"error\",\n \"no-self-compare\": \"error\",\n \"no-sequences\": [\"error\", {allowInParentheses: false}],\n \"no-throw-literal\": \"error\",\n \"no-undef-init\": \"error\",\n \"no-underscore-dangle\": \"error\",\n \"no-unneeded-ternary\": \"error\",\n \"no-unsafe-optional-chaining\": [\"error\", {disallowArithmeticOperators: true}],\n \"no-unused-expressions\": \"error\",\n \"no-useless-backreference\": \"error\",\n \"no-useless-call\": \"error\",\n \"no-useless-computed-key\": \"error\",\n \"no-useless-concat\": \"error\",\n \"no-useless-rename\": \"error\",\n \"no-var\": \"error\",\n \"object-shorthand\": \"error\",\n \"one-var\": [\"error\", \"never\"],\n \"prefer-arrow/prefer-arrow-functions\": [\"error\", {allowStandaloneDeclarations: true}],\n \"prefer-const\": \"error\",\n \"prefer-exponentiation-operator\": \"error\",\n \"prefer-numeric-literals\": \"error\",\n \"prefer-object-spread\": \"error\",\n \"prefer-promise-reject-errors\": \"error\",\n \"prefer-rest-params\": \"error\",\n \"prefer-regex-literals\": [\"error\", {disallowRedundantWrapping: true}],\n \"prefer-spread\": \"error\",\n \"radix\": \"error\",\n \"require-atomic-updates\": \"error\",\n \"require-unicode-regexp\": \"error\",\n \"strict\": \"error\",\n \"sonarjs/no-all-duplicated-branches\": \"error\",\n \"sonarjs/no-collapsible-if\": \"error\",\n \"sonarjs/no-collection-size-mischeck\": \"error\",\n \"sonarjs/no-duplicated-branches\": \"error\",\n \"sonarjs/no-element-overwrite\": \"error\",\n \"sonarjs/no-empty-collection\": \"error\",\n \"sonarjs/no-extra-arguments\": \"error\",\n \"sonarjs/no-gratuitous-expressions\": \"error\",\n \"sonarjs/no-identical-conditions\": \"error\",\n \"sonarjs/no-identical-expressions\": \"error\",\n \"sonarjs/no-identical-functions\": \"error\",\n \"sonarjs/no-inverted-boolean-check\": \"error\",\n \"sonarjs/no-one-iteration-loop\": \"error\",\n \"sonarjs/no-redundant-boolean\": \"error\",\n \"sonarjs/no-redundant-jump\": \"error\",\n \"sonarjs/no-unused-collection\": \"error\",\n \"sonarjs/no-use-of-empty-return-value\": \"error\",\n \"sonarjs/no-useless-catch\": \"error\",\n \"sonarjs/non-existent-operator\": \"error\",\n \"sonarjs/prefer-object-literal\": \"error\",\n \"sonarjs/prefer-while\": \"error\"\n }\n};\n\nexport = config;\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softwareventures/eslint-config",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.2",
|
|
4
4
|
"description": "Standard eslint configuration for Software Ventures Limited",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"TypeScript",
|
|
@@ -38,34 +38,34 @@
|
|
|
38
38
|
"typescript": "^3.8.3 || ^4.0.0 || ^5.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@commitlint/cli": "19.
|
|
42
|
-
"@commitlint/config-conventional": "19.
|
|
43
|
-
"@commitlint/cz-commitlint": "19.
|
|
44
|
-
"@softwareventures/precise-commits": "4.0.
|
|
41
|
+
"@commitlint/cli": "19.8.1",
|
|
42
|
+
"@commitlint/config-conventional": "19.8.1",
|
|
43
|
+
"@commitlint/cz-commitlint": "19.8.1",
|
|
44
|
+
"@softwareventures/precise-commits": "4.0.19",
|
|
45
45
|
"@softwareventures/prettier-config": "4.0.0",
|
|
46
|
-
"@softwareventures/semantic-release-config": "5.
|
|
47
|
-
"@softwareventures/tsconfig": "8.1.
|
|
46
|
+
"@softwareventures/semantic-release-config": "5.1.0",
|
|
47
|
+
"@softwareventures/tsconfig": "8.1.1",
|
|
48
48
|
"@types/eslint": "8.56.12",
|
|
49
|
-
"@types/node": "18.19.
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
51
|
-
"@typescript-eslint/parser": "8.
|
|
52
|
-
"ava": "6.
|
|
49
|
+
"@types/node": "18.19.112",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "8.35.0",
|
|
51
|
+
"@typescript-eslint/parser": "8.35.0",
|
|
52
|
+
"ava": "6.3.0",
|
|
53
53
|
"commitizen": "4.3.1",
|
|
54
54
|
"conventional-changelog-conventionalcommits": "7.0.2",
|
|
55
55
|
"eslint": "8.57.1",
|
|
56
56
|
"eslint-config-prettier": "9.1.0",
|
|
57
57
|
"eslint-plugin-import": "2.31.0",
|
|
58
|
-
"eslint-plugin-jsdoc": "50.6.
|
|
58
|
+
"eslint-plugin-jsdoc": "50.6.17",
|
|
59
59
|
"eslint-plugin-prefer-arrow": "1.2.3",
|
|
60
|
-
"eslint-plugin-sonarjs": "3.0.
|
|
60
|
+
"eslint-plugin-sonarjs": "3.0.2",
|
|
61
61
|
"husky": "9.1.7",
|
|
62
62
|
"inquirer": "9.3.7",
|
|
63
63
|
"pinst": "3.0.0",
|
|
64
|
-
"prettier": "3.
|
|
64
|
+
"prettier": "3.5.3",
|
|
65
65
|
"semantic-release": "22.0.12",
|
|
66
66
|
"semantic-release-pinst": "1.0.4",
|
|
67
67
|
"ts-node": "10.9.2",
|
|
68
|
-
"typescript": "5.
|
|
68
|
+
"typescript": "5.8.3"
|
|
69
69
|
},
|
|
70
70
|
"eslintConfig": {
|
|
71
71
|
"root": true,
|