@infernodesign/eslint-config 1.1.0 → 1.2.1

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/index.d.ts CHANGED
@@ -17933,7 +17933,7 @@ type Yoda = [] | [("always" | "never")] | [("always" | "never"), {
17933
17933
  onlyEquality?: boolean;
17934
17934
  }];
17935
17935
  // Names of all the configs
17936
- type ConfigNames = 'inferno/astro/setup' | 'inferno/astro/rules' | 'inferno/eslint-comments/rules' | 'inferno/formatter/setup' | 'inferno/imports/rules' | 'inferno/javascript/setup' | 'inferno/javascript/rules' | 'inferno/jsx/setup' | 'inferno/jsdoc/rules' | 'inferno/jsonc/setup' | 'inferno/jsonc/rules' | 'inferno/markdown/setup' | 'inferno/markdown/processor' | 'inferno/markdown/parser' | 'inferno/markdown/disables' | 'inferno/node/rules' | 'inferno/perfectionist/setup' | 'inferno/nextjs/setup' | 'inferno/nextjs/rules' | 'inferno/react/setup' | 'inferno/react/rules' | 'inferno/solid/setup' | 'inferno/solid/rules' | 'config/storybook/setup' | 'inferno/sort/package-json' | 'inferno/stylistic/rules' | 'inferno/svelte/setup' | 'inferno/svelte/rules' | 'inferno/test/setup' | 'inferno/test/rules' | 'inferno/toml/setup' | 'inferno/toml/rules' | 'inferno/regexp/rules' | 'inferno/typescript/setup' | 'antfu/typescript/parser' | 'inferno/typescript/rules' | 'inferno/unicorn/rules' | 'inferno/unocss' | 'inferno/vue/setup' | 'inferno/vue/rules' | 'inferno/yaml/setup' | 'inferno/yaml/rules' | 'inferno/yaml/pnpm-workspace';
17936
+ type ConfigNames = 'inferno/astro/setup' | 'inferno/astro/rules' | 'inferno/eslint-comments/rules' | 'inferno/formatter/setup' | 'inferno/imports/rules' | 'inferno/javascript/setup' | 'inferno/javascript/rules' | 'inferno/jsx/setup' | 'inferno/jsdoc/rules' | 'inferno/jsonc/setup' | 'inferno/jsonc/rules' | 'inferno/markdown/setup' | 'inferno/markdown/processor' | 'inferno/markdown/parser' | 'inferno/markdown/disables' | 'inferno/node/rules' | 'inferno/perfectionist/setup' | 'inferno/nextjs/setup' | 'inferno/nextjs/rules' | 'inferno/react/setup' | 'inferno/react/rules' | 'inferno/solid/setup' | 'inferno/solid/rules' | 'config/storybook/setup' | 'inferno/sort/package-json' | 'inferno/stylistic/rules' | 'inferno/svelte/setup' | 'inferno/svelte/rules' | 'inferno/test/setup' | 'inferno/test/rules' | 'inferno/toml/setup' | 'inferno/toml/rules' | 'inferno/regexp/rules' | 'inferno/typescript/setup' | 'inferno/typescript/parser' | 'inferno/typescript/rules' | 'inferno/unicorn/rules' | 'inferno/unocss' | 'inferno/vue/setup' | 'inferno/vue/rules' | 'inferno/yaml/setup' | 'inferno/yaml/rules' | 'inferno/yaml/pnpm-workspace';
17937
17937
  //#endregion
17938
17938
  //#region src/vendor/prettier-types.d.ts
17939
17939
  type VendoredPrettierOptions = Partial<VendoredPrettierOptionsRequired>;
package/dist/index.js CHANGED
@@ -1931,6 +1931,12 @@ async function typescript(options = {}) {
1931
1931
  "no-implied-eval": "off",
1932
1932
  "ts/await-thenable": "error",
1933
1933
  "ts/dot-notation": ["error", { allowKeywords: true }],
1934
+ "ts/promise-function-async": "error",
1935
+ "ts/restrict-plus-operands": "error",
1936
+ "ts/restrict-template-expressions": "error",
1937
+ "ts/return-await": ["error", "in-try-catch"],
1938
+ "ts/switch-exhaustiveness-check": "error",
1939
+ "ts/unbound-method": "error",
1934
1940
  ...isStrict ? {
1935
1941
  "ts/no-floating-promises": "error",
1936
1942
  "ts/no-for-in-array": "error",
@@ -1946,17 +1952,7 @@ async function typescript(options = {}) {
1946
1952
  allowNullableBoolean: true,
1947
1953
  allowNullableObject: true
1948
1954
  }]
1949
- } : {},
1950
- "ts/promise-function-async": "error",
1951
- "ts/restrict-plus-operands": "error",
1952
- "ts/restrict-template-expressions": "error",
1953
- "ts/return-await": ["error", "in-try-catch"],
1954
- "ts/strict-boolean-expressions": ["error", {
1955
- allowNullableBoolean: true,
1956
- allowNullableObject: true
1957
- }],
1958
- "ts/switch-exhaustiveness-check": "error",
1959
- "ts/unbound-method": "error"
1955
+ } : {}
1960
1956
  };
1961
1957
  const [pluginTs, parserTs] = await Promise.all([interopDefault(import("@typescript-eslint/eslint-plugin")), interopDefault(import("@typescript-eslint/parser"))]);
1962
1958
  function makeParser(typeAware, files$1, ignores$1) {
@@ -1978,7 +1974,7 @@ async function typescript(options = {}) {
1978
1974
  ...parserOptions
1979
1975
  }
1980
1976
  },
1981
- name: `antfu/typescript/${typeAware ? "type-aware-parser" : "parser"}`
1977
+ name: `inferno/typescript/${typeAware ? "type-aware-parser" : "parser"}`
1982
1978
  };
1983
1979
  }
1984
1980
  return [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@infernodesign/eslint-config",
3
3
  "description": "ESLint config for Inferno Design.",
4
- "version": "1.1.0",
4
+ "version": "1.2.1",
5
5
  "type": "module",
6
6
  "author": "Inferno Design <support@infernodesign.com>",
7
7
  "license": "MIT",