@eienjs/eslint-config 1.2.0 → 1.2.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/dist/cli/index.js CHANGED
@@ -9,7 +9,7 @@ import parse from "parse-gitignore";
9
9
  import { execSync } from "node:child_process";
10
10
 
11
11
  //#region package.json
12
- var version = "1.2.0";
12
+ var version = "1.2.2";
13
13
 
14
14
  //#endregion
15
15
  //#region src/cli/constants.ts
@@ -1,4 +1,4 @@
1
- import { OptionsAdonisJS, OptionsComponentExts, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsNuxt, OptionsOverrides, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsVue, StylisticConfig, TypedFlatConfigItem } from "../types-CThb4-OB.js";
1
+ import { OptionsAdonisJS, OptionsComponentExts, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsNuxt, OptionsOverrides, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsVue, StylisticConfig, TypedFlatConfigItem } from "../types-ClRJcxpY.js";
2
2
 
3
3
  //#region src/configs/adonisjs.d.ts
4
4
  declare function adonisjs(options?: OptionsAdonisJS): Promise<TypedFlatConfigItem[]>;
@@ -1,3 +1,3 @@
1
- import { StylisticConfigDefaults, adonisjs, astro, command, comments, disables, formatters, ignores, imports, javascript, jsdoc, jsonc, markdown, node, nuxt, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toml, typescript, unicorn, vue, yaml } from "../configs-XdWtQA6z.js";
1
+ import { StylisticConfigDefaults, adonisjs, astro, command, comments, disables, formatters, ignores, imports, javascript, jsdoc, jsonc, markdown, node, nuxt, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toml, typescript, unicorn, vue, yaml } from "../configs-D_4UWxl6.js";
2
2
 
3
3
  export { StylisticConfigDefaults, adonisjs, astro, command, comments, disables, formatters, ignores, imports, javascript, jsdoc, jsonc, markdown, node, nuxt, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toml, typescript, unicorn, vue, yaml };
@@ -261,8 +261,10 @@ async function adonisjs(options = {}) {
261
261
  files: [join(dirs.tests, nestedGlobPattern)],
262
262
  name: "eienjs/adonisjs/tests-disables",
263
263
  rules: {
264
+ "@typescript-eslint/unbound-method": "off",
264
265
  "@typescript-eslint/explicit-function-return-type": "off",
265
- "@typescript-eslint/explicit-module-boundary-types": "off"
266
+ "@typescript-eslint/explicit-module-boundary-types": "off",
267
+ "@typescript-eslint/no-unsafe-assignment": "off"
266
268
  }
267
269
  }
268
270
  ];
@@ -1752,7 +1754,18 @@ async function typescript(options = {}) {
1752
1754
  "@typescript-eslint/restrict-plus-operands": "error",
1753
1755
  "@typescript-eslint/restrict-template-expressions": "error",
1754
1756
  "@typescript-eslint/return-await": ["error", "in-try-catch"],
1755
- "@typescript-eslint/switch-exhaustiveness-check": ["error", { considerDefaultExhaustiveForUnions: true }]
1757
+ "@typescript-eslint/switch-exhaustiveness-check": ["error", { considerDefaultExhaustiveForUnions: true }],
1758
+ "@typescript-eslint/no-empty-object-type": "off",
1759
+ "@typescript-eslint/no-unused-vars": ["error", {
1760
+ "args": "all",
1761
+ "argsIgnorePattern": "^_",
1762
+ "caughtErrors": "all",
1763
+ "caughtErrorsIgnorePattern": "^_",
1764
+ "destructuredArrayIgnorePattern": "^_",
1765
+ "varsIgnorePattern": "^_",
1766
+ "ignoreRestSiblings": true
1767
+ }],
1768
+ "@typescript-eslint/no-non-null-assertion": "off"
1756
1769
  };
1757
1770
  const [pluginTs, parserTs] = await Promise.all([interopDefault(import("@typescript-eslint/eslint-plugin")), interopDefault(import("@typescript-eslint/parser"))]);
1758
1771
  function makeParser(typeAware, files$1, ignores$1) {
@@ -1822,7 +1835,15 @@ async function typescript(options = {}) {
1822
1835
  allowTaggedTemplates: true,
1823
1836
  allowTernary: true
1824
1837
  }],
