@ocavue/eslint-config 1.4.0 → 1.4.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/src/antfu.d.ts +1 -1
- package/dist/src/antfu.d.ts.map +1 -1
- package/dist/src/basic.d.ts +1 -1
- package/dist/src/basic.d.ts.map +1 -1
- package/dist/src/imports.d.ts +1 -1
- package/dist/src/imports.d.ts.map +1 -1
- package/dist/src/markdown.d.ts +1 -1
- package/dist/src/markdown.d.ts.map +1 -1
- package/dist/src/no-only-tests.d.ts +1 -1
- package/dist/src/no-only-tests.d.ts.map +1 -1
- package/dist/src/package-json.d.ts +1 -1
- package/dist/src/package-json.d.ts.map +1 -1
- package/dist/src/prettier.d.ts +1 -1
- package/dist/src/prettier.d.ts.map +1 -1
- package/dist/src/react.d.ts +1 -1
- package/dist/src/react.d.ts.map +1 -1
- package/dist/src/typescript.d.ts +1 -1
- package/dist/src/typescript.d.ts.map +1 -1
- package/dist/src/unicorn.d.ts +1 -1
- package/dist/src/unicorn.d.ts.map +1 -1
- package/package.json +13 -13
- package/src/antfu.js +1 -1
- package/src/basic.js +1 -1
- package/src/imports.js +1 -1
- package/src/markdown.js +1 -1
- package/src/no-only-tests.js +1 -1
- package/src/package-json.js +1 -1
- package/src/prettier.js +1 -1
- package/src/react.js +1 -1
- package/src/typescript.js +1 -1
- package/src/unicorn.js +1 -1
package/dist/src/antfu.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function antfu(): import("eslint-define-config").
|
|
1
|
+
export function antfu(): import("eslint-define-config").FlatESLintConfig[];
|
|
2
2
|
//# sourceMappingURL=antfu.d.ts.map
|
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,2EAcC"}
|
package/dist/src/basic.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function basic(): import("eslint-define-config").
|
|
1
|
+
export function basic(): import("eslint-define-config").FlatESLintConfig[];
|
|
2
2
|
//# sourceMappingURL=basic.d.ts.map
|
package/dist/src/basic.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic.d.ts","sourceRoot":"","sources":["../../src/basic.js"],"names":[],"mappings":"AAWA
|
|
1
|
+
{"version":3,"file":"basic.d.ts","sourceRoot":"","sources":["../../src/basic.js"],"names":[],"mappings":"AAWA,2EAiBC"}
|
package/dist/src/imports.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function imports(): import("eslint-define-config").
|
|
1
|
+
export function imports(): import("eslint-define-config").FlatESLintConfig[];
|
|
2
2
|
//# sourceMappingURL=imports.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/imports.js"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"imports.d.ts","sourceRoot":"","sources":["../../src/imports.js"],"names":[],"mappings":"AAKA,6EA0CC"}
|
package/dist/src/markdown.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function markdown(): import("eslint-define-config").
|
|
1
|
+
export function markdown(): import("eslint-define-config").FlatESLintConfig[];
|
|
2
2
|
//# sourceMappingURL=markdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/markdown.js"],"names":[],"mappings":"AAOA,
|
|
1
|
+
{"version":3,"file":"markdown.d.ts","sourceRoot":"","sources":["../../src/markdown.js"],"names":[],"mappings":"AAOA,8EA0DC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function noOnlyTests(): import("eslint-define-config").
|
|
1
|
+
export function noOnlyTests(): import("eslint-define-config").FlatESLintConfig[];
|
|
2
2
|
//# sourceMappingURL=no-only-tests.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-only-tests.d.ts","sourceRoot":"","sources":["../../src/no-only-tests.js"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"no-only-tests.d.ts","sourceRoot":"","sources":["../../src/no-only-tests.js"],"names":[],"mappings":"AAKA,iFAcC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/package-json.js"],"names":[],"mappings":"AAOA;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"package-json.d.ts","sourceRoot":"","sources":["../../src/package-json.js"],"names":[],"mappings":"AAOA;;GAEG;AACH,iFAyEC"}
|
package/dist/src/prettier.d.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
* Notice that this config does not run `prettier` as an ESLint rule, so you
|
|
5
5
|
* have to run `pretter` separately for formatting.
|
|
6
6
|
*/
|
|
7
|
-
export function prettier(): import("eslint-define-config").
|
|
7
|
+
export function prettier(): import("eslint-define-config").FlatESLintConfig[];
|
|
8
8
|
//# sourceMappingURL=prettier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/prettier.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"prettier.d.ts","sourceRoot":"","sources":["../../src/prettier.js"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,8EAWC"}
|
package/dist/src/react.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function react(): import("eslint-define-config").
|
|
1
|
+
export function react(): import("eslint-define-config").FlatESLintConfig[];
|
|
2
2
|
//# sourceMappingURL=react.d.ts.map
|
package/dist/src/react.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/react.js"],"names":[],"mappings":"AASA
|
|
1
|
+
{"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../src/react.js"],"names":[],"mappings":"AASA,2EAwCC"}
|
package/dist/src/typescript.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function typescript(): import("eslint-define-config").
|
|
1
|
+
export function typescript(): import("eslint-define-config").FlatESLintConfig[];
|
|
2
2
|
import tsParser from '@typescript-eslint/parser';
|
|
3
3
|
import tsPlugin from '@typescript-eslint/eslint-plugin';
|
|
4
4
|
export { tsParser, tsPlugin };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/typescript.js"],"names":[],"mappings":"AAUA,
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/typescript.js"],"names":[],"mappings":"AAUA,gFAyEC;qBAhFoB,2BAA2B;qBAD3B,kCAAkC"}
|
package/dist/src/unicorn.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export function unicorn(): import("eslint-define-config").
|
|
1
|
+
export function unicorn(): import("eslint-define-config").FlatESLintConfig[];
|
|
2
2
|
//# sourceMappingURL=unicorn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/unicorn.js"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/unicorn.js"],"names":[],"mappings":"AAKA,6EAiEC"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocavue/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.4.
|
|
5
|
-
"packageManager": "pnpm@8.
|
|
4
|
+
"version": "1.4.1",
|
|
5
|
+
"packageManager": "pnpm@8.13.1",
|
|
6
6
|
"description": "",
|
|
7
7
|
"author": "ocavue <ocavue@gmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -31,17 +31,17 @@
|
|
|
31
31
|
"prepublishOnly": "nr build"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@types/eslint": "^8.
|
|
34
|
+
"@types/eslint": "^8.56.0",
|
|
35
35
|
"@types/eslint-plugin-markdown": "^2.0.2",
|
|
36
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
37
|
-
"@typescript-eslint/parser": "^6.
|
|
38
|
-
"eslint-config-prettier": "^9.
|
|
39
|
-
"eslint-define-config": "^1.
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^6.16.0",
|
|
37
|
+
"@typescript-eslint/parser": "^6.16.0",
|
|
38
|
+
"eslint-config-prettier": "^9.1.0",
|
|
39
|
+
"eslint-define-config": "^2.1.0",
|
|
40
40
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
41
|
-
"eslint-plugin-antfu": "^1.0.
|
|
41
|
+
"eslint-plugin-antfu": "^1.0.13",
|
|
42
42
|
"eslint-plugin-deprecation": "^2.0.0",
|
|
43
|
-
"eslint-plugin-import": "^2.29.
|
|
44
|
-
"eslint-plugin-jsonc": "^2.
|
|
43
|
+
"eslint-plugin-import": "^2.29.1",
|
|
44
|
+
"eslint-plugin-jsonc": "^2.11.2",
|
|
45
45
|
"eslint-plugin-markdown": "^3.0.1",
|
|
46
46
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
47
47
|
"eslint-plugin-react": "^7.33.2",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@antfu/ni": "^0.21.12",
|
|
54
|
-
"@types/node": "^20.
|
|
55
|
-
"eslint": "^8.
|
|
54
|
+
"@types/node": "^20.10.6",
|
|
55
|
+
"eslint": "^8.56.0",
|
|
56
56
|
"prettier": "^2.8.8",
|
|
57
|
-
"typescript": "^5.3.
|
|
57
|
+
"typescript": "^5.3.3"
|
|
58
58
|
},
|
|
59
59
|
"renovate": {
|
|
60
60
|
"extends": [
|
package/src/antfu.js
CHANGED
package/src/basic.js
CHANGED
|
@@ -10,7 +10,7 @@ import { typescript } from './typescript.js'
|
|
|
10
10
|
import { unicorn } from './unicorn.js'
|
|
11
11
|
|
|
12
12
|
export function basic() {
|
|
13
|
-
/** @type {import('eslint-define-config').
|
|
13
|
+
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
|
|
14
14
|
const config = [
|
|
15
15
|
{
|
|
16
16
|
// @ts-expect-error: 'readonly' and cannot be assigned to the mutable type 'string[]'
|
package/src/imports.js
CHANGED
package/src/markdown.js
CHANGED
|
@@ -6,7 +6,7 @@ import markdownPlugin from 'eslint-plugin-markdown'
|
|
|
6
6
|
import { GLOB_MARKDOWN, GLOB_SRC, GLOB_VUE } from './shared.js'
|
|
7
7
|
|
|
8
8
|
export function markdown() {
|
|
9
|
-
/** @type {import('eslint-define-config').
|
|
9
|
+
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
|
|
10
10
|
const config = [
|
|
11
11
|
{
|
|
12
12
|
files: [GLOB_MARKDOWN],
|
package/src/no-only-tests.js
CHANGED
package/src/package-json.js
CHANGED
|
@@ -9,7 +9,7 @@ import { GLOB_PACKAGE_JSON } from './shared.js'
|
|
|
9
9
|
* Sort package.json keys
|
|
10
10
|
*/
|
|
11
11
|
export function packageJson() {
|
|
12
|
-
/** @type {import('eslint-define-config').
|
|
12
|
+
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
|
|
13
13
|
const config = [
|
|
14
14
|
{
|
|
15
15
|
files: [GLOB_PACKAGE_JSON],
|
package/src/prettier.js
CHANGED
|
@@ -7,7 +7,7 @@ import prettierConfig from 'eslint-config-prettier'
|
|
|
7
7
|
* have to run `pretter` separately for formatting.
|
|
8
8
|
*/
|
|
9
9
|
export function prettier() {
|
|
10
|
-
/** @type {import('eslint-define-config').
|
|
10
|
+
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
|
|
11
11
|
const config = [
|
|
12
12
|
{
|
|
13
13
|
rules: {
|
package/src/react.js
CHANGED
|
@@ -8,7 +8,7 @@ import reactHooksPlugin from 'eslint-plugin-react-hooks'
|
|
|
8
8
|
import { GLOB_TS, GLOB_TSX } from './shared.js'
|
|
9
9
|
|
|
10
10
|
export function react() {
|
|
11
|
-
/** @type {import('eslint-define-config').
|
|
11
|
+
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
|
|
12
12
|
const config = [
|
|
13
13
|
{
|
|
14
14
|
files: [GLOB_TS, GLOB_TSX],
|
package/src/typescript.js
CHANGED
|
@@ -9,7 +9,7 @@ import { GLOB_JS, GLOB_JSX, GLOB_TS, GLOB_TSX } from './shared.js'
|
|
|
9
9
|
export { tsParser, tsPlugin }
|
|
10
10
|
|
|
11
11
|
export function typescript() {
|
|
12
|
-
/** @type {import('eslint-define-config').
|
|
12
|
+
/** @type {import('eslint-define-config').FlatESLintConfig[]} */
|
|
13
13
|
const config = [
|
|
14
14
|
{
|
|
15
15
|
files: [GLOB_TS, GLOB_TSX, GLOB_JS, GLOB_JSX],
|
package/src/unicorn.js
CHANGED