@rhyster/eslint-config 1.0.1 → 1.1.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.
@@ -1,6 +1,15 @@
1
1
  import type { Linter } from 'eslint';
2
2
  declare const _default: ({
3
- readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
3
+ files: string[];
4
+ name?: string;
5
+ ignores?: string[];
6
+ language?: string;
7
+ languageOptions?: Linter.LanguageOptions;
8
+ linterOptions?: Linter.LinterOptions;
9
+ processor?: string | Linter.Processor;
10
+ plugins?: Record<string, import("eslint").ESLint.Plugin>;
11
+ rules?: Partial<Linter.RulesRecord> | undefined;
12
+ settings?: Record<string, unknown>;
4
13
  } | {
5
14
  files: string[];
6
15
  name: "@rhyster/eslint-config/airbnb/general";
@@ -30,6 +39,9 @@ declare const _default: ({
30
39
  readonly 'import-x/ignore': readonly ["node_modules", "\\.(coffee|scss|css|less|hbs|svg|json)$"];
31
40
  readonly 'import-x/external-module-folders': readonly ["node_modules", "node_modules/@types"];
32
41
  };
42
+ } | {
43
+ files: string[];
44
+ rules: Readonly<import("eslint").Linter.RulesRecord>;
33
45
  } | {
34
46
  files: string[];
35
47
  name: string;
@@ -838,16 +850,6 @@ declare const _default: ({
838
850
  } | {
839
851
  files: string[];
840
852
  name: "@rhyster/eslint-config/files-ts";
841
- } | {
842
- files: string[];
843
- rules: {
844
- '@typescript-eslint/naming-convention': "off";
845
- 'import-x/no-unused-modules': ["error", {
846
- ignoreExports: string[];
847
- missingExports: boolean;
848
- unusedExports: boolean;
849
- }];
850
- };
851
853
  })[];
852
854
  export default _default;
853
855
  //# sourceMappingURL=eslint.config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"eslint.config.d.ts","sourceRoot":"","sources":["../eslint.config.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQrC,wBAuB4B"}
package/dist/index.cjs CHANGED
@@ -1,19 +1,21 @@
1
1
  'use strict';
2
2
 
3
+ const js = require('@eslint/js');
3
4
  const stylistic = require('@stylistic/eslint-plugin');
4
5
  const importx = require('eslint-plugin-import-x');
5
6
  const nodePlugin = require('eslint-plugin-n');
6
7
  const globals = require('globals');
7
- const tseslint = require('typescript-eslint');
8
+ const ts = require('typescript-eslint');
8
9
  const confusingBrowserGlobals = require('confusing-browser-globals');
9
10
 
10
11
  function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
11
12
 
13
+ const js__default = /*#__PURE__*/_interopDefaultCompat(js);
12
14
  const stylistic__default = /*#__PURE__*/_interopDefaultCompat(stylistic);
13
15
  const importx__default = /*#__PURE__*/_interopDefaultCompat(importx);
14
16
  const nodePlugin__default = /*#__PURE__*/_interopDefaultCompat(nodePlugin);
15
17
  const globals__default = /*#__PURE__*/_interopDefaultCompat(globals);
16
- const tseslint__default = /*#__PURE__*/_interopDefaultCompat(tseslint);
18
+ const ts__default = /*#__PURE__*/_interopDefaultCompat(ts);
17
19
  const confusingBrowserGlobals__default = /*#__PURE__*/_interopDefaultCompat(confusingBrowserGlobals);
18
20
 
19
21
  const bestPractices = {
@@ -1820,12 +1822,12 @@ const typescript = {
1820
1822
  const general = {
1821
1823
  name: "@rhyster/eslint-config/airbnb/general",
1822
1824
  plugins: {
1823
- "@typescript-eslint": tseslint__default.plugin,
1825
+ "@typescript-eslint": ts__default.plugin,
1824
1826
  "@stylistic": stylistic__default,
1825
1827
  "import-x": importx__default
1826
1828
  },
1827
1829
  languageOptions: {
1828
- parser: tseslint__default.parser,
1830
+ parser: ts__default.parser,
1829
1831
  parserOptions: {
1830
1832
  projectService: true
1831
1833
  }
@@ -1870,11 +1872,14 @@ const general = {
1870
1872
  }
1871
1873
  };
1872
1874
  const core = [
1875
+ js__default.configs.recommended,
1873
1876
  {
1874
1877
  name: "@rhyster/eslint-config/files-ts",
1875
1878
  files: ["**/*.ts"]
1876
1879
  },
1877
1880
  general,
1881
+ ...ts__default.configs.strictTypeChecked,
1882
+ ...ts__default.configs.stylisticTypeChecked,
1878
1883
  bestPractices,
1879
1884
  errors,
1880
1885
  style,