@pawover/eslint-rules 0.0.0-beta.13 → 0.0.0-beta.14
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.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import javascriptRules from "./core.javascript.js";
|
|
2
|
-
import typescriptRules from "./core.typescript.js";
|
|
3
1
|
import antfuRules from "./core.antfu.js";
|
|
4
2
|
import importsRules from "./core.imports.js";
|
|
3
|
+
import simpleImportSortRules from "./core.importsSort.js";
|
|
4
|
+
import javascriptRules from "./core.javascript.js";
|
|
5
5
|
import reactRules from "./core.react.js";
|
|
6
6
|
import reactHooksRules from "./core.reactHooks.js";
|
|
7
7
|
import stylisticRules from "./core.stylistic.js";
|
|
8
|
+
import typescriptRules from "./core.typescript.js";
|
|
8
9
|
import vueRules from "./core.vue.js";
|
|
9
10
|
const javascript = javascriptRules;
|
|
10
11
|
const typescript = typescriptRules;
|
|
@@ -12,8 +13,43 @@ const react = reactRules;
|
|
|
12
13
|
const reactHooks = reactHooksRules;
|
|
13
14
|
const vue = vueRules;
|
|
14
15
|
const stylistic = stylisticRules;
|
|
16
|
+
const importsSort = simpleImportSortRules;
|
|
15
17
|
const antfu = antfuRules;
|
|
16
18
|
const imports = importsRules;
|
|
19
|
+
const GLOB_EXCLUDE = [
|
|
20
|
+
"**/node_modules",
|
|
21
|
+
"**/dist",
|
|
22
|
+
"**/package-lock.json",
|
|
23
|
+
"**/yarn.lock",
|
|
24
|
+
"**/pnpm-lock.yaml",
|
|
25
|
+
"**/bun.lockb",
|
|
26
|
+
"**/output",
|
|
27
|
+
"**/coverage",
|
|
28
|
+
"**/temp",
|
|
29
|
+
"**/.temp",
|
|
30
|
+
"**/tmp",
|
|
31
|
+
"**/.tmp",
|
|
32
|
+
"**/.history",
|
|
33
|
+
"**/.vitepress/cache",
|
|
34
|
+
"**/.nuxt",
|
|
35
|
+
"**/.next",
|
|
36
|
+
"**/.svelte-kit",
|
|
37
|
+
"**/.vercel",
|
|
38
|
+
"**/.changeset",
|
|
39
|
+
"**/.idea",
|
|
40
|
+
"**/.cache",
|
|
41
|
+
"**/.output",
|
|
42
|
+
"**/.vite-inspect",
|
|
43
|
+
"**/.yarn",
|
|
44
|
+
"**/vite.config.*.timestamp-*",
|
|
45
|
+
"**/CHANGELOG*.md",
|
|
46
|
+
"**/*.min.*",
|
|
47
|
+
"**/LICENSE*",
|
|
48
|
+
"**/__snapshots__",
|
|
49
|
+
"**/auto-import?(s).d.ts",
|
|
50
|
+
"**/auto-component?(s).d.ts",
|
|
51
|
+
"**/auto-router?(s).d.ts",
|
|
52
|
+
];
|
|
17
53
|
export default {
|
|
18
54
|
javascript,
|
|
19
55
|
typescript,
|
|
@@ -23,4 +59,6 @@ export default {
|
|
|
23
59
|
stylistic,
|
|
24
60
|
antfu,
|
|
25
61
|
imports,
|
|
62
|
+
importsSort,
|
|
63
|
+
GLOB_EXCLUDE,
|
|
26
64
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.importsSort.d.ts","sourceRoot":"","sources":["../../src/core.importsSort.ts"],"names":[],"mappings":";;;;AAAA,wBAGE"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,6 +11,8 @@ declare const _default: {
|
|
|
11
11
|
stylistic: Record<"stylistic/array-bracket-newline" | "stylistic/array-bracket-spacing" | "stylistic/array-element-newline" | "stylistic/arrow-parens" | "stylistic/arrow-spacing" | "stylistic/block-spacing" | "stylistic/brace-style" | "stylistic/comma-dangle" | "stylistic/comma-spacing" | "stylistic/comma-style" | "stylistic/computed-property-spacing" | "stylistic/curly-newline" | "stylistic/dot-location" | "stylistic/eol-last" | "stylistic/function-call-argument-newline" | "stylistic/function-call-spacing" | "stylistic/function-paren-newline" | "stylistic/generator-star-spacing" | "stylistic/implicit-arrow-linebreak" | "stylistic/indent" | "stylistic/indent-binary-ops" | "stylistic/jsx-child-element-spacing" | "stylistic/jsx-closing-bracket-location" | "stylistic/jsx-closing-tag-location" | "stylistic/jsx-curly-brace-presence" | "stylistic/jsx-curly-newline" | "stylistic/jsx-curly-spacing" | "stylistic/jsx-equals-spacing" | "stylistic/jsx-first-prop-new-line" | "stylistic/jsx-function-call-newline" | "stylistic/jsx-indent-props" | "stylistic/jsx-max-props-per-line" | "stylistic/jsx-newline" | "stylistic/jsx-one-expression-per-line" | "stylistic/jsx-pascal-case" | "stylistic/jsx-quotes" | "stylistic/jsx-self-closing-comp" | "stylistic/jsx-tag-spacing" | "stylistic/jsx-wrap-multilines" | "stylistic/key-spacing" | "stylistic/keyword-spacing" | "stylistic/line-comment-position" | "stylistic/linebreak-style" | "stylistic/lines-around-comment" | "stylistic/lines-between-class-members" | "stylistic/max-len" | "stylistic/max-statements-per-line" | "stylistic/member-delimiter-style" | "stylistic/multiline-comment-style" | "stylistic/multiline-ternary" | "stylistic/new-parens" | "stylistic/newline-per-chained-call" | "stylistic/no-confusing-arrow" | "stylistic/no-extra-parens" | "stylistic/no-extra-semi" | "stylistic/no-floating-decimal" | "stylistic/no-mixed-operators" | "stylistic/no-mixed-spaces-and-tabs" | "stylistic/no-multi-spaces" | "stylistic/no-multiple-empty-lines" | "stylistic/no-tabs" | "stylistic/no-trailing-spaces" | "stylistic/no-whitespace-before-property" | "stylistic/nonblock-statement-body-position" | "stylistic/object-curly-newline" | "stylistic/object-curly-spacing" | "stylistic/object-property-newline" | "stylistic/one-var-declaration-per-line" | "stylistic/operator-linebreak" | "stylistic/padded-blocks" | "stylistic/padding-line-between-statements" | "stylistic/quote-props" | "stylistic/quotes" | "stylistic/rest-spread-spacing" | "stylistic/semi" | "stylistic/semi-spacing" | "stylistic/semi-style" | "stylistic/space-before-blocks" | "stylistic/space-before-function-paren" | "stylistic/space-in-parens" | "stylistic/space-infix-ops" | "stylistic/space-unary-ops" | "stylistic/spaced-comment" | "stylistic/switch-colon-spacing" | "stylistic/template-curly-spacing" | "stylistic/template-tag-spacing" | "stylistic/type-annotation-spacing" | "stylistic/type-generic-spacing" | "stylistic/type-named-tuple-spacing" | "stylistic/wrap-iife" | "stylistic/wrap-regex" | "stylistic/yield-star-spacing", RuleConfig>;
|
|
12
12
|
antfu: Record<"antfu/consistent-chaining" | "antfu/consistent-list-newline" | "antfu/curly" | "antfu/if-newline" | "antfu/import-dedupe" | "antfu/indent-unindent" | "antfu/no-import-dist" | "antfu/no-import-node-modules-by-path" | "antfu/no-top-level-await" | "antfu/no-ts-export-equal" | "antfu/top-level-function", RuleConfig>;
|
|
13
13
|
imports: Record<"imports/consistent-type-specifier-style" | "imports/exports-last" | "imports/first" | "imports/newline-after-import" | "imports/no-default-export" | "imports/no-duplicates" | "imports/no-mutable-exports" | "imports/no-named-default" | "imports/prefer-default-export", RuleConfig>;
|
|
14
|
+
importsSort: Record<"simple-import-sort/imports" | "simple-import-sort/exports", RuleConfig>;
|
|
15
|
+
GLOB_EXCLUDE: string[];
|
|
14
16
|
};
|
|
15
17
|
export default _default;
|
|
16
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACtC,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AACpD,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,aAAa,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,CAAC,QAAQ,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACtC,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AACpD,MAAM,MAAM,QAAQ,GAAG,YAAY,GAAG,aAAa,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,CAAC,QAAQ,CAAC,CAAC;;;;;;;;;;;;;AA+C/C,wBAWE"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"description": "pawover's esLint rules",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"version": "0.0.0-beta.
|
|
7
|
+
"version": "0.0.0-beta.14",
|
|
8
8
|
"packageManager": "pnpm@10.28.2",
|
|
9
9
|
"engines": {
|
|
10
10
|
"node": ">=22.22.0"
|
|
@@ -41,23 +41,24 @@
|
|
|
41
41
|
"build": "pnpm clean:output && tsc -p tsconfig.build.json",
|
|
42
42
|
"public": "pnpm build && npm publish --access public --tag bate",
|
|
43
43
|
"check": "pnpm check:types & pnpm check:eslint & pnpm check:format",
|
|
44
|
-
"check:types": "tsc
|
|
45
|
-
"check:eslint": "pnpm build && pnpm eslint --fix \"**/*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,vue}\"
|
|
46
|
-
"check:format": "prettier --write \"**/*.{html,json}\" !.vscode/settings.json
|
|
44
|
+
"check:types": "tsc",
|
|
45
|
+
"check:eslint": "pnpm build && pnpm eslint --fix \"**/*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,vue}\"",
|
|
46
|
+
"check:format": "prettier --write \"**/*.{html,json}\" !.vscode/settings.json",
|
|
47
47
|
"check:pack": "attw --pack .",
|
|
48
48
|
"clean": "pnpm clean:cache & pnpm clean:lib & pnpm clean:output",
|
|
49
|
-
"clean:cache": "rimraf -g **/.cache **/auto-*.json **/auto-*.d.ts",
|
|
50
49
|
"clean:lib": "rimraf -g **/node_modules",
|
|
51
|
-
"clean:output": "rimraf dist",
|
|
50
|
+
"clean:output": "rimraf -g **/dist",
|
|
52
51
|
"lib:up": "taze -I -r --exclude pnpm"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
54
|
+
"@arethetypeswrong/cli": "^0.18.2",
|
|
55
55
|
"@eslint-react/eslint-plugin": "^4.2.3",
|
|
56
56
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
57
|
-
"eslint": "^10.
|
|
57
|
+
"eslint": "^10.2.0",
|
|
58
58
|
"eslint-plugin-antfu": "^3.2.2",
|
|
59
59
|
"eslint-plugin-import-lite": "^0.6.0",
|
|
60
60
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
61
|
+
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
61
62
|
"eslint-plugin-vue": "^10.8.0",
|
|
62
63
|
"prettier": "^3.8.1",
|
|
63
64
|
"rimraf": "^6.1.3",
|
|
@@ -72,6 +73,7 @@
|
|
|
72
73
|
"eslint-plugin-antfu": ">=3.2.2",
|
|
73
74
|
"eslint-plugin-import-lite": ">=0.5.2",
|
|
74
75
|
"eslint-plugin-react-hooks": ">=7.0.1",
|
|
76
|
+
"eslint-plugin-simple-import-sort": ">=13.0.0",
|
|
75
77
|
"eslint-plugin-vue": ">=10.8.0",
|
|
76
78
|
"react": ">=19.2.0",
|
|
77
79
|
"typescript": ">=5.9.3",
|
|
@@ -90,6 +92,9 @@
|
|
|
90
92
|
"eslint-plugin-import-lite": {
|
|
91
93
|
"optional": true
|
|
92
94
|
},
|
|
95
|
+
"eslint-plugin-simple-import-sort": {
|
|
96
|
+
"optional": true
|
|
97
|
+
},
|
|
93
98
|
"eslint-plugin-react-hooks": {
|
|
94
99
|
"optional": true
|
|
95
100
|
},
|