eslint-config-typed 3.2.1 → 3.4.0
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/README.md +29 -26
- package/dist/configs/plugins.d.mts +1 -1
- package/dist/configs/plugins.d.mts.map +1 -1
- package/dist/configs/plugins.mjs +3 -1
- package/dist/configs/plugins.mjs.map +1 -1
- package/dist/configs/typescript.d.mts.map +1 -1
- package/dist/configs/typescript.mjs +2 -0
- package/dist/configs/typescript.mjs.map +1 -1
- package/dist/index.mjs +1 -0
- package/dist/index.mjs.map +1 -1
- package/dist/rules/eslint-import-rules.d.mts +1 -1
- package/dist/rules/eslint-import-rules.d.mts.map +1 -1
- package/dist/rules/eslint-import-rules.mjs +1 -1
- package/dist/rules/eslint-import-rules.mjs.map +1 -1
- package/dist/rules/eslint-stylistic-rules.d.mts +99 -0
- package/dist/rules/eslint-stylistic-rules.d.mts.map +1 -0
- package/dist/rules/eslint-stylistic-rules.mjs +105 -0
- package/dist/rules/eslint-stylistic-rules.mjs.map +1 -0
- package/dist/rules/eslint-vitest-rules.d.mts +23 -0
- package/dist/rules/eslint-vitest-rules.d.mts.map +1 -1
- package/dist/rules/eslint-vitest-rules.mjs +27 -0
- package/dist/rules/eslint-vitest-rules.mjs.map +1 -1
- package/dist/rules/index.d.mts +1 -0
- package/dist/rules/index.d.mts.map +1 -1
- package/dist/rules/index.mjs +1 -0
- package/dist/rules/index.mjs.map +1 -1
- package/dist/types/define-known-rules.d.mts +2 -2
- package/dist/types/define-known-rules.d.mts.map +1 -1
- package/dist/types/define-known-rules.mjs.map +1 -1
- package/dist/types/rules/eslint-stylistic-rules.d.mts +8927 -0
- package/dist/types/rules/eslint-stylistic-rules.d.mts.map +1 -0
- package/dist/types/rules/eslint-stylistic-rules.mjs +2 -0
- package/dist/types/rules/eslint-stylistic-rules.mjs.map +1 -0
- package/dist/types/rules/eslint-vitest-rules.d.mts +1189 -735
- package/dist/types/rules/eslint-vitest-rules.d.mts.map +1 -1
- package/dist/types/rules/index.d.mts +1 -0
- package/dist/types/rules/index.d.mts.map +1 -1
- package/package.json +3 -2
- package/src/configs/plugins.mts +4 -1
- package/src/configs/typescript.mts +2 -0
- package/src/plugins/strict-dependencies/rules/resolve-import-path.test.mts +15 -2
- package/src/plugins/strict-dependencies/rules/strict-dependencies.test.mts +1 -2
- package/src/rules/eslint-import-rules.mts +3 -1
- package/src/rules/eslint-stylistic-rules.mts +106 -0
- package/src/rules/eslint-vitest-rules.mts +29 -0
- package/src/rules/index.mts +1 -0
- package/src/types/define-known-rules.mts +2 -0
- package/src/types/rules/eslint-stylistic-rules.mts +9882 -0
- package/src/types/rules/eslint-vitest-rules.mts +1274 -789
- package/src/types/rules/index.mts +1 -0
package/README.md
CHANGED
|
@@ -426,6 +426,7 @@ Add the following to `.vscode/settings.json` for proper ESLint integration:
|
|
|
426
426
|
## Included plugins
|
|
427
427
|
|
|
428
428
|
- @typescript-eslint/eslint-plugin
|
|
429
|
+
- @stylistic/eslint-plugin
|
|
429
430
|
- eslint-plugin-unicorn
|
|
430
431
|
- eslint-plugin-functional
|
|
431
432
|
- eslint-plugin-total-functions (Reimplemented in this repository to support flat config)
|
|
@@ -484,32 +485,33 @@ These functions return (arrays of) ESLint flat configuration(s):
|
|
|
484
485
|
|
|
485
486
|
Pre-configured rule sets that can be imported and customized:
|
|
486
487
|
|
|
487
|
-
| Rule set | Plugin name | Description
|
|
488
|
-
| :----------------------------------------- | :------------------------------------- |
|
|
489
|
-
| **`eslintRules`** | (eslint) | Core ESLint rules
|
|
490
|
-
| **`typescriptEslintRules`** | `@typescript-eslint/eslint-plugin` | TypeScript-specific ESLint rules
|
|
491
|
-
| **`eslintFunctionalRules`** | `eslint-plugin-functional` | Functional programming style rules
|
|
492
|
-
| **`eslintTotalFunctionsRules`** | `eslint-plugin-total-functions` | Functional programming style rules
|
|
493
|
-
| **`eslintUnicornRules`** | `eslint-plugin-unicorn` | Unicorn plugin rules for better code
|
|
494
|
-
| **`eslintArrayFuncRules`** | `eslint-plugin-array-func` | Array function preference rules
|
|
495
|
-
| **`eslintPreferArrowFunctionRules`** | `eslint-plugin-prefer-arrow-functions` | Arrow function preference rules
|
|
496
|
-
| **`eslintPluginSortDestructureKeysRules`** | `eslint-plugin-sort-destructure-keys` | Object destructuring rules
|
|
497
|
-
| **`eslintPromiseRules`** | `eslint-plugin-promise` | Promise handling rules
|
|
498
|
-
| **`eslintImportsRules`** | `eslint-plugin-import-x` | Import/export rules
|
|
499
|
-
| **`eslintSecurityRules`** | `eslint-plugin-security` | Security best practices
|
|
500
|
-
| **`eslintTreeShakableRules`** | `eslint-plugin-tree-shakable` | Tree-shaking optimization rules
|
|
501
|
-
| **`eslintReactRules`** | `eslint-plugin-react` | React-specific rules
|
|
502
|
-
| **`eslintReactHooksRules`** | `eslint-plugin-react-hooks` | React Hooks rules
|
|
503
|
-
| **`eslintReactPerfRules`** | `eslint-plugin-react-perf` | React performance optimization rules
|
|
504
|
-
| **`eslintReactRefreshRules`** | `eslint-plugin-react-refresh` | React Refresh (HMR) rules
|
|
505
|
-
| **`eslintReactCodingStyleRules`** | `eslint-plugin-react-coding-style` | Opinionated React component style rules
|
|
506
|
-
| **`
|
|
507
|
-
| **`
|
|
508
|
-
| **`
|
|
509
|
-
| **`
|
|
510
|
-
| **`
|
|
511
|
-
| **`
|
|
512
|
-
| **`
|
|
488
|
+
| Rule set | Plugin name | Description |
|
|
489
|
+
| :----------------------------------------- | :------------------------------------- | :----------------------------------------------------- |
|
|
490
|
+
| **`eslintRules`** | (eslint) | Core ESLint rules |
|
|
491
|
+
| **`typescriptEslintRules`** | `@typescript-eslint/eslint-plugin` | TypeScript-specific ESLint rules |
|
|
492
|
+
| **`eslintFunctionalRules`** | `eslint-plugin-functional` | Functional programming style rules |
|
|
493
|
+
| **`eslintTotalFunctionsRules`** | `eslint-plugin-total-functions` | Functional programming style rules |
|
|
494
|
+
| **`eslintUnicornRules`** | `eslint-plugin-unicorn` | Unicorn plugin rules for better code |
|
|
495
|
+
| **`eslintArrayFuncRules`** | `eslint-plugin-array-func` | Array function preference rules |
|
|
496
|
+
| **`eslintPreferArrowFunctionRules`** | `eslint-plugin-prefer-arrow-functions` | Arrow function preference rules |
|
|
497
|
+
| **`eslintPluginSortDestructureKeysRules`** | `eslint-plugin-sort-destructure-keys` | Object destructuring rules |
|
|
498
|
+
| **`eslintPromiseRules`** | `eslint-plugin-promise` | Promise handling rules |
|
|
499
|
+
| **`eslintImportsRules`** | `eslint-plugin-import-x` | Import/export rules |
|
|
500
|
+
| **`eslintSecurityRules`** | `eslint-plugin-security` | Security best practices |
|
|
501
|
+
| **`eslintTreeShakableRules`** | `eslint-plugin-tree-shakable` | Tree-shaking optimization rules |
|
|
502
|
+
| **`eslintReactRules`** | `eslint-plugin-react` | React-specific rules |
|
|
503
|
+
| **`eslintReactHooksRules`** | `eslint-plugin-react-hooks` | React Hooks rules |
|
|
504
|
+
| **`eslintReactPerfRules`** | `eslint-plugin-react-perf` | React performance optimization rules |
|
|
505
|
+
| **`eslintReactRefreshRules`** | `eslint-plugin-react-refresh` | React Refresh (HMR) rules |
|
|
506
|
+
| **`eslintReactCodingStyleRules`** | `eslint-plugin-react-coding-style` | Opinionated React component style rules |
|
|
507
|
+
| **`eslintStylisticRules`** | `@stylistic/eslint-plugin` | Stylistic formatting rules disabled to mirror Prettier |
|
|
508
|
+
| **`eslintJsxA11yRules`** | `eslint-plugin-jsx-a11y` | Accessibility rules for JSX |
|
|
509
|
+
| **`eslintVitestRules`** | `eslint-plugin-vitest` | Vitest-specific rules |
|
|
510
|
+
| **`eslintJestRules`** | `eslint-plugin-jest` | Jest-specific rules |
|
|
511
|
+
| **`eslintTestingLibraryRules`** | `eslint-plugin-testing-library` | Testing Library rules |
|
|
512
|
+
| **`eslintPlaywrightRules`** | `eslint-plugin-playwright` | Playwright-specific rules |
|
|
513
|
+
| **`eslintCypressRules`** | `eslint-plugin-cypress` | Cypress-specific rules |
|
|
514
|
+
| **`eslintPluginRules`** | `eslint-plugin-eslint-plugin` | eslint-plugin development rules |
|
|
513
515
|
|
|
514
516
|
### Exported Pre-configured Rule Options
|
|
515
517
|
|
|
@@ -598,6 +600,7 @@ Each plugin provides typed rule definitions:
|
|
|
598
600
|
- **`EslintUnicornRules`** & **`EslintUnicornRulesOption`**
|
|
599
601
|
- **`EslintArrayFuncRules`** (no options)
|
|
600
602
|
- **`EslintPreferArrowFunctionRules`** & **`EslintPreferArrowFunctionRulesOption`**
|
|
603
|
+
- **`EslintStylisticRules`** & **`EslintStylisticRulesOption`**
|
|
601
604
|
- **`EslintPluginSortDestructureKeysRules`** & **`EslintPluginSortDestructureKeysRulesOption`**
|
|
602
605
|
- **`EslintPromiseRules`** & **`EslintPromiseRulesOption`**
|
|
603
606
|
- **`EslintImportsRules`** & **`EslintImportsRulesOption`**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type ESLintPlugin } from '../types/index.mjs';
|
|
2
|
-
export declare const plugins: Record<'@typescript-eslint' | 'array-func' | 'cypress' | 'playwright' | 'functional' | 'import-x' | 'jest' | 'vitest' | 'jsx-a11y' | 'prefer-arrow-functions' | 'promise' | 'react' | 'react-hooks' | 'react-refresh' | 'react-perf' | 'react-coding-style' | 'security' | 'strict-dependencies' | 'testing-library' | 'total-functions' | 'unicorn' | 'sort-destructure-keys' | 'tree-shakable' | 'eslint-plugin' | 'custom', Omit<ESLintPlugin, 'configs'>>;
|
|
2
|
+
export declare const plugins: Record<'@typescript-eslint' | '@stylistic' | 'array-func' | 'cypress' | 'playwright' | 'functional' | 'import-x' | 'jest' | 'vitest' | 'jsx-a11y' | 'prefer-arrow-functions' | 'promise' | 'react' | 'react-hooks' | 'react-refresh' | 'react-perf' | 'react-coding-style' | 'security' | 'strict-dependencies' | 'testing-library' | 'total-functions' | 'unicorn' | 'sort-destructure-keys' | 'tree-shakable' | 'eslint-plugin' | 'custom', Omit<ESLintPlugin, 'configs'>>;
|
|
3
3
|
//# sourceMappingURL=plugins.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.mts","sourceRoot":"","sources":["../../src/configs/plugins.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugins.d.mts","sourceRoot":"","sources":["../../src/configs/plugins.mts"],"names":[],"mappings":"AA2DA,OAAO,EAAE,KAAK,YAAY,EAAmB,MAAM,oBAAoB,CAAC;AAExE,eAAO,MAAM,OAAO,EAAE,MAAM,CACxB,oBAAoB,GACpB,YAAY,GACZ,YAAY,GACZ,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,UAAU,GACV,MAAM,GACN,QAAQ,GACR,UAAU,GACV,wBAAwB,GACxB,SAAS,GACT,OAAO,GACP,aAAa,GACb,eAAe,GACf,YAAY,GACZ,oBAAoB,GACpB,UAAU,GACV,qBAAqB,GACrB,iBAAiB,GACjB,iBAAiB,GACjB,SAAS,GACT,uBAAuB,GACvB,eAAe,GACf,eAAe,GACf,QAAQ,EACV,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC,CAmCW,CAAC"}
|
package/dist/configs/plugins.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import stylistic from '@stylistic/eslint-plugin';
|
|
1
2
|
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
|
2
3
|
import eslintPluginArrayFunc from 'eslint-plugin-array-func';
|
|
3
4
|
import eslintPluginFunctional from 'eslint-plugin-functional';
|
|
@@ -6,7 +7,7 @@ import eslintPluginUnicorn from 'eslint-plugin-unicorn';
|
|
|
6
7
|
import eslintPluginSortDestructureKeys from 'eslint-plugin-sort-destructure-keys';
|
|
7
8
|
import eslintPluginImport from 'eslint-plugin-import-x';
|
|
8
9
|
import eslintPluginJest from 'eslint-plugin-jest';
|
|
9
|
-
import eslintPluginVitest from 'eslint-plugin
|
|
10
|
+
import eslintPluginVitest from '@vitest/eslint-plugin';
|
|
10
11
|
import eslintPluginTestingLibrary from 'eslint-plugin-testing-library';
|
|
11
12
|
import eslintPluginPlaywright from 'eslint-plugin-playwright';
|
|
12
13
|
import eslintPluginCypress from 'eslint-plugin-cypress';
|
|
@@ -27,6 +28,7 @@ import { eslintPluginTreeShakable } from '../plugins/tree-shakable/plugin.mjs';
|
|
|
27
28
|
/* eslint-disable import-x/no-rename-default */
|
|
28
29
|
const plugins = {
|
|
29
30
|
'@typescript-eslint': typescriptEslint,
|
|
31
|
+
'@stylistic': stylistic,
|
|
30
32
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
31
33
|
'array-func': eslintPluginArrayFunc,
|
|
32
34
|
cypress: eslintPluginCypress,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.mjs","sources":["../../src/configs/plugins.mts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugins.mjs","sources":["../../src/configs/plugins.mts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AA6DO,MAAM,OAAO,GA4BhB;AACF,IAAA,oBAAoB,EAAE,gBAAgB;AACtC,IAAA,YAAY,EAAE,SAAS;;AAEvB,IAAA,YAAY,EAAE,qBAAqB;AACnC,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,UAAU,EAAE,sBAAsB;AAClC,IAAA,UAAU,EAAE,sBAAsB;;AAElC,IAAA,uBAAuB,EAAE,+BAA+B;AACxD,IAAA,UAAU,EAAE,kBAAkB;AAC9B,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,MAAM,EAAE,kBAAkB;;AAE1B,IAAA,UAAU,EAAE,mBAAmB;AAC/B,IAAA,wBAAwB,EAAE,gCAAgC;;AAE1D,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,KAAK,EAAE,iBAAiB;;AAExB,IAAA,aAAa,EAAE,sBAAiD;AAChE,IAAA,eAAe,EAAE,wBAAwB;;AAEzC,IAAA,YAAY,EAAE,qBAAqB;AACnC,IAAA,oBAAoB,EAAE,4BAA4B;;AAElD,IAAA,QAAQ,EAAE,oBAAoB;AAC9B,IAAA,qBAAqB,EAAE,8BAA8B;AACrD,IAAA,iBAAiB,EAAE,0BAA0B;AAC7C,IAAA,iBAAiB,EAAE,0BAA0B;AAC7C,IAAA,OAAO,EAAE,mBAAmB;AAC5B,IAAA,eAAe,EAAE,wBAAwB;AACzC,IAAA,eAAe,EAAE,wBAAwB;AACzC,IAAA,MAAM,EAAE,kBAAkB;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.mts","sourceRoot":"","sources":["../../src/configs/typescript.mts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typescript.d.mts","sourceRoot":"","sources":["../../src/configs/typescript.mts"],"names":[],"mappings":"AAeA,OAAO,EAAoB,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGvE,eAAO,MAAM,yBAAyB,GAAI,8EAMvC,QAAQ,CAAC;IACV,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC,KAAG,SAAS,UAAU,EAiFZ,CAAC"}
|
|
@@ -7,6 +7,7 @@ import { eslintPreferArrowFunctionRules } from '../rules/eslint-prefer-arrow-fun
|
|
|
7
7
|
import { eslintPromiseRules } from '../rules/eslint-promise-rules.mjs';
|
|
8
8
|
import { eslintRules } from '../rules/eslint-rules.mjs';
|
|
9
9
|
import { eslintSecurityRules } from '../rules/eslint-security-rules.mjs';
|
|
10
|
+
import { eslintStylisticRules } from '../rules/eslint-stylistic-rules.mjs';
|
|
10
11
|
import { eslintTotalFunctionsRules } from '../rules/eslint-total-functions-rules.mjs';
|
|
11
12
|
import { eslintTreeShakableRules } from '../rules/eslint-tree-shakable-rules.mjs';
|
|
12
13
|
import { eslintUnicornRules } from '../rules/eslint-unicorn-rules.mjs';
|
|
@@ -28,6 +29,7 @@ const eslintConfigForTypeScript = ({ files, packageDirs, tsconfigFileName, tscon
|
|
|
28
29
|
...eslintImportsRules,
|
|
29
30
|
...eslintPromiseRules,
|
|
30
31
|
...eslintRules,
|
|
32
|
+
...eslintStylisticRules,
|
|
31
33
|
...eslintSecurityRules,
|
|
32
34
|
...eslintUnicornRules,
|
|
33
35
|
...typescriptEslintRules,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.mjs","sources":["../../src/configs/typescript.mts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typescript.mjs","sources":["../../src/configs/typescript.mts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;AAkBO,MAAM,yBAAyB,GAAG,CAAC,EACxC,KAAK,EACL,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GAOhB,KACA;AACE,IAAA,GAAG,qCAAqC,CAAC;QACvC,gBAAgB;QAChB,eAAe;KAChB,CAAC;AACF,IAAA;AACE,QAAA,KAAK,EAAE,KAAK,IAAI,CAAC,sCAAsC,CAAC;QACxD,KAAK,EAAE,gBAAgB,CAAC;AACtB,YAAA,GAAG,oBAAoB;AACvB,YAAA,GAAG,8BAA8B;AACjC,YAAA,GAAG,qBAAqB;AACxB,YAAA,GAAG,yBAAyB;AAC5B,YAAA,GAAG,kBAAkB;AACrB,YAAA,GAAG,kBAAkB;AACrB,YAAA,GAAG,WAAW;AACd,YAAA,GAAG,oBAAoB;AACvB,YAAA,GAAG,mBAAmB;AACtB,YAAA,GAAG,kBAAkB;AACrB,YAAA,GAAG,qBAAqB;AACxB,YAAA,GAAG,uBAAuB;AAC1B,YAAA,GAAG,oCAAoC;AAEvC,YAAA,yCAAyC,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC;AAExD,YAAA,qCAAqC,EAAE;gBACrC,OAAO;AACP,gBAAA;AACE,oBAAA,UAAU,EAAE,WAAW;AACxB,iBAAA;AACF,aAAA;YACD,IAAI,gBAAgB,KAAK;AACvB,kBAAE;AACE,oBAAA,iDAAiD,EAAE,KAAK;AACxD,oBAAA,2DAA2D,EACzD,KAAK;AACR;kBACD,EAAE,CAAC;SACR,CAAC;AACH,KAAA;AACD,IAAA;QACE,KAAK,EAAE,CAAC,uBAAuB,CAAC;QAChC,KAAK,EAAE,gBAAgB,CAAC;AACtB,YAAA,kDAAkD,EAAE,KAAK;AACzD,YAAA,8BAA8B,EAAE,KAAK;SACtC,CAAC;AACH,KAAA;AACD,IAAA;QACE,KAAK,EAAE,CAAC,qBAAqB,CAAC;QAC9B,KAAK,EAAE,gBAAgB,CAAC;AACtB,YAAA,2CAA2C,EAAE,KAAK;AAClD,YAAA,sBAAsB,EAAE,KAAK;SAC9B,CAAC;AACH,KAAA;AACD,IAAA;AACE,QAAA,KAAK,EAAE;;;;;;;;YASL,qCAAqC;YAErC,uCAAuC;YAEvC,4CAA4C;YAC5C,gDAAgD;YAChD,qCAAqC;AACtC,SAAA;QACD,KAAK,EAAE,gBAAgB,CAAC;AACtB,YAAA,0CAA0C,EAAE,KAAK;AACjD,YAAA,4BAA4B,EAAE,KAAK;AACnC,YAAA,sCAAsC,EAAE,KAAK;AAC7C,YAAA,8BAA8B,EAAE,KAAK;AACrC,YAAA,8BAA8B,EAAE,KAAK;AACrC,YAAA,oBAAoB,EAAE,KAAK;SAC5B,CAAC;AACH,KAAA;;;;;"}
|
package/dist/index.mjs
CHANGED
|
@@ -35,6 +35,7 @@ export { eslintReactRefreshRules } from './rules/eslint-react-refresh-rules.mjs'
|
|
|
35
35
|
export { eslintReactRules } from './rules/eslint-react-rules.mjs';
|
|
36
36
|
export { eslintRules, restrictedGlobals, restrictedGlobalsForBrowser, restrictedSyntax } from './rules/eslint-rules.mjs';
|
|
37
37
|
export { eslintSecurityRules } from './rules/eslint-security-rules.mjs';
|
|
38
|
+
export { eslintStylisticRules } from './rules/eslint-stylistic-rules.mjs';
|
|
38
39
|
export { eslintTestingLibraryRules } from './rules/eslint-testing-library-rules.mjs';
|
|
39
40
|
export { eslintTotalFunctionsRules } from './rules/eslint-total-functions-rules.mjs';
|
|
40
41
|
export { eslintTreeShakableRules } from './rules/eslint-tree-shakable-rules.mjs';
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -57,7 +57,7 @@ export declare const eslintImportsRules: {
|
|
|
57
57
|
readonly 'import-x/no-named-export': "off";
|
|
58
58
|
readonly 'import-x/no-anonymous-default-export': 2 | 1;
|
|
59
59
|
readonly 'import-x/group-exports': "off";
|
|
60
|
-
readonly 'import-x/dynamic-import-chunkname':
|
|
60
|
+
readonly 'import-x/dynamic-import-chunkname': "off";
|
|
61
61
|
readonly 'import-x/no-empty-named-blocks': "error";
|
|
62
62
|
readonly 'import-x/no-rename-default': 2 | 1;
|
|
63
63
|
readonly 'import-x/prefer-namespace-import': readonly ["error", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-import-rules.d.mts","sourceRoot":"","sources":["../../src/rules/eslint-import-rules.mts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiH7B;;;OAGG;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"eslint-import-rules.d.mts","sourceRoot":"","sources":["../../src/rules/eslint-import-rules.mts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiH7B;;;OAGG;;;;;;;;;;;;CAmBkC,CAAC"}
|
|
@@ -109,7 +109,7 @@ const eslintImportsRules = {
|
|
|
109
109
|
'import-x/no-named-export': 'off',
|
|
110
110
|
'import-x/no-anonymous-default-export': withDefaultOption('error'),
|
|
111
111
|
'import-x/group-exports': 'off',
|
|
112
|
-
'import-x/dynamic-import-chunkname':
|
|
112
|
+
'import-x/dynamic-import-chunkname': 'off',
|
|
113
113
|
'import-x/no-empty-named-blocks': 'error',
|
|
114
114
|
// Covered by unicorn/prefer-node-protocol
|
|
115
115
|
// 'import/enforce-node-protocol-usage': ['error', 'always'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-import-rules.mjs","sources":["../../src/rules/eslint-import-rules.mts"],"sourcesContent":[null],"names":[],"mappings":";;;AAGO,MAAM,kBAAkB,GAAG;;AAEhC,IAAA,wBAAwB,EAAE,KAAK;;AAG/B,IAAA,gBAAgB,EAAE,KAAK;AAEvB,IAAA,kBAAkB,EAAE,OAAO;AAC3B,IAAA,oBAAoB,EAAE,iBAAiB,CAAC,OAAO,CAAC;IAChD,8BAA8B,EAAE,KAAK;AACrC,IAAA,2BAA2B,EAAE,iBAAiB,CAAC,OAAO,CAAC;AACvD,IAAA,6BAA6B,EAAE,iBAAiB,CAAC,OAAO,CAAC;AACzD,IAAA,8BAA8B,EAAE;QAC9B,OAAO;AACP,QAAA;AACE,YAAA,KAAK,EAAE;AACL,gBAAA,CAAA,SAAA,EAAY,gBAAgB,CAAA,CAAA,CAAG;AAC/B,gBAAA,CAAA,SAAA,EAAY,gBAAgB,CAAA,CAAA,CAAG;gBAC/B,gBAAgB;gBAChB,cAAc;gBACd,8BAA8B;gBAC9B,kBAAkB;gBAClB,WAAW;gBACX,UAAU;gBACV,YAAY;gBACZ,uBAAuB;gBACvB,gBAAgB;gBAChB,iBAAiB;gBACjB,eAAe;gBACf,gBAAgB;gBAChB,yCAAyC;gBACzC,eAAe;gBACf,YAAY;AACb,aAAA;AACF,SAAA;AACF,KAAA;A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AACD,IAAA,gCAAgC,EAAE,KAAK;AACvC,IAAA,2BAA2B,EAAE,KAAK;AAClC,IAAA,+BAA+B,EAAE;QAC/B,OAAO;AACP,QAAA;AACE,YAAA,KAAK,EAAE;gBACL,UAAU;gBACV,8BAA8B;gBAC9B,UAAU;gBACV,YAAY;AACb,aAAA;AACF,SAAA;AACF,KAAA;AACD,IAAA,2BAA2B,EAAE,KAAK;AAElC;;;AAGG;AACH,IAAA,4BAA4B,EAAE,OAAO;AAErC,IAAA,0BAA0B,EAAE,KAAK;AACjC,IAAA,sCAAsC,EAAE,iBAAiB,CAAC,OAAO,CAAC;AAClE,IAAA,wBAAwB,EAAE,KAAK;
|
|
1
|
+
{"version":3,"file":"eslint-import-rules.mjs","sources":["../../src/rules/eslint-import-rules.mts"],"sourcesContent":[null],"names":[],"mappings":";;;AAGO,MAAM,kBAAkB,GAAG;;AAEhC,IAAA,wBAAwB,EAAE,KAAK;;AAG/B,IAAA,gBAAgB,EAAE,KAAK;AAEvB,IAAA,kBAAkB,EAAE,OAAO;AAC3B,IAAA,oBAAoB,EAAE,iBAAiB,CAAC,OAAO,CAAC;IAChD,8BAA8B,EAAE,KAAK;AACrC,IAAA,2BAA2B,EAAE,iBAAiB,CAAC,OAAO,CAAC;AACvD,IAAA,6BAA6B,EAAE,iBAAiB,CAAC,OAAO,CAAC;AACzD,IAAA,8BAA8B,EAAE;QAC9B,OAAO;AACP,QAAA;AACE,YAAA,KAAK,EAAE;AACL,gBAAA,CAAA,SAAA,EAAY,gBAAgB,CAAA,CAAA,CAAG;AAC/B,gBAAA,CAAA,SAAA,EAAY,gBAAgB,CAAA,CAAA,CAAG;gBAC/B,gBAAgB;gBAChB,cAAc;gBACd,8BAA8B;gBAC9B,kBAAkB;gBAClB,WAAW;gBACX,UAAU;gBACV,YAAY;gBACZ,uBAAuB;gBACvB,gBAAgB;gBAChB,iBAAiB;gBACjB,eAAe;gBACf,gBAAgB;gBAChB,yCAAyC;gBACzC,eAAe;gBACf,YA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AK,EAAE,CAAC;AACT,SAAA;AACF,KAAA;AACD,IAAA,gCAAgC,EAAE,KAAK;AACvC,IAAA,2BAA2B,EAAE,KAAK;AAClC,IAAA,+BAA+B,EAAE;QAC/B,OAAO;AACP,QAAA;AACE,YAAA,KAAK,EAAE;gBACL,UAAU;gBACV,8BAA8B;gBAC9B,UAAU;gBACV,YAAY;AACb,aAAA;AACF,SAAA;AACF,KAAA;AACD,IAAA,2BAA2B,EAAE,KAAK;AAElC;;;AAGG;AACH,IAAA,4BAA4B,EAAE,OAAO;AAErC,IAAA,0BAA0B,EAAE,KAAK;AACjC,IAAA,sCAAsC,EAAE,iBAAiB,CAAC,OAAO,CAAC;AAClE,IAAA,wBAAwB,EAAE,KAAK;AAE/B,IAAA,mCAAmC,EAAE,KAAK;AAE1C,IAAA,gCAAgC,EAAE,OAAO;;;AAKzC,IAAA,4BAA4B,EAAE,iBAAiB,CAAC,OAAO,CAAC;IACxD,kCAAkC,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;;AAGtE,IAAA,wBAAwB,EAAE,CAAC;;;;;"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
export declare const eslintStylisticRules: {
|
|
2
|
+
readonly '@stylistic/lines-around-comment': "off";
|
|
3
|
+
readonly '@stylistic/max-len': "off";
|
|
4
|
+
readonly '@stylistic/no-confusing-arrow': "off";
|
|
5
|
+
readonly '@stylistic/no-mixed-operators': "off";
|
|
6
|
+
readonly '@stylistic/no-tabs': "off";
|
|
7
|
+
readonly '@stylistic/quotes': "off";
|
|
8
|
+
readonly '@stylistic/array-bracket-newline': "off";
|
|
9
|
+
readonly '@stylistic/array-bracket-spacing': "off";
|
|
10
|
+
readonly '@stylistic/array-element-newline': "off";
|
|
11
|
+
readonly '@stylistic/arrow-parens': "off";
|
|
12
|
+
readonly '@stylistic/arrow-spacing': "off";
|
|
13
|
+
readonly '@stylistic/block-spacing': "off";
|
|
14
|
+
readonly '@stylistic/brace-style': "off";
|
|
15
|
+
readonly '@stylistic/comma-dangle': "off";
|
|
16
|
+
readonly '@stylistic/comma-spacing': "off";
|
|
17
|
+
readonly '@stylistic/comma-style': "off";
|
|
18
|
+
readonly '@stylistic/computed-property-spacing': "off";
|
|
19
|
+
readonly '@stylistic/dot-location': "off";
|
|
20
|
+
readonly '@stylistic/eol-last': "off";
|
|
21
|
+
readonly '@stylistic/function-call-argument-newline': "off";
|
|
22
|
+
readonly '@stylistic/function-call-spacing': "off";
|
|
23
|
+
readonly '@stylistic/function-paren-newline': "off";
|
|
24
|
+
readonly '@stylistic/generator-star-spacing': "off";
|
|
25
|
+
readonly '@stylistic/implicit-arrow-linebreak': "off";
|
|
26
|
+
readonly '@stylistic/indent': "off";
|
|
27
|
+
readonly '@stylistic/jsx-quotes': "off";
|
|
28
|
+
readonly '@stylistic/key-spacing': "off";
|
|
29
|
+
readonly '@stylistic/keyword-spacing': "off";
|
|
30
|
+
readonly '@stylistic/linebreak-style': "off";
|
|
31
|
+
readonly '@stylistic/max-statements-per-line': "off";
|
|
32
|
+
readonly '@stylistic/multiline-ternary': "off";
|
|
33
|
+
readonly '@stylistic/new-parens': "off";
|
|
34
|
+
readonly '@stylistic/newline-per-chained-call': "off";
|
|
35
|
+
readonly '@stylistic/no-extra-parens': "off";
|
|
36
|
+
readonly '@stylistic/no-extra-semi': "off";
|
|
37
|
+
readonly '@stylistic/no-floating-decimal': "off";
|
|
38
|
+
readonly '@stylistic/no-mixed-spaces-and-tabs': "off";
|
|
39
|
+
readonly '@stylistic/no-multi-spaces': "off";
|
|
40
|
+
readonly '@stylistic/no-multiple-empty-lines': "off";
|
|
41
|
+
readonly '@stylistic/no-trailing-spaces': "off";
|
|
42
|
+
readonly '@stylistic/no-whitespace-before-property': "off";
|
|
43
|
+
readonly '@stylistic/nonblock-statement-body-position': "off";
|
|
44
|
+
readonly '@stylistic/object-curly-newline': "off";
|
|
45
|
+
readonly '@stylistic/object-curly-spacing': "off";
|
|
46
|
+
readonly '@stylistic/object-property-newline': "off";
|
|
47
|
+
readonly '@stylistic/one-var-declaration-per-line': "off";
|
|
48
|
+
readonly '@stylistic/operator-linebreak': "off";
|
|
49
|
+
readonly '@stylistic/padded-blocks': "off";
|
|
50
|
+
readonly '@stylistic/quote-props': "off";
|
|
51
|
+
readonly '@stylistic/rest-spread-spacing': "off";
|
|
52
|
+
readonly '@stylistic/semi': "off";
|
|
53
|
+
readonly '@stylistic/semi-spacing': "off";
|
|
54
|
+
readonly '@stylistic/semi-style': "off";
|
|
55
|
+
readonly '@stylistic/space-before-blocks': "off";
|
|
56
|
+
readonly '@stylistic/space-before-function-paren': "off";
|
|
57
|
+
readonly '@stylistic/space-in-parens': "off";
|
|
58
|
+
readonly '@stylistic/space-infix-ops': "off";
|
|
59
|
+
readonly '@stylistic/space-unary-ops': "off";
|
|
60
|
+
readonly '@stylistic/switch-colon-spacing': "off";
|
|
61
|
+
readonly '@stylistic/template-curly-spacing': "off";
|
|
62
|
+
readonly '@stylistic/template-tag-spacing': "off";
|
|
63
|
+
readonly '@stylistic/wrap-iife': "off";
|
|
64
|
+
readonly '@stylistic/wrap-regex': "off";
|
|
65
|
+
readonly '@stylistic/yield-star-spacing': "off";
|
|
66
|
+
readonly '@stylistic/member-delimiter-style': "off";
|
|
67
|
+
readonly '@stylistic/type-annotation-spacing': "off";
|
|
68
|
+
readonly '@stylistic/jsx-child-element-spacing': "off";
|
|
69
|
+
readonly '@stylistic/jsx-closing-bracket-location': "off";
|
|
70
|
+
readonly '@stylistic/jsx-closing-tag-location': "off";
|
|
71
|
+
readonly '@stylistic/jsx-curly-newline': "off";
|
|
72
|
+
readonly '@stylistic/jsx-curly-spacing': "off";
|
|
73
|
+
readonly '@stylistic/jsx-equals-spacing': "off";
|
|
74
|
+
readonly '@stylistic/jsx-first-prop-new-line': "off";
|
|
75
|
+
readonly '@stylistic/jsx-indent': 0;
|
|
76
|
+
readonly '@stylistic/jsx-indent-props': "off";
|
|
77
|
+
readonly '@stylistic/jsx-max-props-per-line': "off";
|
|
78
|
+
readonly '@stylistic/jsx-newline': "off";
|
|
79
|
+
readonly '@stylistic/jsx-one-expression-per-line': "off";
|
|
80
|
+
readonly '@stylistic/jsx-props-no-multi-spaces': 0;
|
|
81
|
+
readonly '@stylistic/jsx-tag-spacing': "off";
|
|
82
|
+
readonly '@stylistic/jsx-wrap-multilines': "off";
|
|
83
|
+
readonly '@stylistic/indent-binary-ops': "off";
|
|
84
|
+
readonly '@stylistic/type-generic-spacing': "off";
|
|
85
|
+
readonly '@stylistic/type-named-tuple-spacing': "off";
|
|
86
|
+
readonly '@stylistic/curly-newline': "off";
|
|
87
|
+
readonly '@stylistic/exp-list-style': "off";
|
|
88
|
+
readonly '@stylistic/jsx-curly-brace-presence': "off";
|
|
89
|
+
readonly '@stylistic/jsx-function-call-newline': "off";
|
|
90
|
+
readonly '@stylistic/jsx-pascal-case': "off";
|
|
91
|
+
readonly '@stylistic/jsx-self-closing-comp': "off";
|
|
92
|
+
readonly '@stylistic/jsx-sort-props': "off";
|
|
93
|
+
readonly '@stylistic/line-comment-position': "off";
|
|
94
|
+
readonly '@stylistic/lines-between-class-members': "off";
|
|
95
|
+
readonly '@stylistic/multiline-comment-style': "off";
|
|
96
|
+
readonly '@stylistic/padding-line-between-statements': "off";
|
|
97
|
+
readonly '@stylistic/spaced-comment': "off";
|
|
98
|
+
};
|
|
99
|
+
//# sourceMappingURL=eslint-stylistic-rules.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint-stylistic-rules.d.mts","sourceRoot":"","sources":["../../src/rules/eslint-stylistic-rules.mts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuGQ,CAAC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
const eslintStylisticRules = {
|
|
2
|
+
// Rules explicitly disabled by eslint-config-prettier (special handling)
|
|
3
|
+
'@stylistic/lines-around-comment': 'off',
|
|
4
|
+
'@stylistic/max-len': 'off',
|
|
5
|
+
'@stylistic/no-confusing-arrow': 'off',
|
|
6
|
+
'@stylistic/no-mixed-operators': 'off',
|
|
7
|
+
'@stylistic/no-tabs': 'off',
|
|
8
|
+
'@stylistic/quotes': 'off',
|
|
9
|
+
// Rules kept off to mirror eslint-config-prettier ordering
|
|
10
|
+
'@stylistic/array-bracket-newline': 'off',
|
|
11
|
+
'@stylistic/array-bracket-spacing': 'off',
|
|
12
|
+
'@stylistic/array-element-newline': 'off',
|
|
13
|
+
'@stylistic/arrow-parens': 'off',
|
|
14
|
+
'@stylistic/arrow-spacing': 'off',
|
|
15
|
+
'@stylistic/block-spacing': 'off',
|
|
16
|
+
'@stylistic/brace-style': 'off',
|
|
17
|
+
'@stylistic/comma-dangle': 'off',
|
|
18
|
+
'@stylistic/comma-spacing': 'off',
|
|
19
|
+
'@stylistic/comma-style': 'off',
|
|
20
|
+
'@stylistic/computed-property-spacing': 'off',
|
|
21
|
+
'@stylistic/dot-location': 'off',
|
|
22
|
+
'@stylistic/eol-last': 'off',
|
|
23
|
+
'@stylistic/function-call-argument-newline': 'off',
|
|
24
|
+
'@stylistic/function-call-spacing': 'off',
|
|
25
|
+
'@stylistic/function-paren-newline': 'off',
|
|
26
|
+
'@stylistic/generator-star-spacing': 'off',
|
|
27
|
+
'@stylistic/implicit-arrow-linebreak': 'off',
|
|
28
|
+
'@stylistic/indent': 'off',
|
|
29
|
+
'@stylistic/jsx-quotes': 'off',
|
|
30
|
+
'@stylistic/key-spacing': 'off',
|
|
31
|
+
'@stylistic/keyword-spacing': 'off',
|
|
32
|
+
'@stylistic/linebreak-style': 'off',
|
|
33
|
+
'@stylistic/max-statements-per-line': 'off',
|
|
34
|
+
'@stylistic/multiline-ternary': 'off',
|
|
35
|
+
'@stylistic/new-parens': 'off',
|
|
36
|
+
'@stylistic/newline-per-chained-call': 'off',
|
|
37
|
+
'@stylistic/no-extra-parens': 'off',
|
|
38
|
+
'@stylistic/no-extra-semi': 'off',
|
|
39
|
+
'@stylistic/no-floating-decimal': 'off',
|
|
40
|
+
'@stylistic/no-mixed-spaces-and-tabs': 'off',
|
|
41
|
+
'@stylistic/no-multi-spaces': 'off',
|
|
42
|
+
'@stylistic/no-multiple-empty-lines': 'off',
|
|
43
|
+
'@stylistic/no-trailing-spaces': 'off',
|
|
44
|
+
'@stylistic/no-whitespace-before-property': 'off',
|
|
45
|
+
'@stylistic/nonblock-statement-body-position': 'off',
|
|
46
|
+
'@stylistic/object-curly-newline': 'off',
|
|
47
|
+
'@stylistic/object-curly-spacing': 'off',
|
|
48
|
+
'@stylistic/object-property-newline': 'off',
|
|
49
|
+
'@stylistic/one-var-declaration-per-line': 'off',
|
|
50
|
+
'@stylistic/operator-linebreak': 'off',
|
|
51
|
+
'@stylistic/padded-blocks': 'off',
|
|
52
|
+
'@stylistic/quote-props': 'off',
|
|
53
|
+
'@stylistic/rest-spread-spacing': 'off',
|
|
54
|
+
'@stylistic/semi': 'off',
|
|
55
|
+
'@stylistic/semi-spacing': 'off',
|
|
56
|
+
'@stylistic/semi-style': 'off',
|
|
57
|
+
'@stylistic/space-before-blocks': 'off',
|
|
58
|
+
'@stylistic/space-before-function-paren': 'off',
|
|
59
|
+
'@stylistic/space-in-parens': 'off',
|
|
60
|
+
'@stylistic/space-infix-ops': 'off',
|
|
61
|
+
'@stylistic/space-unary-ops': 'off',
|
|
62
|
+
'@stylistic/switch-colon-spacing': 'off',
|
|
63
|
+
'@stylistic/template-curly-spacing': 'off',
|
|
64
|
+
'@stylistic/template-tag-spacing': 'off',
|
|
65
|
+
'@stylistic/wrap-iife': 'off',
|
|
66
|
+
'@stylistic/wrap-regex': 'off',
|
|
67
|
+
'@stylistic/yield-star-spacing': 'off',
|
|
68
|
+
'@stylistic/member-delimiter-style': 'off',
|
|
69
|
+
'@stylistic/type-annotation-spacing': 'off',
|
|
70
|
+
'@stylistic/jsx-child-element-spacing': 'off',
|
|
71
|
+
'@stylistic/jsx-closing-bracket-location': 'off',
|
|
72
|
+
'@stylistic/jsx-closing-tag-location': 'off',
|
|
73
|
+
'@stylistic/jsx-curly-newline': 'off',
|
|
74
|
+
'@stylistic/jsx-curly-spacing': 'off',
|
|
75
|
+
'@stylistic/jsx-equals-spacing': 'off',
|
|
76
|
+
'@stylistic/jsx-first-prop-new-line': 'off',
|
|
77
|
+
'@stylistic/jsx-indent': 0,
|
|
78
|
+
'@stylistic/jsx-indent-props': 'off',
|
|
79
|
+
'@stylistic/jsx-max-props-per-line': 'off',
|
|
80
|
+
'@stylistic/jsx-newline': 'off',
|
|
81
|
+
'@stylistic/jsx-one-expression-per-line': 'off',
|
|
82
|
+
'@stylistic/jsx-props-no-multi-spaces': 0,
|
|
83
|
+
'@stylistic/jsx-tag-spacing': 'off',
|
|
84
|
+
'@stylistic/jsx-wrap-multilines': 'off',
|
|
85
|
+
'@stylistic/indent-binary-ops': 'off',
|
|
86
|
+
'@stylistic/type-generic-spacing': 'off',
|
|
87
|
+
'@stylistic/type-named-tuple-spacing': 'off',
|
|
88
|
+
// Additional stylistic rules defaulted to off
|
|
89
|
+
'@stylistic/curly-newline': 'off',
|
|
90
|
+
'@stylistic/exp-list-style': 'off',
|
|
91
|
+
// Covered by react/jsx-curly-brace-presence
|
|
92
|
+
'@stylistic/jsx-curly-brace-presence': 'off',
|
|
93
|
+
'@stylistic/jsx-function-call-newline': 'off',
|
|
94
|
+
'@stylistic/jsx-pascal-case': 'off',
|
|
95
|
+
'@stylistic/jsx-self-closing-comp': 'off',
|
|
96
|
+
'@stylistic/jsx-sort-props': 'off',
|
|
97
|
+
'@stylistic/line-comment-position': 'off',
|
|
98
|
+
'@stylistic/lines-between-class-members': 'off',
|
|
99
|
+
'@stylistic/multiline-comment-style': 'off',
|
|
100
|
+
'@stylistic/padding-line-between-statements': 'off',
|
|
101
|
+
'@stylistic/spaced-comment': 'off',
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export { eslintStylisticRules };
|
|
105
|
+
//# sourceMappingURL=eslint-stylistic-rules.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint-stylistic-rules.mjs","sources":["../../src/rules/eslint-stylistic-rules.mts"],"sourcesContent":[null],"names":[],"mappings":"AAEO,MAAM,oBAAoB,GAAG;;AAElC,IAAA,iCAAiC,EAAE,KAAK;AACxC,IAAA,oBAAoB,EAAE,KAAK;AAC3B,IAAA,+BAA+B,EAAE,KAAK;AACtC,IAAA,+BAA+B,EAAE,KAAK;AACtC,IAAA,oBAAoB,EAAE,KAAK;AAC3B,IAAA,mBAAmB,EAAE,KAAK;;AAG1B,IAAA,kCAAkC,EAAE,KAAK;AACzC,IAAA,kCAAkC,EAAE,KAAK;AACzC,IAAA,kCAAkC,EAAE,KAAK;AACzC,IAAA,yBAAyB,EAAE,KAAK;AAChC,IAAA,0BAA0B,EAAE,KAAK;AACjC,IAAA,0BAA0B,EAAE,KAAK;AACjC,IAAA,wBAAwB,EAAE,KAAK;AAC/B,IAAA,yBAAyB,EAAE,KAAK;AAChC,IAAA,0BAA0B,EAAE,KAAK;AACjC,IAAA,wBAAwB,EAAE,KAAK;AAC/B,IAAA,sCAAsC,EAAE,KAAK;AAC7C,IAAA,yBAAyB,EAAE,KAAK;AAChC,IAAA,qBAAqB,EAAE,KAAK;AAC5B,IAAA,2CAA2C,EAAE,KAAK;AAClD,IAAA,kCAAkC,EAAE,KAAK;AACzC,IAAA,mCAAmC,EAAE,KAAK;AAC1C,IAAA,mCAAmC,EAAE,KAAK;AAC1C,IAAA,qCAAqC,EAAE,KAAK;AAC5C,IAAA,mBAAmB,EAAE,KAAK;AAC1B,IAAA,uBAAuB,EAAE,KAAK;AAC9B,IAAA,wBAAwB,EAAE,KAAK;AAC/B,IAAA,4BAA4B,EAAE,KAAK;AACnC,IAAA,4BAA4B,EAAE,K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AA,sCAAsC,EAAE,KAAK;AAC7C,IAAA,yCAAyC,EAAE,KAAK;AAChD,IAAA,qCAAqC,EAAE,KAAK;AAC5C,IAAA,8BAA8B,EAAE,KAAK;AACrC,IAAA,8BAA8B,EAAE,KAAK;AACrC,IAAA,+BAA+B,EAAE,KAAK;AACtC,IAAA,oCAAoC,EAAE,KAAK;AAC3C,IAAA,uBAAuB,EAAE,CAAC;AAC1B,IAAA,6BAA6B,EAAE,KAAK;AACpC,IAAA,mCAAmC,EAAE,KAAK;AAC1C,IAAA,wBAAwB,EAAE,KAAK;AAC/B,IAAA,wCAAwC,EAAE,KAAK;AAC/C,IAAA,sCAAsC,EAAE,CAAC;AACzC,IAAA,4BAA4B,EAAE,KAAK;AACnC,IAAA,gCAAgC,EAAE,KAAK;AACvC,IAAA,8BAA8B,EAAE,KAAK;AACrC,IAAA,iCAAiC,EAAE,KAAK;AACxC,IAAA,qCAAqC,EAAE,KAAK;;AAG5C,IAAA,0BAA0B,EAAE,KAAK;AACjC,IAAA,2BAA2B,EAAE,KAAK;;AAElC,IAAA,qCAAqC,EAAE,KAAK;AAC5C,IAAA,sCAAsC,EAAE,KAAK;AAC7C,IAAA,4BAA4B,EAAE,KAAK;AACnC,IAAA,kCAAkC,EAAE,KAAK;AACzC,IAAA,2BAA2B,EAAE,KAAK;AAClC,IAAA,kCAAkC,EAAE,KAAK;AACzC,IAAA,wCAAwC,EAAE,KAAK;AAC/C,IAAA,oCAAoC,EAAE,KAAK;AAC3C,IAAA,4CAA4C,EAAE,KAAK;AACnD,IAAA,2BAA2B,EAAE,KAAK;;;;;"}
|
|
@@ -58,6 +58,29 @@ export declare const eslintVitestRules: {
|
|
|
58
58
|
readonly 'vitest/prefer-to-be-truthy': "off";
|
|
59
59
|
readonly 'vitest/prefer-to-be-object': "error";
|
|
60
60
|
readonly 'vitest/require-local-test-context-for-concurrent-snapshots': "error";
|
|
61
|
+
readonly 'vitest/no-importing-vitest-globals': "error";
|
|
62
|
+
readonly 'vitest/prefer-importing-vitest-globals': "off";
|
|
63
|
+
readonly 'vitest/consistent-vitest-vi': 2 | 1;
|
|
64
|
+
readonly 'vitest/hoisted-apis-on-top': "error";
|
|
65
|
+
readonly 'vitest/padding-around-after-all-blocks': "error";
|
|
66
|
+
readonly 'vitest/padding-around-after-each-blocks': "error";
|
|
67
|
+
readonly 'vitest/padding-around-all': "error";
|
|
68
|
+
readonly 'vitest/padding-around-before-all-blocks': "error";
|
|
69
|
+
readonly 'vitest/padding-around-before-each-blocks': "error";
|
|
70
|
+
readonly 'vitest/padding-around-describe-blocks': "error";
|
|
71
|
+
readonly 'vitest/padding-around-expect-groups': "error";
|
|
72
|
+
readonly 'vitest/padding-around-test-blocks': "error";
|
|
73
|
+
readonly 'vitest/prefer-called-exactly-once-with': "error";
|
|
74
|
+
readonly 'vitest/prefer-called-once': "error";
|
|
75
|
+
readonly 'vitest/prefer-called-times': "error";
|
|
76
|
+
readonly 'vitest/prefer-describe-function-title': "error";
|
|
77
|
+
readonly 'vitest/prefer-expect-type-of': "error";
|
|
78
|
+
readonly 'vitest/prefer-import-in-mock': "error";
|
|
79
|
+
readonly 'vitest/prefer-strict-boolean-matchers': "error";
|
|
80
|
+
readonly 'vitest/prefer-vi-mocked': "error";
|
|
81
|
+
readonly 'vitest/require-mock-type-parameters': "off";
|
|
82
|
+
readonly 'vitest/valid-expect-in-promise': "error";
|
|
83
|
+
readonly 'vitest/warn-todo': "error";
|
|
61
84
|
readonly 'vitest/no-done-callback': 0;
|
|
62
85
|
};
|
|
63
86
|
//# sourceMappingURL=eslint-vitest-rules.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-vitest-rules.d.mts","sourceRoot":"","sources":["../../src/rules/eslint-vitest-rules.mts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"eslint-vitest-rules.d.mts","sourceRoot":"","sources":["../../src/rules/eslint-vitest-rules.mts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4GQ,CAAC"}
|
|
@@ -69,6 +69,33 @@ const eslintVitestRules = {
|
|
|
69
69
|
'vitest/prefer-to-be-truthy': 'off',
|
|
70
70
|
'vitest/prefer-to-be-object': 'error',
|
|
71
71
|
'vitest/require-local-test-context-for-concurrent-snapshots': 'error',
|
|
72
|
+
'vitest/no-importing-vitest-globals': 'error',
|
|
73
|
+
'vitest/prefer-importing-vitest-globals': 'off',
|
|
74
|
+
'vitest/consistent-vitest-vi': withDefaultOption('error'),
|
|
75
|
+
'vitest/hoisted-apis-on-top': 'error',
|
|
76
|
+
'vitest/padding-around-after-all-blocks': 'error',
|
|
77
|
+
'vitest/padding-around-after-each-blocks': 'error',
|
|
78
|
+
'vitest/padding-around-all': 'error',
|
|
79
|
+
'vitest/padding-around-before-all-blocks': 'error',
|
|
80
|
+
'vitest/padding-around-before-each-blocks': 'error',
|
|
81
|
+
'vitest/padding-around-describe-blocks': 'error',
|
|
82
|
+
'vitest/padding-around-expect-groups': 'error',
|
|
83
|
+
'vitest/padding-around-test-blocks': 'error',
|
|
84
|
+
'vitest/prefer-called-exactly-once-with': 'error',
|
|
85
|
+
'vitest/prefer-called-once': 'error',
|
|
86
|
+
'vitest/prefer-called-times': 'error',
|
|
87
|
+
'vitest/prefer-describe-function-title': 'error',
|
|
88
|
+
'vitest/prefer-expect-type-of': 'error',
|
|
89
|
+
'vitest/prefer-import-in-mock': 'error',
|
|
90
|
+
'vitest/prefer-strict-boolean-matchers': 'error',
|
|
91
|
+
'vitest/prefer-vi-mocked': 'error',
|
|
92
|
+
'vitest/require-mock-type-parameters': 'off',
|
|
93
|
+
// 'vitest/require-mock-type-parameters': [
|
|
94
|
+
// 'error',
|
|
95
|
+
// { checkImportFunctions: true },
|
|
96
|
+
// ],
|
|
97
|
+
'vitest/valid-expect-in-promise': 'error',
|
|
98
|
+
'vitest/warn-todo': 'error',
|
|
72
99
|
// deprecated
|
|
73
100
|
'vitest/no-done-callback': 0,
|
|
74
101
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-vitest-rules.mjs","sources":["../../src/rules/eslint-vitest-rules.mts"],"sourcesContent":[null],"names":[],"mappings":";;AAEO,MAAM,iBAAiB,GAAG;;AAE/B,IAAA,sBAAsB,EAAE,iBAAiB,CAAC,OAAO,CAAC;AAClD,IAAA,oBAAoB,EAAE,KAAK;AAC3B,IAAA,4BAA4B,EAAE,iBAAiB,CAAC,OAAO,CAAC;AACxD,IAAA,+BAA+B,EAAE,KAAK;AACtC,IAAA,8BAA8B,EAAE,OAAO;AACvC,IAAA,+BAA+B,EAAE,KAAK;AACtC,IAAA,2BAA2B,EAAE,OAAO;AACpC,IAAA,iBAAiB,EAAE,iBAAiB,CAAC,OAAO,CAAC;AAC7C,IAAA,+BAA+B,EAAE;QAC/B,OAAO;AACP,QAAA;AACE,YAAA,UAAU,EAAE,4BAA4B;AACxC,YAAA,SAAS,EAAE,6BAA6B;AACzC,SAAA;AACF,KAAA;AACD,IAAA,6BAA6B,EAAE,iBAAiB,CAAC,OAAO,CAAC;AACzD,IAAA,kCAAkC,EAAE,OAAO;AAC3C,IAAA,gCAAgC,EAAE,OAAO;AACzC,IAAA,8BAA8B,EAAE,OAAO;AACvC,IAAA,4BAA4B,EAAE,OAAO;AACrC,IAAA,4BAA4B,EAAE,OAAO;AACrC,IAAA,qBAAqB,EAAE,OAAO;AAC9B,IAAA,0BAA0B,EAAE,OAAO;AACnC,IAAA,8BAA8B,EAAE,OAAO;AACvC,IAAA,qBAAqB,EAAE,KAAK;AAC5B,IAAA,iCAAiC,EAAE,OAAO;AAC1C,IAAA,mCAAmC,EAAE,KAAK;AAC1C,IAAA,gCAAgC,EAAE,OAAO;AACzC,IAAA,qBAAqB,EAAE,iBAAiB,CAAC,OAAO,CAAC;AACj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EAAE,OAAO;AACnD,IAAA,uCAAuC,EAAE,OAAO;AAChD,IAAA,qCAAqC,EAAE,OAAO;AAC9C,IAAA,mCAAmC,EAAE,OAAO;AAC5C,IAAA,wCAAwC,EAAE,OAAO;AACjD,IAAA,2BAA2B,EAAE,OAAO;AACpC,IAAA,4BAA4B,EAAE,OAAO;AACrC,IAAA,uCAAuC,EAAE,OAAO;AAChD,IAAA,8BAA8B,EAAE,OAAO;AACvC,IAAA,8BAA8B,EAAE,OAAO;AACvC,IAAA,uCAAuC,EAAE,OAAO;AAChD,IAAA,yBAAyB,EAAE,OAAO;AAClC,IAAA,qCAAqC,EAAE,KAAK;;;;;AAK5C,IAAA,gCAAgC,EAAE,OAAO;AACzC,IAAA,kBAAkB,EAAE,OAAO;;AAG3B,IAAA,yBAAyB,EAAE,CAAC;;;;;"}
|
package/dist/rules/index.d.mts
CHANGED
|
@@ -17,6 +17,7 @@ export * from './eslint-react-refresh-rules.mjs';
|
|
|
17
17
|
export * from './eslint-react-rules.mjs';
|
|
18
18
|
export * from './eslint-rules.mjs';
|
|
19
19
|
export * from './eslint-security-rules.mjs';
|
|
20
|
+
export * from './eslint-stylistic-rules.mjs';
|
|
20
21
|
export * from './eslint-testing-library-rules.mjs';
|
|
21
22
|
export * from './eslint-total-functions-rules.mjs';
|
|
22
23
|
export * from './eslint-tree-shakable-rules.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/rules/index.mts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iDAAiD,CAAC;AAChE,cAAc,2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slintReactRefreshRules } from './eslint-react-refresh-rules.mjs';
|
|
|
17
17
|
export { eslintReactRules } from './eslint-react-rules.mjs';
|
|
18
18
|
export { eslintRules, restrictedGlobals, restrictedGlobalsForBrowser, restrictedSyntax } from './eslint-rules.mjs';
|
|
19
19
|
export { eslintSecurityRules } from './eslint-security-rules.mjs';
|
|
20
|
+
export { eslintStylisticRules } from './eslint-stylistic-rules.mjs';
|
|
20
21
|
export { eslintTestingLibraryRules } from './eslint-testing-library-rules.mjs';
|
|
21
22
|
export { eslintTotalFunctionsRules } from './eslint-total-functions-rules.mjs';
|
|
22
23
|
export { eslintTreeShakableRules } from './eslint-tree-shakable-rules.mjs';
|
package/dist/rules/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type EslintArrayFuncRules, type EslintCustomRules, type EslintCypressRules, type EslintFunctionalRules, type EslintImportsRules, type EslintJestRules, type EslintJsxA11yRules, type EslintPlaywrightRules, type EslintPluginRules, type EslintPluginSortDestructureKeysRules, type EslintPreferArrowFunctionRules, type EslintPromiseRules, type EslintReactCodingStyleRules, type EslintReactHooksRules, type EslintReactPerfRules, type EslintReactRefreshRules, type EslintReactRules, type EslintRules, type EslintSecurityRules, type EslintStrictDependenciesRules, type EslintTestingLibraryRules, type EslintTotalFunctionsRules, type EslintTreeShakableRules, type EslintUnicornRules, type EslintVitestRules, type TypeScriptEslintRules } from './rules/index.mjs';
|
|
2
|
-
type KnownRules = DeepReadonly<EslintArrayFuncRules & EslintCustomRules & EslintCypressRules & EslintFunctionalRules & EslintImportsRules & EslintJestRules & EslintJsxA11yRules & EslintPlaywrightRules & EslintPluginRules & EslintPluginSortDestructureKeysRules & EslintPreferArrowFunctionRules & EslintPromiseRules & EslintReactHooksRules & EslintReactPerfRules & EslintReactRefreshRules & EslintReactRules & EslintRules & EslintSecurityRules & EslintStrictDependenciesRules & EslintTestingLibraryRules & EslintTotalFunctionsRules & EslintTreeShakableRules & EslintUnicornRules & EslintVitestRules & EslintReactCodingStyleRules & TypeScriptEslintRules>;
|
|
1
|
+
import { type EslintArrayFuncRules, type EslintCustomRules, type EslintCypressRules, type EslintFunctionalRules, type EslintImportsRules, type EslintJestRules, type EslintJsxA11yRules, type EslintPlaywrightRules, type EslintPluginRules, type EslintPluginSortDestructureKeysRules, type EslintPreferArrowFunctionRules, type EslintPromiseRules, type EslintReactCodingStyleRules, type EslintReactHooksRules, type EslintReactPerfRules, type EslintReactRefreshRules, type EslintReactRules, type EslintRules, type EslintSecurityRules, type EslintStrictDependenciesRules, type EslintStylisticRules, type EslintTestingLibraryRules, type EslintTotalFunctionsRules, type EslintTreeShakableRules, type EslintUnicornRules, type EslintVitestRules, type TypeScriptEslintRules } from './rules/index.mjs';
|
|
2
|
+
type KnownRules = DeepReadonly<EslintArrayFuncRules & EslintCustomRules & EslintCypressRules & EslintFunctionalRules & EslintImportsRules & EslintJestRules & EslintJsxA11yRules & EslintPlaywrightRules & EslintPluginRules & EslintPluginSortDestructureKeysRules & EslintPreferArrowFunctionRules & EslintPromiseRules & EslintReactHooksRules & EslintReactPerfRules & EslintReactRefreshRules & EslintReactRules & EslintRules & EslintStylisticRules & EslintSecurityRules & EslintStrictDependenciesRules & EslintTestingLibraryRules & EslintTotalFunctionsRules & EslintTreeShakableRules & EslintUnicornRules & EslintVitestRules & EslintReactCodingStyleRules & TypeScriptEslintRules>;
|
|
3
3
|
export declare const defineKnownRules: (rules: Partial<KnownRules>) => Partial<KnownRules>;
|
|
4
4
|
export {};
|
|
5
5
|
//# sourceMappingURL=define-known-rules.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-known-rules.d.mts","sourceRoot":"","sources":["../../src/types/define-known-rules.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,oCAAoC,EACzC,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAC;AAE3B,KAAK,UAAU,GAAG,YAAY,CAC5B,oBAAoB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,GACrB,kBAAkB,GAClB,eAAe,GACf,kBAAkB,GAClB,qBAAqB,GACrB,iBAAiB,GACjB,oCAAoC,GACpC,8BAA8B,GAC9B,kBAAkB,GAClB,qBAAqB,GACrB,oBAAoB,GACpB,uBAAuB,GACvB,gBAAgB,GAChB,WAAW,GACX,mBAAmB,GACnB,6BAA6B,GAC7B,yBAAyB,GACzB,yBAAyB,GACzB,uBAAuB,GACvB,kBAAkB,GAClB,iBAAiB,GACjB,2BAA2B,GAC3B,qBAAqB,CACxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,OAAO,OAAO,CAAC,UAAU,CAAC,KACzB,OAAO,CAAC,UAAU,CAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"define-known-rules.d.mts","sourceRoot":"","sources":["../../src/types/define-known-rules.mts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,oCAAoC,EACzC,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,EACvB,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC3B,MAAM,mBAAmB,CAAC;AAE3B,KAAK,UAAU,GAAG,YAAY,CAC5B,oBAAoB,GAClB,iBAAiB,GACjB,kBAAkB,GAClB,qBAAqB,GACrB,kBAAkB,GAClB,eAAe,GACf,kBAAkB,GAClB,qBAAqB,GACrB,iBAAiB,GACjB,oCAAoC,GACpC,8BAA8B,GAC9B,kBAAkB,GAClB,qBAAqB,GACrB,oBAAoB,GACpB,uBAAuB,GACvB,gBAAgB,GAChB,WAAW,GACX,oBAAoB,GACpB,mBAAmB,GACnB,6BAA6B,GAC7B,yBAAyB,GACzB,yBAAyB,GACzB,uBAAuB,GACvB,kBAAkB,GAClB,iBAAiB,GACjB,2BAA2B,GAC3B,qBAAqB,CACxB,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,OAAO,OAAO,CAAC,UAAU,CAAC,KACzB,OAAO,CAAC,UAAU,CAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"define-known-rules.mjs","sources":["../../src/types/define-known-rules.mts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"define-known-rules.mjs","sources":["../../src/types/define-known-rules.mts"],"sourcesContent":[null],"names":[],"mappings":"AA4DO,MAAM,gBAAgB,GAAG,CAC9B,KAA0B,KACF;;;;"}
|