@w5s/eslint-config 2.2.0 → 2.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/dist/rules/es.js +1 -3
- package/package.json +4 -4
- package/src/es.ts +1 -1
- package/src/index.ts +1 -1
- package/src/rules/es/base.ts +3 -3
- package/src/rules/es/import.ts +1 -1
- package/src/rules/es/unicorn.ts +1 -1
- package/src/rules/es.ts +1 -1
- package/src/rules/jest.ts +1 -1
- package/src/rules/typescript.ts +2 -2
- package/src/typescript.ts +2 -2
- package/src/yml.ts +1 -1
package/dist/rules/es.js
CHANGED
|
@@ -9,7 +9,5 @@ const jsdoc_js_1 = __importDefault(require("./es/jsdoc.js"));
|
|
|
9
9
|
const import_js_1 = __importDefault(require("./es/import.js"));
|
|
10
10
|
const unicorn_js_1 = __importDefault(require("./es/unicorn.js"));
|
|
11
11
|
// import prettierConfig from './prettier.js';
|
|
12
|
-
const config = dev_1.ESLintConfig.concat(base_js_1.default, promise_js_1.default, jsdoc_js_1.default, import_js_1.default, unicorn_js_1.default
|
|
13
|
-
// prettierConfig
|
|
14
|
-
);
|
|
12
|
+
const config = dev_1.ESLintConfig.concat(base_js_1.default, promise_js_1.default, jsdoc_js_1.default, import_js_1.default, unicorn_js_1.default);
|
|
15
13
|
module.exports = config;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w5s/eslint-config",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "ESLint configuration presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"@rushstack/eslint-patch": "^1.1.0",
|
|
37
37
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
38
38
|
"@typescript-eslint/parser": "^8.0.0",
|
|
39
|
-
"@w5s/dev": "^2.2.
|
|
40
|
-
"@w5s/prettier-config": "^2.
|
|
39
|
+
"@w5s/dev": "^2.2.15",
|
|
40
|
+
"@w5s/prettier-config": "^2.2.0",
|
|
41
41
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
42
42
|
"eslint-config-prettier": "^9.0.0",
|
|
43
43
|
"eslint-plugin-import": "^2.25.0",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
73
|
"sideEffect": false,
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "98a230292696150554b89e419fcd0ca4a3f5763f"
|
|
75
75
|
}
|
package/src/es.ts
CHANGED
package/src/index.ts
CHANGED
package/src/rules/es/base.ts
CHANGED
|
@@ -26,7 +26,7 @@ const baseConfig = ESLintConfig.concat(
|
|
|
26
26
|
nodeConfig,
|
|
27
27
|
strictConfig,
|
|
28
28
|
styleConfig,
|
|
29
|
-
variablesConfig
|
|
29
|
+
variablesConfig,
|
|
30
30
|
);
|
|
31
31
|
|
|
32
32
|
const config: eslint.Linter.Config = ESLintConfig.concat(
|
|
@@ -65,7 +65,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
|
|
|
65
65
|
// @ts-ignore No typing available
|
|
66
66
|
'no-restricted-syntax': baseConfig.rules['no-restricted-syntax'].filter(
|
|
67
67
|
// @ts-ignore No typing available
|
|
68
|
-
({ selector }) => selector !== 'ForOfStatement'
|
|
68
|
+
({ selector }) => selector !== 'ForOfStatement',
|
|
69
69
|
),
|
|
70
70
|
// underscore is often used (mongodb, etc)
|
|
71
71
|
'no-underscore-dangle': 'off',
|
|
@@ -77,7 +77,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
|
|
|
77
77
|
'no-void': ['error', { allowAsStatement: true }],
|
|
78
78
|
'unicode-bom': ['error', 'never'],
|
|
79
79
|
},
|
|
80
|
-
}
|
|
80
|
+
},
|
|
81
81
|
);
|
|
82
82
|
|
|
83
83
|
export = config;
|
package/src/rules/es/import.ts
CHANGED
package/src/rules/es/unicorn.ts
CHANGED
|
@@ -69,6 +69,6 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
|
|
|
69
69
|
'unicorn/prefer-default-parameters': 'off',
|
|
70
70
|
'unicorn/prevent-abbreviations': 'off', // This rule is so dangerous : it potentially break code while fixing in many cases !!
|
|
71
71
|
},
|
|
72
|
-
}
|
|
72
|
+
},
|
|
73
73
|
);
|
|
74
74
|
export = config;
|
package/src/rules/es.ts
CHANGED
package/src/rules/jest.ts
CHANGED
package/src/rules/typescript.ts
CHANGED
|
@@ -177,7 +177,7 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
|
|
|
177
177
|
}
|
|
178
178
|
return [...result, ...toAppend];
|
|
179
179
|
},
|
|
180
|
-
[]
|
|
180
|
+
[],
|
|
181
181
|
),
|
|
182
182
|
},
|
|
183
183
|
],
|
|
@@ -250,6 +250,6 @@ const config: eslint.Linter.Config = ESLintConfig.concat(
|
|
|
250
250
|
'space-infix-ops': 'off',
|
|
251
251
|
'valid-typeof': 'off',
|
|
252
252
|
},
|
|
253
|
-
}
|
|
253
|
+
},
|
|
254
254
|
);
|
|
255
255
|
export = config;
|
package/src/typescript.ts
CHANGED
|
@@ -9,12 +9,12 @@ const config: eslint.Linter.Config = {
|
|
|
9
9
|
{
|
|
10
10
|
extends: [require.resolve('./rules/typescript.js')],
|
|
11
11
|
},
|
|
12
|
-
prettierConfig
|
|
12
|
+
prettierConfig,
|
|
13
13
|
),
|
|
14
14
|
files: [
|
|
15
15
|
Project.extensionsToGlob(
|
|
16
16
|
// ts only extensions
|
|
17
|
-
Project.queryExtensions(['typescript', 'typescriptreact'])
|
|
17
|
+
Project.queryExtensions(['typescript', 'typescriptreact']),
|
|
18
18
|
),
|
|
19
19
|
],
|
|
20
20
|
},
|