@joshuaavalon/eslint-config-typescript 9.1.1 → 9.2.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/stylistic.d.ts +4 -1
- package/dist/stylistic.js +15 -0
- package/dist/stylistic.js.map +1 -1
- package/package.json +2 -2
package/dist/stylistic.d.ts
CHANGED
@@ -1,3 +1,6 @@
|
|
1
1
|
import type { PrefixRules } from "@joshuaavalon/eslint-config-javascript/utils";
|
2
2
|
import type { UnprefixedRuleOptions } from "@stylistic/eslint-plugin";
|
3
|
-
|
3
|
+
type TypeScriptRules = `@stylistic/type-${string}` & keyof PrefixRules<UnprefixedRuleOptions, "@stylistic/">;
|
4
|
+
type CustomTypeScriptRules = "@stylistic/lines-around-comment";
|
5
|
+
export declare const stylisticRules: Pick<PrefixRules<UnprefixedRuleOptions, "@stylistic/">, CustomTypeScriptRules | TypeScriptRules>;
|
6
|
+
export {};
|
package/dist/stylistic.js
CHANGED
@@ -1,4 +1,19 @@
|
|
1
1
|
export const stylisticRules = {
|
2
|
+
"@stylistic/lines-around-comment": [
|
3
|
+
"error",
|
4
|
+
{
|
5
|
+
afterHashbangComment: true,
|
6
|
+
allowArrayStart: true,
|
7
|
+
allowBlockStart: true,
|
8
|
+
allowClassStart: true,
|
9
|
+
allowEnumStart: true,
|
10
|
+
allowInterfaceStart: true,
|
11
|
+
allowModuleStart: true,
|
12
|
+
allowObjectStart: true,
|
13
|
+
allowTypeStart: true,
|
14
|
+
beforeBlockComment: true
|
15
|
+
}
|
16
|
+
],
|
2
17
|
"@stylistic/type-annotation-spacing": ["error"],
|
3
18
|
"@stylistic/type-generic-spacing": ["error"],
|
4
19
|
"@stylistic/type-named-tuple-spacing": ["error"]
|
package/dist/stylistic.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stylistic.js","sourceRoot":"","sources":["../src/stylistic.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"stylistic.js","sourceRoot":"","sources":["../src/stylistic.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,cAAc,GAAqG;IAC9H,iCAAiC,EAAE;QACjC,OAAO;QACP;YACE,oBAAoB,EAAE,IAAI;YAC1B,eAAe,EAAE,IAAI;YACrB,eAAe,EAAE,IAAI;YACrB,eAAe,EAAE,IAAI;YACrB,cAAc,EAAE,IAAI;YACpB,mBAAmB,EAAE,IAAI;YACzB,gBAAgB,EAAE,IAAI;YACtB,gBAAgB,EAAE,IAAI;YACtB,cAAc,EAAE,IAAI;YACpB,kBAAkB,EAAE,IAAI;SACzB;KACF;IACD,oCAAoC,EAAE,CAAC,OAAO,CAAC;IAC/C,iCAAiC,EAAE,CAAC,OAAO,CAAC;IAC5C,qCAAqC,EAAE,CAAC,OAAO,CAAC;CACjD,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@joshuaavalon/eslint-config-typescript",
|
3
|
-
"version": "9.
|
3
|
+
"version": "9.2.0",
|
4
4
|
"description": "Shareable ESLint Typescript config.",
|
5
5
|
"type": "module",
|
6
6
|
"module": "./dist/index.d.ts",
|
@@ -38,7 +38,7 @@
|
|
38
38
|
},
|
39
39
|
"dependencies": {
|
40
40
|
"@joshuaavalon/eslint-config-javascript": "^9.1.0",
|
41
|
-
"typescript-eslint": "^8.
|
41
|
+
"typescript-eslint": "^8.16.0"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|
44
44
|
"eslint": "^9.15.0"
|