@cherepanov.pavel/shareable-config 2.0.0 → 2.0.2

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.
@@ -66,7 +66,7 @@ export const suggestionRules = {
66
66
  ERROR,
67
67
  "declaration",
68
68
  {
69
- allowArrowFunctions: true,
69
+ allowTypeAnnotation: true,
70
70
  },
71
71
  ],
72
72
  "grouped-accessor-pairs": [
@@ -232,6 +232,7 @@ export const suggestionRules = {
232
232
  boolean: true,
233
233
  number: true,
234
234
  string: true,
235
+ disallowTemplateShorthand: true,
235
236
  },
236
237
  ],
237
238
  "no-implicit-globals": [
@@ -1,11 +1,15 @@
1
+ /*
2
+ change with execFile carefully later. Cover with tests
3
+ */
1
4
  import {
2
- execFile,
5
+ exec,
3
6
  } from "node:child_process";
4
7
  import {
5
8
  promisify,
6
9
  } from "node:util";
7
10
 
8
- const execFileAsync = promisify(execFile);
11
+ const execAsync = promisify(exec);
12
+
9
13
  // filePaths: string | string[]
10
14
  export async function eslintFiles(filePaths) {
11
15
  const paths = Array.isArray(filePaths)
@@ -15,10 +19,7 @@ export async function eslintFiles(filePaths) {
15
19
  ];
16
20
 
17
21
  const promises = paths.map(async (path) => {
18
- return execFileAsync("eslint", [
19
- path,
20
- "--fix",
21
- ]);
22
+ return execAsync(`eslint ${path} --fix`);
22
23
  });
23
24
 
24
25
  return Promise.all(promises);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cherepanov.pavel/shareable-config",
3
3
  "description": "setup for new repositories",
4
- "version": "2.0.0",
4
+ "version": "2.0.2",
5
5
  "type": "module",
6
6
  "devEngines": {
7
7
  "packageManager": {