@signpostmarv/eslint-config 0.1.1 → 0.2.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/index.d.ts +4 -52
- package/index.js +4 -82
- package/javascript.d.ts +38 -0
- package/javascript.js +83 -0
- package/package.json +10 -11
- package/typescript.d.ts +38 -0
- package/typescript.js +6 -0
- package/eslint.config.mjs +0 -14
package/index.d.ts
CHANGED
|
@@ -1,52 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
'@typescript-eslint/member-ordering': (string | {
|
|
6
|
-
default: {
|
|
7
|
-
memberTypes: string[];
|
|
8
|
-
order: string;
|
|
9
|
-
};
|
|
10
|
-
})[];
|
|
11
|
-
'comma-dangle': string[];
|
|
12
|
-
indent: (string | {
|
|
13
|
-
ignoredNodes: string[];
|
|
14
|
-
ImportDeclaration: number;
|
|
15
|
-
})[];
|
|
16
|
-
'max-len': (string | number | {
|
|
17
|
-
ignoreTemplateLiterals: boolean;
|
|
18
|
-
})[];
|
|
19
|
-
'object-curly-newline': (string | {
|
|
20
|
-
ImportDeclaration: string;
|
|
21
|
-
})[];
|
|
22
|
-
'operator-linebreak': (string | {
|
|
23
|
-
overrides: {
|
|
24
|
-
'?': string;
|
|
25
|
-
':': string;
|
|
26
|
-
'&&': string;
|
|
27
|
-
'||': string;
|
|
28
|
-
};
|
|
29
|
-
})[];
|
|
30
|
-
'sort-imports': (string | {
|
|
31
|
-
ignoreCase: boolean;
|
|
32
|
-
ignoreDeclarationSort: boolean;
|
|
33
|
-
ignoreMemberSort: boolean;
|
|
34
|
-
memberSyntaxSortOrder: string[];
|
|
35
|
-
})[];
|
|
36
|
-
'eslint-plugin-import/order'?: undefined;
|
|
37
|
-
};
|
|
38
|
-
} | {
|
|
39
|
-
rules: {
|
|
40
|
-
'eslint-plugin-import/order': (string | {
|
|
41
|
-
groups: string[];
|
|
42
|
-
})[];
|
|
43
|
-
'@typescript-eslint/member-ordering'?: undefined;
|
|
44
|
-
'comma-dangle'?: undefined;
|
|
45
|
-
indent?: undefined;
|
|
46
|
-
'max-len'?: undefined;
|
|
47
|
-
'object-curly-newline'?: undefined;
|
|
48
|
-
'operator-linebreak'?: undefined;
|
|
49
|
-
'sort-imports'?: undefined;
|
|
50
|
-
};
|
|
51
|
-
})[];
|
|
52
|
-
export default _default;
|
|
1
|
+
import typescript from './typescript.js';
|
|
2
|
+
import javascript from './javascript.js';
|
|
3
|
+
export { typescript, javascript, };
|
|
4
|
+
export default typescript;
|
package/index.js
CHANGED
|
@@ -1,82 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
...typescript_eslint.configs.recommended,
|
|
6
|
-
...typescript_eslint.configs.recommendedTypeChecked,
|
|
7
|
-
{
|
|
8
|
-
rules: {
|
|
9
|
-
'@typescript-eslint/member-ordering': ['error', {
|
|
10
|
-
default: {
|
|
11
|
-
memberTypes: [
|
|
12
|
-
'signature',
|
|
13
|
-
'call-signature',
|
|
14
|
-
'private-accessor',
|
|
15
|
-
'#private-accessor',
|
|
16
|
-
'protected-accessor',
|
|
17
|
-
'public-accessor',
|
|
18
|
-
'public-field',
|
|
19
|
-
'protected-field',
|
|
20
|
-
'private-field',
|
|
21
|
-
'private-readonly-field',
|
|
22
|
-
'protected-readonly-field',
|
|
23
|
-
'public-readonly-field',
|
|
24
|
-
'private-static-field',
|
|
25
|
-
'protected-static-field',
|
|
26
|
-
'public-static-field',
|
|
27
|
-
'constructor',
|
|
28
|
-
'public-get',
|
|
29
|
-
'protected-get',
|
|
30
|
-
'private-get',
|
|
31
|
-
'abstract-get',
|
|
32
|
-
'public-set',
|
|
33
|
-
'protected-set',
|
|
34
|
-
'private-set',
|
|
35
|
-
'abstract-set',
|
|
36
|
-
'public-static-get',
|
|
37
|
-
'protected-static-get',
|
|
38
|
-
'private-static-get',
|
|
39
|
-
'public-static-set',
|
|
40
|
-
'protected-static-set',
|
|
41
|
-
'private-static-set',
|
|
42
|
-
'public-method',
|
|
43
|
-
'protected-method',
|
|
44
|
-
'private-method',
|
|
45
|
-
'public-abstract-method',
|
|
46
|
-
'protected-abstract-method',
|
|
47
|
-
'public-static-method',
|
|
48
|
-
'protected-static-method',
|
|
49
|
-
'private-static-method',
|
|
50
|
-
],
|
|
51
|
-
order: 'natural-case-insensitive',
|
|
52
|
-
},
|
|
53
|
-
}],
|
|
54
|
-
'comma-dangle': ['error', 'always-multiline'],
|
|
55
|
-
indent: ['error', 'tab', {
|
|
56
|
-
ignoredNodes: ['TemplateLiteral > *'],
|
|
57
|
-
ImportDeclaration: 1,
|
|
58
|
-
}],
|
|
59
|
-
'max-len': ['warn', 79, {
|
|
60
|
-
ignoreTemplateLiterals: true,
|
|
61
|
-
}],
|
|
62
|
-
'object-curly-newline': ['error', {
|
|
63
|
-
ImportDeclaration: 'always',
|
|
64
|
-
}],
|
|
65
|
-
'operator-linebreak': ['error', 'after', {
|
|
66
|
-
overrides: {
|
|
67
|
-
'?': 'before',
|
|
68
|
-
':': 'before',
|
|
69
|
-
'&&': 'before',
|
|
70
|
-
'||': 'before',
|
|
71
|
-
},
|
|
72
|
-
}],
|
|
73
|
-
'sort-imports': ['error', {
|
|
74
|
-
ignoreCase: true,
|
|
75
|
-
ignoreDeclarationSort: true,
|
|
76
|
-
ignoreMemberSort: false,
|
|
77
|
-
memberSyntaxSortOrder: ['none', 'all', 'single', 'multiple'],
|
|
78
|
-
}],
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
];
|
|
82
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
import typescript from './typescript.js';
|
|
2
|
+
import javascript from './javascript.js';
|
|
3
|
+
export { typescript, javascript, };
|
|
4
|
+
export default typescript;
|
package/javascript.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
|
|
3
|
+
} | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
4
|
+
rules: {
|
|
5
|
+
'@typescript-eslint/member-ordering': (string | {
|
|
6
|
+
default: {
|
|
7
|
+
memberTypes: string[];
|
|
8
|
+
order: string;
|
|
9
|
+
};
|
|
10
|
+
})[];
|
|
11
|
+
'comma-dangle': string[];
|
|
12
|
+
indent: (string | {
|
|
13
|
+
ignoredNodes: string[];
|
|
14
|
+
ImportDeclaration: number;
|
|
15
|
+
})[];
|
|
16
|
+
'max-len': (string | number | {
|
|
17
|
+
ignoreTemplateLiterals: boolean;
|
|
18
|
+
})[];
|
|
19
|
+
'object-curly-newline': (string | {
|
|
20
|
+
ImportDeclaration: string;
|
|
21
|
+
})[];
|
|
22
|
+
'operator-linebreak': (string | {
|
|
23
|
+
overrides: {
|
|
24
|
+
'?': string;
|
|
25
|
+
':': string;
|
|
26
|
+
'&&': string;
|
|
27
|
+
'||': string;
|
|
28
|
+
};
|
|
29
|
+
})[];
|
|
30
|
+
'sort-imports': (string | {
|
|
31
|
+
ignoreCase: boolean;
|
|
32
|
+
ignoreDeclarationSort: boolean;
|
|
33
|
+
ignoreMemberSort: boolean;
|
|
34
|
+
memberSyntaxSortOrder: string[];
|
|
35
|
+
})[];
|
|
36
|
+
};
|
|
37
|
+
})[];
|
|
38
|
+
export default _default;
|
package/javascript.js
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import js from '@eslint/js';
|
|
2
|
+
import typescript_eslint from 'typescript-eslint';
|
|
3
|
+
export default [
|
|
4
|
+
js.configs.recommended,
|
|
5
|
+
...typescript_eslint.configs.recommended,
|
|
6
|
+
{
|
|
7
|
+
rules: {
|
|
8
|
+
'@typescript-eslint/member-ordering': ['error', {
|
|
9
|
+
default: {
|
|
10
|
+
memberTypes: [
|
|
11
|
+
'signature',
|
|
12
|
+
'call-signature',
|
|
13
|
+
'private-accessor',
|
|
14
|
+
'#private-accessor',
|
|
15
|
+
'protected-accessor',
|
|
16
|
+
'public-accessor',
|
|
17
|
+
'public-field',
|
|
18
|
+
'protected-field',
|
|
19
|
+
'private-field',
|
|
20
|
+
'private-readonly-field',
|
|
21
|
+
'protected-readonly-field',
|
|
22
|
+
'public-readonly-field',
|
|
23
|
+
'private-static-field',
|
|
24
|
+
'protected-static-field',
|
|
25
|
+
'public-static-field',
|
|
26
|
+
'constructor',
|
|
27
|
+
'public-get',
|
|
28
|
+
'protected-get',
|
|
29
|
+
'private-get',
|
|
30
|
+
'abstract-get',
|
|
31
|
+
'public-set',
|
|
32
|
+
'protected-set',
|
|
33
|
+
'private-set',
|
|
34
|
+
'abstract-set',
|
|
35
|
+
'public-static-get',
|
|
36
|
+
'protected-static-get',
|
|
37
|
+
'private-static-get',
|
|
38
|
+
'public-static-set',
|
|
39
|
+
'protected-static-set',
|
|
40
|
+
'private-static-set',
|
|
41
|
+
'public-method',
|
|
42
|
+
'protected-method',
|
|
43
|
+
'private-method',
|
|
44
|
+
'public-abstract-method',
|
|
45
|
+
'protected-abstract-method',
|
|
46
|
+
'public-static-method',
|
|
47
|
+
'protected-static-method',
|
|
48
|
+
'private-static-method',
|
|
49
|
+
],
|
|
50
|
+
order: 'natural-case-insensitive',
|
|
51
|
+
},
|
|
52
|
+
}],
|
|
53
|
+
'comma-dangle': ['error', 'always-multiline'],
|
|
54
|
+
indent: ['error', 'tab', {
|
|
55
|
+
ignoredNodes: ['TemplateLiteral > *'],
|
|
56
|
+
ImportDeclaration: 1,
|
|
57
|
+
}],
|
|
58
|
+
'max-len': ['warn', 79, {
|
|
59
|
+
ignoreTemplateLiterals: true,
|
|
60
|
+
}],
|
|
61
|
+
'object-curly-newline': ['error', {
|
|
62
|
+
ImportDeclaration: 'always',
|
|
63
|
+
}],
|
|
64
|
+
'operator-linebreak': ['error', 'after', {
|
|
65
|
+
overrides: {
|
|
66
|
+
'?': 'before',
|
|
67
|
+
':': 'before',
|
|
68
|
+
'&&': 'before',
|
|
69
|
+
'||': 'before',
|
|
70
|
+
},
|
|
71
|
+
}],
|
|
72
|
+
'sort-imports': ['error', {
|
|
73
|
+
ignoreCase: true,
|
|
74
|
+
ignoreDeclarationSort: true,
|
|
75
|
+
ignoreMemberSort: false,
|
|
76
|
+
memberSyntaxSortOrder: ['none', 'all', 'single', 'multiple'],
|
|
77
|
+
}],
|
|
78
|
+
},
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
ignores: ['**/*.d.ts'],
|
|
82
|
+
},
|
|
83
|
+
];
|
package/package.json
CHANGED
|
@@ -11,19 +11,18 @@
|
|
|
11
11
|
"exports": "./index.js",
|
|
12
12
|
"types": "./index.d.ts",
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@eslint/js": "
|
|
15
|
-
"@types/eslint": "^
|
|
16
|
-
"@types/
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"prettier": "^3.3.2",
|
|
14
|
+
"@eslint/js": "9.22.0",
|
|
15
|
+
"@types/eslint": "^9.6.1",
|
|
16
|
+
"@types/node": "^22.13.10",
|
|
17
|
+
"c8": "^10.1.3",
|
|
18
|
+
"prettier": "^3.5.3",
|
|
20
19
|
"ts-node": "^10.9.2",
|
|
21
|
-
"typescript": "~5.
|
|
22
|
-
"typescript-eslint": "
|
|
20
|
+
"typescript": "~5.8.2",
|
|
21
|
+
"typescript-eslint": "8.26.1"
|
|
23
22
|
},
|
|
24
23
|
"peerDependencies": {
|
|
25
|
-
"@eslint/js": "^9.
|
|
26
|
-
"typescript-eslint": "^
|
|
24
|
+
"@eslint/js": "^9.22.0",
|
|
25
|
+
"typescript-eslint": "^8.26.1"
|
|
27
26
|
},
|
|
28
|
-
"version": "0.
|
|
27
|
+
"version": "0.2.1"
|
|
29
28
|
}
|
package/typescript.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
declare const _default: ({
|
|
2
|
+
readonly rules: Readonly<import("eslint").Linter.RulesRecord>;
|
|
3
|
+
} | import("@typescript-eslint/utils/ts-eslint").FlatConfig.Config | {
|
|
4
|
+
rules: {
|
|
5
|
+
'@typescript-eslint/member-ordering': (string | {
|
|
6
|
+
default: {
|
|
7
|
+
memberTypes: string[];
|
|
8
|
+
order: string;
|
|
9
|
+
};
|
|
10
|
+
})[];
|
|
11
|
+
'comma-dangle': string[];
|
|
12
|
+
indent: (string | {
|
|
13
|
+
ignoredNodes: string[];
|
|
14
|
+
ImportDeclaration: number;
|
|
15
|
+
})[];
|
|
16
|
+
'max-len': (string | number | {
|
|
17
|
+
ignoreTemplateLiterals: boolean;
|
|
18
|
+
})[];
|
|
19
|
+
'object-curly-newline': (string | {
|
|
20
|
+
ImportDeclaration: string;
|
|
21
|
+
})[];
|
|
22
|
+
'operator-linebreak': (string | {
|
|
23
|
+
overrides: {
|
|
24
|
+
'?': string;
|
|
25
|
+
':': string;
|
|
26
|
+
'&&': string;
|
|
27
|
+
'||': string;
|
|
28
|
+
};
|
|
29
|
+
})[];
|
|
30
|
+
'sort-imports': (string | {
|
|
31
|
+
ignoreCase: boolean;
|
|
32
|
+
ignoreDeclarationSort: boolean;
|
|
33
|
+
ignoreMemberSort: boolean;
|
|
34
|
+
memberSyntaxSortOrder: string[];
|
|
35
|
+
})[];
|
|
36
|
+
};
|
|
37
|
+
})[];
|
|
38
|
+
export default _default;
|
package/typescript.js
ADDED
package/eslint.config.mjs
DELETED