@ocavue/eslint-config 3.11.3 → 3.11.4

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/imports.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import type { Linter } from 'eslint';
2
- export declare function imports(): Linter.Config[];
1
+ import type { Config } from './types.ts';
2
+ export declare function imports(): Config[];
3
3
  //# sourceMappingURL=imports.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../src/imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAGpC,wBAAgB,OAAO,IAAI,MAAM,CAAC,MAAM,EAAE,CAgCzC"}
1
+ {"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../src/imports.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAU,MAAM,YAAY,CAAA;AAEhD,wBAAgB,OAAO,IAAI,MAAM,EAAE,CA8BlC"}
package/dist/imports.js CHANGED
@@ -1,35 +1,32 @@
1
- import * as importPlugin from 'eslint-plugin-import-x';
1
+ import { importX } from 'eslint-plugin-import-x';
2
+ import { defineConfig } from 'eslint/config';
2
3
  export function imports() {
3
- return [
4
+ // @ts-expect-error incorrect type
5
+ const importXPlugin = importX;
6
+ // @ts-expect-error incorrect type
7
+ const TypeScriptConfig = importX.flatConfigs.typescript;
8
+ return defineConfig([
4
9
  {
5
- name: 'import',
6
10
  plugins: {
7
- // @ts-expect-error incorrect type
8
- import: importPlugin,
9
- },
10
- settings: {
11
- 'import-x/resolver': {
12
- // You will also need to install and configure the TypeScript resolver
13
- // See also https://github.com/import-js/eslint-import-resolver-typescript#configuration
14
- typescript: true,
15
- node: true,
16
- },
11
+ 'import-x': importXPlugin,
17
12
  },
13
+ extends: [TypeScriptConfig],
18
14
  rules: {
19
15
  // External modules must be declared in the package.json. Only enforced in CI.
20
- 'import/no-extraneous-dependencies': process.env.CI ? 'error' : 'off',
21
- 'import/first': 'warn',
22
- 'import/no-mutable-exports': 'warn',
23
- 'import/no-useless-path-segments': 'warn',
24
- 'import/newline-after-import': 'warn',
16
+ 'import-x/no-extraneous-dependencies': process.env.CI ? 'error' : 'off',
17
+ 'import-x/first': 'warn',
18
+ 'import-x/no-mutable-exports': 'warn',
19
+ 'import-x/export': 'error',
20
+ 'import-x/no-useless-path-segments': 'warn',
21
+ 'import-x/newline-after-import': 'warn',
25
22
  // Disable `no-duplicates` because of the following bug
26
23
  // https://github.com/un-ts/eslint-plugin-import-x/issues/449
27
- // 'import/no-duplicates': [
24
+ // 'import-x/no-duplicates': [
28
25
  // 'warn',
29
26
  // { 'prefer-inline': true },
30
27
  // ],
31
28
  },
32
29
  },
33
- ];
30
+ ]);
34
31
  }
35
32
  //# sourceMappingURL=imports.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"imports.js","sourceRoot":"","sources":["../src/imports.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,YAAY,MAAM,wBAAwB,CAAA;AAEtD,MAAM,UAAU,OAAO;IACrB,OAAO;QACL;YACE,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,kCAAkC;gBAClC,MAAM,EAAE,YAAY;aACrB;YACD,QAAQ,EAAE;gBACR,mBAAmB,EAAE;oBACnB,sEAAsE;oBACtE,wFAAwF;oBACxF,UAAU,EAAE,IAAI;oBAChB,IAAI,EAAE,IAAI;iBACX;aACF;YACD,KAAK,EAAE;gBACL,8EAA8E;gBAC9E,mCAAmC,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;gBACrE,cAAc,EAAE,MAAM;gBACtB,2BAA2B,EAAE,MAAM;gBACnC,iCAAiC,EAAE,MAAM;gBACzC,6BAA6B,EAAE,MAAM;gBACrC,uDAAuD;gBACvD,6DAA6D;gBAC7D,4BAA4B;gBAC5B,YAAY;gBACZ,+BAA+B;gBAC/B,KAAK;aACN;SACF;KACF,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"imports.js","sourceRoot":"","sources":["../src/imports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAI5C,MAAM,UAAU,OAAO;IACrB,kCAAkC;IAClC,MAAM,aAAa,GAAW,OAAO,CAAA;IAErC,kCAAkC;IAClC,MAAM,gBAAgB,GAAW,OAAO,CAAC,WAAW,CAAC,UAAU,CAAA;IAE/D,OAAO,YAAY,CAAC;QAClB;YACE,OAAO,EAAE;gBACP,UAAU,EAAE,aAAa;aAC1B;YACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;YAC3B,KAAK,EAAE;gBACL,8EAA8E;gBAC9E,qCAAqC,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK;gBACvE,gBAAgB,EAAE,MAAM;gBACxB,6BAA6B,EAAE,MAAM;gBACrC,iBAAiB,EAAE,OAAO;gBAC1B,mCAAmC,EAAE,MAAM;gBAC3C,+BAA+B,EAAE,MAAM;gBACvC,uDAAuD;gBACvD,6DAA6D;gBAC7D,8BAA8B;gBAC9B,YAAY;gBACZ,+BAA+B;gBAC/B,KAAK;aACN;SACF;KACF,CAAC,CAAA;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ocavue/eslint-config",
3
3
  "type": "module",
4
- "version": "3.11.3",
4
+ "version": "3.11.4",
5
5
  "description": "Opinionated ESLint config preset",
6
6
  "author": "ocavue <ocavue@gmail.com>",
7
7
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "eslint-plugin-no-only-tests": "^3.3.0",
42
42
  "eslint-plugin-package-json": "^0.88.2",
43
43
  "eslint-plugin-perfectionist": "^5.5.0",
44
- "eslint-plugin-react-hooks": "^7.1.0-canary-03ca38e6-20260213",
44
+ "eslint-plugin-react-hooks": "^7.0.1",
45
45
  "eslint-plugin-unicorn": "^63.0.0",
46
46
  "eslint-plugin-vue": "^10.8.0",
47
47
  "globals": "^17.3.0",