@jcoreio/toolchain-flow 5.1.2 → 5.3.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jcoreio/toolchain-flow",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Flow JS build toolchain",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,15 +22,14 @@
|
|
|
22
22
|
"eslint": "^9.17.0",
|
|
23
23
|
"eslint-plugin-ft-flow": "^3.0.11",
|
|
24
24
|
"semver": "^7.5.3",
|
|
25
|
-
"@jcoreio/toolchain": "5.
|
|
26
|
-
"@jcoreio/toolchain-esnext": "5.
|
|
25
|
+
"@jcoreio/toolchain": "5.3.0",
|
|
26
|
+
"@jcoreio/toolchain-esnext": "5.3.0"
|
|
27
27
|
},
|
|
28
28
|
"toolchainManaged": {
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@jcoreio/toolchain-esnext": "*",
|
|
31
31
|
"@babel/plugin-syntax-flow": "*",
|
|
32
|
-
"@babel/plugin-transform-react-jsx": "*"
|
|
33
|
-
"eslint-plugin-ft-flow": "*"
|
|
32
|
+
"@babel/plugin-transform-react-jsx": "*"
|
|
34
33
|
}
|
|
35
34
|
}
|
|
36
35
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const { defineConfig, globalIgnores } = require('eslint/config')
|
|
2
|
+
const flow = require('eslint-plugin-ft-flow')
|
|
3
|
+
|
|
4
|
+
module.exports = [
|
|
5
|
+
() =>
|
|
6
|
+
defineConfig([
|
|
7
|
+
globalIgnores(['flow-typed/']),
|
|
8
|
+
{
|
|
9
|
+
files: ['**/*.{js,jsx,mjsx,cjsx}'],
|
|
10
|
+
plugins: { 'ft-flow': flow },
|
|
11
|
+
rules: {
|
|
12
|
+
...flow.configs.recommended.rules,
|
|
13
|
+
'ft-flow/boolean-style': [2, 'boolean'],
|
|
14
|
+
'ft-flow/define-flow-type': 1,
|
|
15
|
+
'ft-flow/delimiter-dangle': [2, 'always-multiline'],
|
|
16
|
+
'ft-flow/no-dupe-keys': 2,
|
|
17
|
+
'ft-flow/no-primitive-constructor-types': 2,
|
|
18
|
+
'ft-flow/require-parameter-type': [
|
|
19
|
+
2,
|
|
20
|
+
{
|
|
21
|
+
excludeArrowFunctions: 'expressionsOnly',
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
'ft-flow/require-return-type': [
|
|
25
|
+
2,
|
|
26
|
+
'always',
|
|
27
|
+
{
|
|
28
|
+
annotateUndefined: 'ignore',
|
|
29
|
+
excludeArrowFunctions: 'expressionsOnly',
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
'ft-flow/require-valid-file-annotation': 2,
|
|
33
|
+
'ft-flow/semi': [2, 'never'],
|
|
34
|
+
'ft-flow/space-after-type-colon': [
|
|
35
|
+
2,
|
|
36
|
+
'always',
|
|
37
|
+
{
|
|
38
|
+
allowLineBreak: true,
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
'ft-flow/space-before-generic-bracket': [2, 'never'],
|
|
42
|
+
'ft-flow/space-before-type-colon': [2, 'never'],
|
|
43
|
+
'ft-flow/union-intersection-spacing': [2, 'always'],
|
|
44
|
+
// 'ft-flow/use-flow-type': 1,
|
|
45
|
+
},
|
|
46
|
+
settings: {
|
|
47
|
+
'ft-flow': {
|
|
48
|
+
onlyFilesWithFlowAnnotation: true,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
]),
|
|
53
|
+
]
|
package/eslint.extends.cjs
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
parser: '@babel/eslint-parser',
|
|
3
|
-
plugins: ['ft-flow'],
|
|
4
|
-
rules: {
|
|
5
|
-
'ft-flow/boolean-style': [2, 'boolean'],
|
|
6
|
-
'ft-flow/define-flow-type': 1,
|
|
7
|
-
'ft-flow/delimiter-dangle': [2, 'always-multiline'],
|
|
8
|
-
'ft-flow/no-dupe-keys': 2,
|
|
9
|
-
'ft-flow/no-primitive-constructor-types': 2,
|
|
10
|
-
'ft-flow/require-parameter-type': [
|
|
11
|
-
2,
|
|
12
|
-
{
|
|
13
|
-
excludeArrowFunctions: 'expressionsOnly',
|
|
14
|
-
},
|
|
15
|
-
],
|
|
16
|
-
'ft-flow/require-return-type': [
|
|
17
|
-
2,
|
|
18
|
-
'always',
|
|
19
|
-
{
|
|
20
|
-
annotateUndefined: 'ignore',
|
|
21
|
-
excludeArrowFunctions: 'expressionsOnly',
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
'ft-flow/require-valid-file-annotation': 2,
|
|
25
|
-
'ft-flow/semi': [2, 'never'],
|
|
26
|
-
'ft-flow/space-after-type-colon': [
|
|
27
|
-
2,
|
|
28
|
-
'always',
|
|
29
|
-
{
|
|
30
|
-
allowLineBreak: true,
|
|
31
|
-
},
|
|
32
|
-
],
|
|
33
|
-
'ft-flow/space-before-generic-bracket': [2, 'never'],
|
|
34
|
-
'ft-flow/space-before-type-colon': [2, 'never'],
|
|
35
|
-
'ft-flow/union-intersection-spacing': [2, 'always'],
|
|
36
|
-
// 'ft-flow/use-flow-type': 1,
|
|
37
|
-
},
|
|
38
|
-
settings: {
|
|
39
|
-
'ft-flow': {
|
|
40
|
-
onlyFilesWithFlowAnnotation: true,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = [() => [require.resolve('../eslint.extends.cjs')]]
|