1825
- "@typescript-eslint/no-unused-vars": "off",
1838
+ "@typescript-eslint/no-unused-vars": ["error", {
1839
+ "args": "all",
1840
+ "argsIgnorePattern": "^_",
1841
+ "caughtErrors": "all",
1842
+ "caughtErrorsIgnorePattern": "^_",
1843
+ "destructuredArrayIgnorePattern": "^_",
1844
+ "varsIgnorePattern": "^_",
1845
+ "ignoreRestSiblings": true
1846
+ }],
1826
1847
  "@typescript-eslint/no-use-before-define": ["error", {
1827
1848
  classes: false,
1828
1849
  functions: false,
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Awaitable, ConfigNames, OptionsAdonisJS, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsNuxt, OptionsOverrides, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsVue, RuleOptions, Rules, StylisticConfig, TypedFlatConfigItem } from "./types-CThb4-OB.js";
1
+ import { Awaitable, ConfigNames, OptionsAdonisJS, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsFormatters, OptionsHasTypeScript, OptionsIsInEditor, OptionsNuxt, OptionsOverrides, OptionsRegExp, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, OptionsVue, RuleOptions, Rules, StylisticConfig, TypedFlatConfigItem } from "./types-ClRJcxpY.js";
2
2
  import { FlatConfigComposer } from "eslint-flat-config-utils";
3
3
  import { Linter } from "eslint";
4
4
 
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_EXTS, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, adonisjs, astro, combine, command, comments, disables, ensurePackages, formatters, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, markdown, node, nuxt, parserPlain, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toArray, toml, typescript, unicorn, vue, yaml } from "./configs-XdWtQA6z.js";
1
+ import { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CSS, GLOB_EXCLUDE, GLOB_EXTS, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, adonisjs, astro, combine, command, comments, disables, ensurePackages, formatters, ignores, imports, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, javascript, jsdoc, jsonc, markdown, node, nuxt, parserPlain, perfectionist, pnpm, regexp, sortPackageJson, sortTsconfig, stylistic, test, toArray, toml, typescript, unicorn, vue, yaml } from "./configs-D_4UWxl6.js";
2
2
  import { FlatConfigComposer } from "eslint-flat-config-utils";
3
3
  import { isPackageExists } from "local-pkg";
4
4
 
