@jcoreio/toolchain 5.4.1 → 5.4.3
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
|
@@ -18,7 +18,6 @@ module.exports = [
|
|
|
18
18
|
),
|
|
19
19
|
js.configs.recommended,
|
|
20
20
|
{
|
|
21
|
-
files: ['**/*.{js,cjs,mjs}'],
|
|
22
21
|
plugins: {
|
|
23
22
|
'@jcoreio/implicit-dependencies': require('@jcoreio/eslint-plugin-implicit-dependencies'),
|
|
24
23
|
},
|
|
@@ -31,19 +30,6 @@ module.exports = [
|
|
|
31
30
|
optional: true,
|
|
32
31
|
},
|
|
33
32
|
],
|
|
34
|
-
'arrow-spacing': 'error',
|
|
35
|
-
'comma-spacing': 'error',
|
|
36
|
-
'computed-property-spacing': ['error', 'never'],
|
|
37
|
-
'eol-last': 'error',
|
|
38
|
-
'jsx-quotes': 'error',
|
|
39
|
-
'keyword-spacing': 'error',
|
|
40
|
-
'key-spacing': [
|
|
41
|
-
'error',
|
|
42
|
-
{
|
|
43
|
-
mode: 'strict',
|
|
44
|
-
},
|
|
45
|
-
],
|
|
46
|
-
'linebreak-style': 'error',
|
|
47
33
|
'no-console': 'error',
|
|
48
34
|
'no-unused-vars': [
|
|
49
35
|
'error',
|
|
@@ -52,34 +38,9 @@ module.exports = [
|
|
|
52
38
|
varsIgnorePattern: 'React',
|
|
53
39
|
},
|
|
54
40
|
],
|
|
55
|
-
'no-extra-semi': 'error',
|
|
56
|
-
'no-multi-spaces': 'error',
|
|
57
|
-
'no-multiple-empty-lines': 'error',
|
|
58
|
-
'no-trailing-spaces': 'error',
|
|
59
41
|
'no-unexpected-multiline': 'error',
|
|
60
42
|
'no-unreachable': 'error',
|
|
61
|
-
'no-whitespace-before-property': 'error',
|
|
62
43
|
'object-shorthand': ['error', 'always'],
|
|
63
|
-
'padded-blocks': ['error', 'never'],
|
|
64
|
-
semi: ['error', 'never'],
|
|
65
|
-
'space-before-blocks': ['error', 'always'],
|
|
66
|
-
'space-before-function-paren': [
|
|
67
|
-
'error',
|
|
68
|
-
{
|
|
69
|
-
anonymous: 'always',
|
|
70
|
-
named: 'never',
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
'space-in-parens': ['error', 'never'],
|
|
74
|
-
'space-infix-ops': ['error', { int32Hint: false }],
|
|
75
|
-
'space-unary-ops': [
|
|
76
|
-
'error',
|
|
77
|
-
{
|
|
78
|
-
words: true,
|
|
79
|
-
nonwords: false,
|
|
80
|
-
},
|
|
81
|
-
],
|
|
82
|
-
'rest-spread-spacing': ['error', 'never'],
|
|
83
44
|
},
|
|
84
45
|
},
|
|
85
46
|
{
|
package/util/findUps.cjs
CHANGED
|
@@ -7,10 +7,7 @@ const once = require('./once.cjs')
|
|
|
7
7
|
const { name } = require('../package.json')
|
|
8
8
|
const configSchema = require('./configSchema.cjs')
|
|
9
9
|
|
|
10
|
-
const cwd = (
|
|
11
|
-
fs.pathExistsSync(Path.join(process.cwd(), 'package.json')) ?
|
|
12
|
-
process.cwd()
|
|
13
|
-
: __filename).replace(/\/node_modules(\/.*|$)/, '')
|
|
10
|
+
const cwd = process.cwd().replace(/\/node_modules(\/.*|$)/, '')
|
|
14
11
|
|
|
15
12
|
const packageJsonFile = (exports.packageJsonFile = findUp.sync('package.json', {
|
|
16
13
|
cwd,
|
|
@@ -64,7 +64,8 @@ async function migrateLegacyEslintConfigs(configs) {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
const CONFIG = expression.ast(`[...require('${name}/eslintConfig.cjs')]`)
|
|
67
|
-
for (const
|
|
67
|
+
for (const file of Object.keys(configs).sort()) {
|
|
68
|
+
const content = configs[file]
|
|
68
69
|
function warn(warning) {
|
|
69
70
|
;(warnings[file] || (warnings[file] = [])).push(warning)
|
|
70
71
|
}
|