@cabify/eslint-config 3.0.1-beta-29 → 3.0.1-beta-30

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.
@@ -0,0 +1,10 @@
1
+ import e from "eslint-plugin-jest";
2
+ const r = {
3
+ ...e.configs["flat/recommended"],
4
+ rules: {
5
+ ...e.configs["flat/recommended"].rules
6
+ }
7
+ };
8
+ export {
9
+ r as jestConf
10
+ };
@@ -0,0 +1,11 @@
1
+ import e from "eslint-plugin-jest";
2
+ const t = {
3
+ name: "jest-cabify-eslint-config",
4
+ ...e.configs["flat/recommended"],
5
+ rules: {
6
+ ...e.configs["flat/recommended"].rules
7
+ }
8
+ };
9
+ export {
10
+ t as default
11
+ };
@@ -0,0 +1,11 @@
1
+ import e from "eslint-plugin-jest";
2
+ const n = {
3
+ name: "jest-cabify-eslint-config",
4
+ ...e.configs["flat/recommended"],
5
+ rules: {
6
+ ...e.configs["flat/recommended"].rules
7
+ }
8
+ };
9
+ export {
10
+ n as jestConf
11
+ };
package/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@cabify/eslint-config",
3
- "version": "3.0.1-beta-29",
3
+ "version": "3.0.1-beta-30",
4
4
  "description": "ESLint config for Cabify Javascript projects",
5
5
  "type": "module",
6
6
  "scripts": {
7
- "build": "vite build",
7
+ "build:es": "BUILD_FORMAT=es vite build",
8
+ "build:cjs": "BUILD_FORMAT=cjs vite build",
9
+ "build": "yarn build:es && yarn build:cjs",
8
10
  "test": "npm run lint:check && npm run format:check",
9
11
  "lint": "eslint . --fix",
10
12
  "lint:check": "eslint .",
@@ -62,9 +64,11 @@
62
64
  "prettier": ">= 2.2.1"
63
65
  },
64
66
  "devDependencies": {
67
+ "@rollup/plugin-replace": "^6.0.2",
65
68
  "eslint": "^9.11.1",
66
69
  "prettier": "3.3.3",
67
- "vite": "^6.0.5"
70
+ "vite": "^6.0.5",
71
+ "vite-plugin-top-level-await": "^1.4.4"
68
72
  },
69
73
  "publishConfig": {
70
74
  "access": "public"
@@ -1 +0,0 @@
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;