@cabify/eslint-config 3.0.1-beta-27 → 3.0.1-beta-28
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/dist/eslint.config.cjs +188 -1
- package/dist/ts-D5pARfet.js +1 -0
- package/package.json +1 -1
- package/dist/eslint.config-pxQk0ZEe.cjs +0 -188
- package/dist/ts-tx5aZNua.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("path"),e=require("typescript-eslint"),o={name:"ts-cabify-eslint-config",files:["**/*.ts","**/*.tsx"],rules:{"@typescript-eslint/restrict-template-expressions":["error",{allowAny:!0}],"@typescript-eslint/array-type":["error",{default:"array"}],"@typescript-eslint/consistent-type-definitions":["error","interface"],"@typescript-eslint/member-ordering":"error","@typescript-eslint/explicit-function-return-type":"off","@typescript-eslint/naming-convention":["error",{selector:"default",format:["camelCase"]},{selector:"import",format:["camelCase","PascalCase","UPPER_CASE"]},{selector:["classProperty","objectLiteralProperty","typeProperty"],format:null},{selector:"variableLike",format:["camelCase","PascalCase"]},{selector:"variable",format:["camelCase","PascalCase","UPPER_CASE"]},{selector:["parameterProperty","method","accessor"],format:["camelCase","PascalCase"],leadingUnderscore:"allow"},{selector:"memberLike",modifiers:["private"],format:["camelCase"],leadingUnderscore:"forbid"},{selector:"typeLike",format:["PascalCase"]},{selector:"parameter",format:["camelCase","PascalCase"],leadingUnderscore:"allow"},{selector:"typeParameter",format:["PascalCase"],custom:{regex:"^[A-Z][a-zA-Z]+$",match:!0}},{selector:"interface",format:["PascalCase"],custom:{regex:"^I[A-Z]",match:!1}},{selector:"class",format:["PascalCase"],leadingUnderscore:"forbid"},{selector:"enumMember",format:["UPPER_CASE","PascalCase"]}],"@typescript-eslint/no-non-null-assertion":"off","@typescript-eslint/no-explicit-any":"error","@typescript-eslint/no-unused-expressions":["error",{allowShortCircuit:!0,allowTernary:!0,allowTaggedTemplates:!1}],"@typescript-eslint/no-unused-vars":["error",{ignoreRestSiblings:!0,argsIgnorePattern:"^_"}],"@typescript-eslint/no-use-before-define":["error",{functions:!0,classes:!0,variables:!0}],"@typescript-eslint/no-redeclare":["error"],"@typescript-eslint/no-shadow":["error"],"@typescript-eslint/explicit-module-boundary-types":"off","@typescript-eslint/no-unsafe-member-access":"off","@typescript-eslint/no-unsafe-assignment":"off","@typescript-eslint/no-unsafe-call":"off","@typescript-eslint/no-unsafe-return":"off",camelcase:"off","import/no-cycle":"off","import/no-default-export":"error","import/named":"off","import/namespace":"off","import/default":"off","import/no-named-as-default-member":"off","react/sort-comp":"off","react/prop-types":"off","react/require-default-props":"off","react/default-props-match-prop-types":"off","no-unused-expressions":"off","no-unused-vars":"off","import/prefer-default-export":"off","no-useless-constructor":"off","@typescript-eslint/no-useless-constructor":"error","no-use-before-define":"off","no-redeclare":"off","no-shadow":"off"},languageOptions:{parserOptions:{projectService:!0,tsconfigRootDir:s.resolve(process.cwd())}},ignores:["*.d.ts"]},r=e.config(e.configs.recommended,e.configs.recommendedTypeChecked,o);r.length&&r.forEach(t=>{t.files=["**/*.ts","**/*.tsx"],t.ignores=["**/*.d.ts"]});exports.tsLintConfig=r;
|