@ocavue/eslint-config 1.10.2 → 1.11.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/dist/src/antfu.d.ts.map +1 -1
- package/dist/src/imports.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/antfu.js +1 -0
- package/src/imports.js +3 -2
- package/src/vue.js +2 -2
package/dist/src/antfu.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"antfu.d.ts","sourceRoot":"","sources":["../../src/antfu.js"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"antfu.d.ts","sourceRoot":"","sources":["../../src/antfu.js"],"names":[],"mappings":"AAEA,mGAgBC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/imports.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/imports.js"],"names":[],"mappings":"AAIA,qGA6CC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocavue/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.11.0",
|
|
5
5
|
"packageManager": "pnpm@8.15.9",
|
|
6
6
|
"description": "",
|
|
7
7
|
"author": "ocavue <ocavue@gmail.com>",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
40
40
|
"eslint-plugin-antfu": "^2.3.4",
|
|
41
41
|
"eslint-plugin-deprecation": "^3.0.0",
|
|
42
|
-
"eslint-plugin-import": "^
|
|
42
|
+
"eslint-plugin-import-x": "^3.1.0",
|
|
43
43
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
44
44
|
"eslint-plugin-markdown": "^5.1.0",
|
|
45
45
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
package/src/antfu.js
CHANGED
package/src/imports.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// @ts-check
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import importPlugin from 'eslint-plugin-import'
|
|
3
|
+
import * as importPlugin from 'eslint-plugin-import-x'
|
|
5
4
|
|
|
6
5
|
export function imports() {
|
|
7
6
|
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
@@ -9,6 +8,7 @@ export function imports() {
|
|
|
9
8
|
{
|
|
10
9
|
name: 'import',
|
|
11
10
|
plugins: {
|
|
11
|
+
// @ts-expect-error incorrect type
|
|
12
12
|
import: importPlugin,
|
|
13
13
|
},
|
|
14
14
|
settings: {
|
|
@@ -26,6 +26,7 @@ export function imports() {
|
|
|
26
26
|
'import/no-mutable-exports': 'warn',
|
|
27
27
|
'import/no-useless-path-segments': 'warn',
|
|
28
28
|
'import/newline-after-import': 'warn',
|
|
29
|
+
'import/no-duplicates': 'warn',
|
|
29
30
|
'import/order': [
|
|
30
31
|
'warn',
|
|
31
32
|
{
|
package/src/vue.js
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import prettierConfig from 'eslint-config-prettier'
|
|
4
4
|
// @ts-expect-error no types
|
|
5
|
-
import
|
|
5
|
+
import vuePlugin from 'eslint-plugin-vue'
|
|
6
6
|
import tseslint from 'typescript-eslint'
|
|
7
7
|
|
|
8
8
|
import { GLOB_VUE } from './shared.js'
|
|
9
9
|
|
|
10
10
|
/** @type {import('eslint').Linter.FlatConfig[]} */
|
|
11
|
-
const vueRecommended =
|
|
11
|
+
const vueRecommended = vuePlugin.configs['flat/recommended']
|
|
12
12
|
|
|
13
13
|
export function vue() {
|
|
14
14
|
/** @type {import('eslint').Linter.FlatConfig[]} */
|