@signpostmarv/eslint-config 0.5.0 → 0.7.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/LICENSE.md +1 -1
- package/README.md +2 -2
- package/index.d.ts +2 -3
- package/index.js +2 -3
- package/javascript.d.ts +2 -2
- package/javascript.js +51 -8
- package/package.json +11 -10
- package/typescript.d.ts +2 -2
- package/typescript.js +5 -4
package/LICENSE.md
CHANGED
|
@@ -175,7 +175,7 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
|
175
175
|
|
|
176
176
|
END OF TERMS AND CONDITIONS
|
|
177
177
|
|
|
178
|
-
Copyright
|
|
178
|
+
Copyright 2026 SignpostMarv
|
|
179
179
|
|
|
180
180
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
181
|
you may not use this file except in compliance with the License.
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
# Usage
|
|
9
9
|
|
|
10
10
|
```js
|
|
11
|
-
import
|
|
11
|
+
import {typescript} from '@signpostmarv/eslint-config';
|
|
12
12
|
import parser from '@typescript-eslint/parser';
|
|
13
13
|
|
|
14
14
|
export default [
|
|
@@ -20,6 +20,6 @@ export default [
|
|
|
20
20
|
},
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
|
-
...
|
|
23
|
+
...typescript,
|
|
24
24
|
];
|
|
25
25
|
```
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
package/javascript.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ESLint, Linter } from 'eslint';
|
|
2
|
-
|
|
2
|
+
declare const javascript: ({
|
|
3
3
|
readonly plugins: Record<string, ESLint.Plugin>;
|
|
4
4
|
readonly rules: Readonly<Linter.RulesRecord>;
|
|
5
5
|
} | {
|
|
@@ -8,4 +8,4 @@ export declare const javascript: ({
|
|
|
8
8
|
} | {
|
|
9
9
|
ignores: string[];
|
|
10
10
|
})[];
|
|
11
|
-
export
|
|
11
|
+
export { javascript, };
|
package/javascript.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import js from '@eslint/js';
|
|
2
|
+
// eslint-disable-next-line imports/no-unresolved
|
|
2
3
|
import typescript_eslint from 'typescript-eslint';
|
|
3
4
|
import stylistic from '@stylistic/eslint-plugin';
|
|
4
|
-
|
|
5
|
+
import imports from 'eslint-plugin-import';
|
|
6
|
+
const javascript = [
|
|
5
7
|
js.configs.recommended,
|
|
6
8
|
...typescript_eslint.configs.recommended,
|
|
7
9
|
{
|
|
8
10
|
plugins: {
|
|
9
11
|
'@stylistic': stylistic,
|
|
12
|
+
imports,
|
|
10
13
|
},
|
|
11
14
|
rules: {
|
|
12
15
|
'@typescript-eslint/member-ordering': ['error', {
|
|
@@ -199,21 +202,61 @@ export const javascript = [
|
|
|
199
202
|
'@stylistic/type-annotation-spacing': ['error', {
|
|
200
203
|
before: false,
|
|
201
204
|
after: true,
|
|
202
|
-
overrides: {
|
|
203
|
-
arrow: {
|
|
204
|
-
before: true,
|
|
205
|
-
after: true,
|
|
206
|
-
},
|
|
207
|
-
},
|
|
208
205
|
}],
|
|
209
206
|
'@stylistic/type-generic-spacing': ['error'],
|
|
210
207
|
'@stylistic/type-named-tuple-spacing': ['error'],
|
|
211
208
|
'@stylistic/wrap-iife': ['error', 'inside'],
|
|
212
209
|
'@stylistic/yield-star-spacing': ['error', 'after'],
|
|
210
|
+
'imports/export': ['error'],
|
|
211
|
+
'imports/no-deprecated': ['error'],
|
|
212
|
+
'imports/no-empty-named-blocks': ['error'],
|
|
213
|
+
'imports/no-extraneous-dependencies': ['error'],
|
|
214
|
+
'imports/no-mutable-exports': ['error'],
|
|
215
|
+
'imports/no-named-as-default': ['error'],
|
|
216
|
+
'imports/no-named-as-default-member': ['error'],
|
|
217
|
+
'imports/no-unused-modules': ['error'],
|
|
218
|
+
'imports/no-amd': ['error'],
|
|
219
|
+
'imports/no-commonjs': ['error'],
|
|
220
|
+
'imports/no-import-module-exports': ['error'],
|
|
221
|
+
'imports/unambiguous': ['error'],
|
|
222
|
+
'imports/default': ['error'],
|
|
223
|
+
'imports/enforce-node-protocol-usage': ['error', 'always'],
|
|
224
|
+
'imports/named': ['error'],
|
|
225
|
+
'imports/namespace': ['error'],
|
|
226
|
+
'imports/no-absolute-path': ['error'],
|
|
227
|
+
'imports/no-cycle': ['error'],
|
|
228
|
+
'imports/no-dynamic-require': ['error'],
|
|
229
|
+
'imports/no-internal-modules': ['error'],
|
|
230
|
+
'imports/no-relative-packages': ['error'],
|
|
231
|
+
'imports/no-relative-parent-imports': ['error'],
|
|
232
|
+
'imports/no-self-import': ['error'],
|
|
233
|
+
'imports/no-unresolved': ['error'],
|
|
234
|
+
'imports/no-useless-path-segments': ['error'],
|
|
235
|
+
'imports/no-webpack-loader-syntax': ['error'],
|
|
236
|
+
'imports/consistent-type-specifier-style': ['error'],
|
|
237
|
+
'imports/exports-last': ['error'],
|
|
238
|
+
'imports/extensions': ['error', 'ignorePackages'],
|
|
239
|
+
'imports/first': ['error'],
|
|
240
|
+
'imports/group-exports': ['error'],
|
|
241
|
+
'imports/newline-after-import': ['error'],
|
|
242
|
+
'imports/no-anonymous-default-export': ['error'],
|
|
243
|
+
'imports/no-default-export': ['error'],
|
|
244
|
+
'imports/no-duplicates': ['error'],
|
|
245
|
+
'imports/no-named-default': ['error'],
|
|
246
|
+
'imports/no-namespace': ['error'],
|
|
247
|
+
'imports/no-unassigned-import': ['error'],
|
|
248
|
+
'imports/order': ['error', {
|
|
249
|
+
groups: [
|
|
250
|
+
'builtin',
|
|
251
|
+
'external',
|
|
252
|
+
'sibling',
|
|
253
|
+
'parent',
|
|
254
|
+
],
|
|
255
|
+
}],
|
|
213
256
|
},
|
|
214
257
|
},
|
|
215
258
|
{
|
|
216
259
|
ignores: ['**/*.d.ts'],
|
|
217
260
|
},
|
|
218
261
|
];
|
|
219
|
-
export
|
|
262
|
+
export { javascript, };
|
package/package.json
CHANGED
|
@@ -11,25 +11,26 @@
|
|
|
11
11
|
"exports": "./index.js",
|
|
12
12
|
"types": "./index.d.ts",
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@eslint/js": "
|
|
15
|
-
"@stylistic/eslint-plugin": "
|
|
16
|
-
"@types/eslint": "
|
|
14
|
+
"@eslint/js": "9.39.2",
|
|
15
|
+
"@stylistic/eslint-plugin": "5.7.1",
|
|
16
|
+
"@types/eslint": "9.6.1",
|
|
17
17
|
"@types/node": "^24.5.2",
|
|
18
|
-
"@typescript-eslint/parser": "^8.
|
|
18
|
+
"@typescript-eslint/parser": "^8.54.0",
|
|
19
19
|
"c8": "^10.1.3",
|
|
20
20
|
"jiti": "^2.6.0",
|
|
21
21
|
"prettier": "^3.6.2",
|
|
22
22
|
"typescript": "~5.9.2",
|
|
23
|
-
"typescript-eslint": "
|
|
23
|
+
"typescript-eslint": "8.54.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@eslint/js": "^9.
|
|
27
|
-
"@stylistic/eslint-plugin": "^5.
|
|
26
|
+
"@eslint/js": "^9.39.2",
|
|
27
|
+
"@stylistic/eslint-plugin": "^5.7.1",
|
|
28
28
|
"@types/eslint": "^9.6.1",
|
|
29
|
-
"
|
|
29
|
+
"eslint-plugin-import": "^2.32.0",
|
|
30
|
+
"typescript-eslint": "^8.54.0"
|
|
30
31
|
},
|
|
31
32
|
"optionalDependencies": {
|
|
32
|
-
"@typescript-eslint/parser": "^8.
|
|
33
|
+
"@typescript-eslint/parser": "^8.54.0"
|
|
33
34
|
},
|
|
34
|
-
"version": "0.
|
|
35
|
+
"version": "0.7.0"
|
|
35
36
|
}
|
package/typescript.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Linter } from 'eslint';
|
|
2
|
-
|
|
2
|
+
declare const typescript: ({
|
|
3
3
|
readonly rules: Readonly<Linter.RulesRecord>;
|
|
4
4
|
} | {
|
|
5
5
|
name?: string;
|
|
@@ -7,4 +7,4 @@ export declare const typescript: ({
|
|
|
7
7
|
} | {
|
|
8
8
|
ignores: string[];
|
|
9
9
|
})[];
|
|
10
|
-
export
|
|
10
|
+
export { typescript, };
|
package/typescript.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// eslint-disable-next-line imports/no-unresolved
|
|
2
2
|
import typescript_eslint from 'typescript-eslint';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import { javascript, } from './javascript.js';
|
|
4
|
+
const typescript = [
|
|
5
|
+
...javascript,
|
|
5
6
|
...typescript_eslint.configs.recommendedTypeChecked,
|
|
6
7
|
{
|
|
7
8
|
rules: {
|
|
@@ -12,4 +13,4 @@ export const typescript = [
|
|
|
12
13
|
},
|
|
13
14
|
},
|
|
14
15
|
];
|
|
15
|
-
export
|
|
16
|
+
export { typescript, };
|