@@ -243,8 +243,9 @@ interface RuleOptions {
243
243
  */
244
244
  '@stylistic/jsx-pascal-case'?: Linter.RuleEntry<StylisticJsxPascalCase>;
245
245
  /**
246
- * Disallow multiple spaces between inline JSX props
246
+ * Disallow multiple spaces between inline JSX props. Deprecated, use `no-multi-spaces` rule instead.
247
247
  * @see https://eslint.style/rules/jsx-props-no-multi-spaces
248
+ * @deprecated
248
249
  */
249
250
  '@stylistic/jsx-props-no-multi-spaces'?: Linter.RuleEntry<[]>;
250
251
  /**
@@ -4620,6 +4621,11 @@ interface RuleOptions {
4620
4621
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
4621
4622
  */
4622
4623
  'test/prefer-expect-resolves'?: Linter.RuleEntry<[]>;
4624
+ /**
4625
+ * enforce using `expectTypeOf` instead of `expect(typeof ...)`
4626
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-type-of.md
4627
+ */
4628
+ 'test/prefer-expect-type-of'?: Linter.RuleEntry<[]>;
4623
4629
  /**
4624
4630
  * enforce having hooks in consistent order
4625
4631
  * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
@@ -7226,6 +7232,7 @@ type StylisticIndent = [] | [("tab" | number)] | [("tab" | number), {
7226
7232
  const?: (number | ("first" | "off"));
7227
7233
  using?: (number | ("first" | "off"));
7228
7234
  });
7235
+ assignmentOperator?: (number | "off");
7229
7236
  outerIIFEBody?: (number | "off");
7230
7237
  MemberExpression?: (number | "off");
7231
7238
  FunctionDeclaration?: {
@@ -7458,6 +7465,22 @@ type StylisticKeywordSpacing = [] | [{
7458
7465
  before?: boolean;
7459
7466
  after?: boolean;
7460
7467
  };
7468
+ arguments?: {
7469
+ before?: boolean;
7470
+ after?: boolean;
7471
+ };
7472
+ as?: {
7473
+ before?: boolean;
7474
+ after?: boolean;
7475
+ };
7476
+ async?: {
7477
+ before?: boolean;
7478
+ after?: boolean;
7479
+ };
7480
+ await?: {
7481
+ before?: boolean;
7482
+ after?: boolean;
7483
+ };
7461
7484
  boolean?: {
7462
7485
  before?: boolean;
7463
7486
  after?: boolean;
@@ -7522,6 +7545,10 @@ type StylisticKeywordSpacing = [] | [{
7522
7545
  before?: boolean;
7523
7546
  after?: boolean;
7524
7547
  };
7548
+ eval?: {
7549
+ before?: boolean;
7550
+ after?: boolean;
7551
+ };
7525
7552
  export?: {
7526
7553
  before?: boolean;
7527
7554
  after?: boolean;
@@ -7550,10 +7577,18 @@ type StylisticKeywordSpacing = [] | [{
7550
7577
  before?: boolean;
7551
7578
  after?: boolean;
7552
7579
  };
7580
+ from?: {
7581
+ before?: boolean;
7582
+ after?: boolean;
7583
+ };
7553
7584
  function?: {
7554
7585
  before?: boolean;
7555
7586
  after?: boolean;
7556
7587
  };
7588
+ get?: {
7589
+ before?: boolean;
7590
+ after?: boolean;
7591
+ };
7557
7592
  goto?: {
7558
7593
  before?: boolean;
7559
7594
  after?: boolean;
@@ -7586,6 +7621,10 @@ type StylisticKeywordSpacing = [] | [{
7586
7621
  before?: boolean;
7587
7622
  after?: boolean;
7588
7623
  };
7624
+ let?: {
7625
+ before?: boolean;
7626
+ after?: boolean;
7627
+ };
7589
7628
  long?: {
7590
7629
  before?: boolean;
7591
7630
  after?: boolean;
@@ -7602,6 +7641,10 @@ type StylisticKeywordSpacing = [] | [{
7602
7641
  before?: boolean;
7603
7642
  after?: boolean;
7604
7643
  };
7644
+ of?: {
7645
+ before?: boolean;
7646
+ after?: boolean;
7647
+ };
7605
7648
  package?: {
7606
7649
  before?: boolean;
7607
7650
  after?: boolean;
@@ -7622,6 +7665,10 @@ type StylisticKeywordSpacing = [] | [{
7622
7665
  before?: boolean;
7623
7666
  after?: boolean;
7624
7667
  };
7668
+ set?: {
7669
+ before?: boolean;
7670
+ after?: boolean;
7671
+ };
7625
7672
  short?: {
7626
7673
  before?: boolean;
7627
7674
  after?: boolean;
@@ -7666,59 +7713,43 @@ type StylisticKeywordSpacing = [] | [{
7666
7713
  before?: boolean;
7667
7714
  after?: boolean;
7668
7715
  };
7669
- typeof?: {
7670
- before?: boolean;
7671
- after?: boolean;
7672
- };
7673
- var?: {
7674
- before?: boolean;
7675
- after?: boolean;
7676
- };
7677
- void?: {
7678
- before?: boolean;
7679
- after?: boolean;
7680
- };
7681
- volatile?: {
7682
- before?: boolean;
7683
- after?: boolean;
7684
- };
7685
- while?: {
7716
+ type?: {
7686
7717
  before?: boolean;
7687
7718
  after?: boolean;
7688
7719
  };
7689
- with?: {
7720
+ typeof?: {
7690
7721
  before?: boolean;
7691
7722
  after?: boolean;
7692
7723
  };
7693
- accessor?: {
7724
+ using?: {
7694
7725
  before?: boolean;
7695
7726
  after?: boolean;
7696
7727
  };
7697
- as?: {
7728
+ var?: {
7698
7729
  before?: boolean;
7699
7730
  after?: boolean;
7700
7731
  };
7701
- async?: {
7732
+ void?: {
7702
7733
  before?: boolean;
7703
7734
  after?: boolean;
7704
7735
  };
7705
- await?: {
7736
+ volatile?: {
7706
7737
  before?: boolean;
7707
7738
  after?: boolean;
7708
7739
  };
7709
- from?: {
7740
+ while?: {
7710
7741
  before?: boolean;
7711
7742
  after?: boolean;
7712
7743
  };
7713
- get?: {
7744
+ with?: {
7714
7745
  before?: boolean;
7715
7746
  after?: boolean;
7716
7747
  };
7717
- let?: {
7748
+ yield?: {
7718
7749
  before?: boolean;
7719
7750
  after?: boolean;
7720
7751
  };
7721
- of?: {
7752
+ accessor?: {
7722
7753
  before?: boolean;
7723
7754
  after?: boolean;
7724
7755
  };
@@ -7726,22 +7757,6 @@ type StylisticKeywordSpacing = [] | [{
7726
7757
  before?: boolean;
7727
7758
  after?: boolean;
7728
7759
  };
7729
- set?: {
7730
- before?: boolean;
7731
- after?: boolean;
7732
- };
7733
- using?: {
7734
- before?: boolean;
7735
- after?: boolean;
7736
- };
7737
- yield?: {
7738
- before?: boolean;
7739
- after?: boolean;
7740
- };
7741
- type?: {
7742
- before?: boolean;
7743
- after?: boolean;
7744
- };
7745
7760
  };
7746
7761
  }];
7747
7762
  // ----- @stylistic/line-comment-position -----
@@ -7941,6 +7956,7 @@ type StylisticNoExtraParens = ([] | ["functions"] | [] | ["all"] | ["all", {
7941
7956
  LogicalExpression?: boolean;
7942
7957
  AwaitExpression?: boolean;
7943
7958
  };
7959
+ ignoredNodes?: string[];
7944
7960
  }]);
7945
7961
  // ----- @stylistic/no-mixed-operators -----
7946
7962
  type StylisticNoMixedOperators = [] | [{
@@ -8056,7 +8072,7 @@ type StylisticPaddedBlocks = [] | [(("always" | "never" | "start" | "end") | {
8056
8072
  // ----- @stylistic/padding-line-between-statements -----
8057
8073
  type _StylisticPaddingLineBetweenStatementsPaddingType = ("any" | "never" | "always");
8058
8074
  type _StylisticPaddingLineBetweenStatementsStatementOption = (_StylisticPaddingLineBetweenStatementsStatementType | [_StylisticPaddingLineBetweenStatementsStatementType, ...(_StylisticPaddingLineBetweenStatementsStatementType)[]]);
8059
- type _StylisticPaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "return" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using");
8075
+ type _StylisticPaddingLineBetweenStatementsStatementType = ("*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "return" | "singleline-return" | "multiline-return" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using" | "type" | "singleline-type" | "multiline-type");
8060
8076
  type StylisticPaddingLineBetweenStatements = {
8061
8077
  blankLine: _StylisticPaddingLineBetweenStatementsPaddingType;
8062
8078
  prev: _StylisticPaddingLineBetweenStatementsStatementOption;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eienjs/eslint-config",
3
3
  "type": "module",
4
- "version": "1.2.0",
4
+ "version": "1.2.2",
5
5
  "description": "EienJS ESLint Config",
6
6
  "author": "Fernando Isidro <luffynando@gmail.com> (https://github.com/luffynando/)",
7
7
  "license": "MIT",
@@ -70,10 +70,10 @@
70
70
  "@clack/prompts": "^0.11.0",
71
71
  "@eslint-community/eslint-plugin-eslint-comments": "^4.5.0",
72
72
  "@eslint/markdown": "^7.2.0",
73
- "@stylistic/eslint-plugin": "^5.2.3",
73
+ "@stylistic/eslint-plugin": "^5.3.1",
74
74
  "@typescript-eslint/eslint-plugin": "^8.41.0",
75
75
  "@typescript-eslint/parser": "^8.41.0",
76
- "@vitest/eslint-plugin": "^1.3.4",
76
+ "@vitest/eslint-plugin": "^1.3.6",
77
77
  "ansis": "^4.1.0",
78
78
  "cac": "^6.7.14",
79
79
  "eslint-config-flat-gitignore": "^2.1.0",