shinkansen-rails 1.0.259 → 1.0.261
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/eslint.config.mjs +71 -0
- package/package.json +10 -8
- package/src/rails/index.d.mts +1 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import globals from 'globals'
|
|
2
|
+
import standard from '@sequencemedia/eslint-config-standard/configs/recommended/merge'
|
|
3
|
+
import typescript from '@sequencemedia/eslint-config-typescript/configs/recommended/merge'
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
/**
|
|
7
|
+
* Standard config
|
|
8
|
+
*/
|
|
9
|
+
standard({
|
|
10
|
+
files: [
|
|
11
|
+
'**/*.{mjs,cjs,mts,cts}'
|
|
12
|
+
],
|
|
13
|
+
ignores: [
|
|
14
|
+
'src',
|
|
15
|
+
'test'
|
|
16
|
+
],
|
|
17
|
+
languageOptions: {
|
|
18
|
+
globals: {
|
|
19
|
+
...globals.node
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}),
|
|
23
|
+
standard({
|
|
24
|
+
files: [
|
|
25
|
+
'src/**/*.{mjs,cjs,mts,cts}'
|
|
26
|
+
],
|
|
27
|
+
languageOptions: {
|
|
28
|
+
globals: {
|
|
29
|
+
...globals.browser
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}),
|
|
33
|
+
standard({
|
|
34
|
+
files: [
|
|
35
|
+
'test/**/*.{mjs,cjs,mts,cts}'
|
|
36
|
+
],
|
|
37
|
+
languageOptions: {
|
|
38
|
+
globals: {
|
|
39
|
+
...globals.mocha
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}),
|
|
43
|
+
/**
|
|
44
|
+
* TypeScript config
|
|
45
|
+
*/
|
|
46
|
+
typescript({
|
|
47
|
+
files: [
|
|
48
|
+
'**/*.{mts,cts}'
|
|
49
|
+
],
|
|
50
|
+
ignores: [
|
|
51
|
+
'src',
|
|
52
|
+
'test'
|
|
53
|
+
],
|
|
54
|
+
languageOptions: {
|
|
55
|
+
globals: {
|
|
56
|
+
...globals.node
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}),
|
|
60
|
+
typescript({
|
|
61
|
+
files: [
|
|
62
|
+
'src/**/*.{mts,cts}',
|
|
63
|
+
'test/**/*.{mts,cts}'
|
|
64
|
+
],
|
|
65
|
+
languageOptions: {
|
|
66
|
+
globals: {
|
|
67
|
+
...globals.browser
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
})
|
|
71
|
+
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shinkansen-rails",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.261",
|
|
4
4
|
"description": "Shinkansen Rails",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Shinkansen",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"url": "git+ssh://git@github.com/modernpoacher/shinkansen-rails.git"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"lint": "eslint
|
|
29
|
+
"lint": "eslint",
|
|
30
30
|
"lint:fix": "npm run lint -- --fix",
|
|
31
31
|
"nvm": "bash nvm.sh",
|
|
32
32
|
"prelint": "npm run nvm",
|
|
@@ -39,17 +39,19 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@babel/core": "^7.26.0",
|
|
42
|
-
"@babel/eslint-parser": "^7.
|
|
42
|
+
"@babel/eslint-parser": "^7.26.5",
|
|
43
43
|
"@babel/preset-env": "^7.26.0",
|
|
44
44
|
"@babel/register": "^7.25.9",
|
|
45
|
-
"@
|
|
46
|
-
"@typescript
|
|
45
|
+
"@sequencemedia/eslint-config-standard": "^0.2.10",
|
|
46
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.15",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^8.19.1",
|
|
48
|
+
"@typescript-eslint/parser": "^8.19.1",
|
|
47
49
|
"chai": "^5.1.2",
|
|
48
50
|
"core-js": "^3.40.0",
|
|
49
51
|
"cross-env": "^7.0.3",
|
|
50
|
-
"eslint": "
|
|
51
|
-
"eslint-
|
|
52
|
-
"
|
|
52
|
+
"eslint": "^9.17.0",
|
|
53
|
+
"eslint-import-resolver-babel-module": "^5.3.2",
|
|
54
|
+
"globals": "^15.14.0",
|
|
53
55
|
"husky": "^9.1.7",
|
|
54
56
|
"mocha": "^11.0.1",
|
|
55
57
|
"sinon": "^19.0.2"
|
package/src/rails/index.d.mts
CHANGED
|
@@ -7,7 +7,7 @@ declare module '#rails/rails' {
|
|
|
7
7
|
export function go (o: Record<PropertyKey, unknown>, p: string): boolean
|
|
8
8
|
export function to (o: Record<PropertyKey, unknown>, p: string): boolean
|
|
9
9
|
|
|
10
|
-
export default class Rails {
|
|
10
|
+
export default class Rails { // eslint-disable-line @typescript-eslint/no-extraneous-class -- Static class
|
|
11
11
|
static pattern (p: string | undefined): string
|
|
12
12
|
static rail (p: string | undefined): string
|
|
13
13
|
static go (o: Record<PropertyKey, unknown> | undefined, p: string | undefined): boolean
|