@digigov/cli-lint 0.5.28 → 0.5.29

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.
@@ -4,13 +4,13 @@
4
4
  "@babel/core@7.12.13": "sha512-BQKE9kXkPlXHPeqissfxo0lySWJcYdEP0hdtJOH/iJfDdhOCcgtNCjftCJg3qqauB4h+lz2N6ixM++b9DN1Tcw==",
5
5
  "@babel/core@7.12.9": "sha512-gTXYh3M5wb7FRXQy+FErKFAv90BnlOuNn1QkCK2lREoPAjrQCO49+HVSrFoe5uakFAF5eenS75KbO2vQiLrTMQ==",
6
6
  "@babel/eslint-parser@7.13.8_4bd929391c81e44a8f22a87cc86f6e2f": "sha512-XewKkiyukrGzMeqToXJQk6hjg2veI9SNQElGzAoAjKxYCLbgcVX4KA2WhoyqMon9N4RMdCZhNTJNOBcp9spsiw==",
7
- "@babel/generator@7.17.0": "sha512-I3Omiv6FGOC29dtlZhkfXO6pgkmukJSlT26QjVvS1DGZe/NzSVCPG41X0tS21oZkJYlovfj9qDWgKP+Cn4bXxw==",
7
+ "@babel/generator@7.17.3": "sha512-+R6Dctil/MgUsZsZAkYgK+ADNSZzJRRy0TvY65T71z/CR854xHQ1EweBYXdfT+HNeN7w0cSJJEzgxZMv40pxsg==",
8
8
  "@babel/helper-environment-visitor@7.16.7": "sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==",
9
9
  "@babel/helper-function-name@7.16.7": "sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA==",
10
10
  "@babel/helper-get-function-arity@7.16.7": "sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==",
11
11
  "@babel/helper-hoist-variables@7.16.7": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==",
12
12
  "@babel/helper-module-imports@7.16.7": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==",
13
- "@babel/helper-module-transforms@7.16.7": "sha512-gaqtLDxJEFCeQbYp9aLAefjhkKdjKcdh6DB7jniIGU3Pz52WAmP268zK0VgPz9hUNkMSYeH976K2/Y6yPadpng==",
13
+ "@babel/helper-module-transforms@7.17.6": "sha512-2ULmRdqoOMpdvkbT8jONrZML/XALfzxlb052bldftkicAUy8AxSCkD5trDPQcwHNmolcl7wP6ehNqMlyUw6AaA==",
14
14
  "@babel/helper-plugin-utils@7.10.4": "sha512-O4KCvQA6lLiMU9l2eawBPMf1xPP8xPfB3iEQw150hOVTqj/rfXz0ThTb4HEzqQfs2Bmo5Ay8BzxfzVtBrr9dVg==",
15
15
  "@babel/helper-plugin-utils@7.16.7": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==",
16
16
  "@babel/helper-simple-access@7.16.7": "sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g==",
@@ -18,14 +18,14 @@
18
18
  "@babel/helper-validator-identifier@7.16.7": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==",
19
19
  "@babel/helpers@7.17.2": "sha512-0Qu7RLR1dILozr/6M0xgj+DFPmi6Bnulgm9M8BVa9ZCWxDqlSnqt3cf8IDPB5m45sVXUZ0kuQAgUrdSFFH79fQ==",
20
20
  "@babel/highlight@7.16.10": "sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==",
21
- "@babel/parser@7.17.0": "sha512-VKXSCQx5D8S04ej+Dqsr1CzYvvWgf20jIw2D+YhQCrIlr2UZGaDds23Y0xg75/skOxpLCRpUZvk/1EAVkGoDOw==",
21
+ "@babel/parser@7.17.3": "sha512-7yJPvPV+ESz2IUTPbOL+YkIGyCqOyNIzdguKQuJGnH7bg1WTIifuM21YqokFt/THWh1AkCRn9IgoykTRCBVpzA==",
22
22
  "@babel/plugin-proposal-object-rest-spread@7.12.1_@babel+core@7.12.9": "sha512-s6SowJIjzlhx8o7lsFx5zmY4At6CTtDvgNQDdPzkBQucle58A6b/TTeEBYtyDgmcXjUTM+vE8YOGHZzzbc/ioA==",
23
23
  "@babel/plugin-syntax-jsx@7.12.1_@babel+core@7.12.9": "sha512-1yRi7yAtB0ETgxdY9ti/p2TivUxJkTdhu/ZbF9MshVGqOx1TdB3b7xCXs49Fupgg50N45KcAsRP/ZqWjs9SRjg==",
24
24
  "@babel/plugin-syntax-object-rest-spread@7.8.3_@babel+core@7.12.9": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==",
25
25
  "@babel/plugin-transform-parameters@7.16.7_@babel+core@7.12.9": "sha512-AT3MufQ7zZEhU2hwOA11axBnExW0Lszu4RL/tAlUJBuNoRak+wehQW8h6KcXOcgjY42fHtDxswuMhMjFEuv/aw==",
26
26
  "@babel/runtime@7.17.2": "sha512-hzeyJyMA1YGdJTuWU0e/j4wKXrU4OMFvY2MSlaI9B7VQb0r5cxTE3EAIS2Q7Tn2RIcDkRvTA/v2JsAEhxe99uw==",
27
27
  "@babel/template@7.16.7": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==",
28
- "@babel/traverse@7.17.0": "sha512-fpFIXvqD6kC7c7PUNnZ0Z8cQXlarCLtCUpt2S1Dx7PjoRtCFffvOkHHSom+m5HIxMZn5bIBVb71lhabcmjEsqg==",
28
+ "@babel/traverse@7.17.3": "sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw==",
29
29
  "@babel/types@7.17.0": "sha512-TmKSNO4D5rzhL5bjWFcVHHLETzfQ/AmbKpKPOSjlP0WoHZ6L911fgoOKY4Alp/emzG4cHJdyN49zpgkbXFEHHw==",
30
30
  "@emotion/cache@10.0.29": "sha512-fU2VtSVlHiF27empSbxi1O2JFdNWZO+2NFHfwO0pxgTep6Xa3uGb+3pVKfLww2l/IBGLNEZl5Xf/++A4wAYDYQ==",
31
31
  "@emotion/core@10.3.1": "sha512-447aUEjPIm0MnE6QYIaFz9VQOHSXf4Iu6EWOIqq11EAPqinkSZmfymPTmlOE3QjLv846lH4JVZBUOtwGbuQoww==",
@@ -288,7 +288,7 @@
288
288
  "merge2@1.4.1": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
289
289
  "micromatch@4.0.4": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==",
290
290
  "mimic-fn@2.1.0": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
291
- "minimatch@3.0.5": "sha512-tUpxzX0VAzJHjLu0xUfFv1gwVp9ba3IOuRAVH2EGuRW8a5emA2FlACLqiT/lDVtS1W+TGNwqz3sWaNyLgDJWuw==",
291
+ "minimatch@3.1.2": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
292
292
  "minimist@1.2.5": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==",
293
293
  "ms@2.0.0": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
294
294
  "ms@2.1.2": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==",
package/CHANGELOG.json CHANGED
@@ -1,6 +1,23 @@
1
1
  {
2
2
  "name": "@digigov/cli-lint",
3
3
  "entries": [
4
+ {
5
+ "version": "0.5.29",
6
+ "tag": "@digigov/cli-lint_v0.5.29",
7
+ "date": "Wed, 30 Mar 2022 12:28:30 GMT",
8
+ "comments": {
9
+ "none": [
10
+ {
11
+ "comment": "Fix linting issues"
12
+ }
13
+ ],
14
+ "patch": [
15
+ {
16
+ "comment": "Allow multiple files as argv"
17
+ }
18
+ ]
19
+ }
20
+ },
4
21
  {
5
22
  "version": "0.5.28",
6
23
  "tag": "@digigov/cli-lint_v0.5.28",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # Change Log - @digigov/cli-lint
2
2
 
3
- This log was last generated on Thu, 10 Feb 2022 13:45:56 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 30 Mar 2022 12:28:30 GMT and should not be manually modified.
4
+
5
+ ## 0.5.29
6
+ Wed, 30 Mar 2022 12:28:30 GMT
7
+
8
+ ### Patches
9
+
10
+ - Allow multiple files as argv
4
11
 
5
12
  ## 0.5.28
6
13
  Thu, 10 Feb 2022 13:45:56 GMT
package/index.js CHANGED
@@ -1,31 +1,32 @@
1
- const {Command, flags} = require('@oclif/command');
1
+ const { Command, flags } = require('@oclif/command');
2
2
  const execa = require('execa');
3
- const {makeConfig, resolveProject} = require('@digigov/cli/lib');
4
- const {DigigovCommand} = require('@digigov/cli/lib');
3
+ const { makeConfig, resolveProject } = require('@digigov/cli/lib');
4
+ const { DigigovCommand } = require('@digigov/cli/lib');
5
5
 
6
6
  module.exports = class Lint extends DigigovCommand {
7
7
  static description = 'lint digigov projects';
8
8
  static id = 'lint';
9
- static examples = [
10
- `$ digigov lint`,
11
- ];
12
- dirname=__dirname
13
- static load() {return Lint;}
9
+ static examples = [`$ digigov lint`];
10
+ static strict = false;
11
+ dirname = __dirname;
12
+ static load() {
13
+ return Lint;
14
+ }
14
15
  script = 'eslint';
15
- static args = [{name: 'files'}]
16
+ static args = [{ name: 'files' }];
16
17
  async run() {
17
- const {args, argv} = this.parse(Lint)
18
+ const { args, argv } = this.parse(Lint);
18
19
  const project = resolveProject();
19
20
  const ext = ['.js', '.jsx', '.json', '.ts', '.tsx', '.mdx'];
20
- const cmdArgs = []
21
- if(project.ignore) {
21
+ const cmdArgs = [];
22
+ if (project.ignore) {
22
23
  cmdArgs.push('--ignore-path', project.ignore);
23
24
  }
24
- if(project.isTs) {
25
+ if (project.isTs) {
25
26
  await this.exec('tsc', ['--noEmit']);
26
27
  }
27
- if(args.files && args.files.startsWith('-')){
28
- args.files = null
28
+ if (args.files && args.files.startsWith('-')) {
29
+ args.files = null;
29
30
  }
30
31
  const files = args.files || project.src;
31
32
  const proc = this.exec(
@@ -35,9 +36,9 @@ module.exports = class Lint extends DigigovCommand {
35
36
  '--ext',
36
37
  ext.join(','),
37
38
  ...cmdArgs,
38
- ...argv.filter(a=>a !== files)
39
+ ...argv.filter((a) => a !== files),
39
40
  ],
40
- {env: {}, stdio: 'inherit'}
41
+ { env: {}, stdio: 'inherit' }
41
42
  );
42
43
  return proc;
43
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digigov/cli-lint",
3
- "version": "0.5.28",
3
+ "version": "0.5.29",
4
4
  "description": "Lint plugin for Digigov CLI",
5
5
  "main": "index.js",
6
6
  "author": "GRNET Devs <devs@lists.grnet.gr>",
@@ -29,8 +29,8 @@
29
29
  "@rushstack/eslint-patch": "1.0.6"
30
30
  },
31
31
  "peerDependencies": {
32
- "@digigov/cli": "0.5.26",
33
- "@digigov/cli-build": "0.6.3",
32
+ "@digigov/cli": "0.5.27",
33
+ "@digigov/cli-build": "0.7.1",
34
34
  "prettier": "2.0.2",
35
35
  "eslint": "7.24.0"
36
36
  },
@@ -1,16 +0,0 @@
1
- {
2
- "files": {
3
- "tooling/cli-lint/.eslintrc.js": "9021f38d6d5d1d3a2eb5e20507d799c0c1d8f528",
4
- "tooling/cli-lint/CHANGELOG.json": "b06428c9babda1a12017ec19e1171121207c8208",
5
- "tooling/cli-lint/CHANGELOG.md": "01859e31e26bcd7026f6e218b3b8334588a665e1",
6
- "tooling/cli-lint/eslint.common.js": "d7e0700b66953cb0a9f46dd6d38b35e415bbcb9f",
7
- "tooling/cli-lint/eslint.config.js": "ace1bbe87a9e4ed55134d2354c466060b441f9e2",
8
- "tooling/cli-lint/eslintrc.js": "3cb496db7b35d18d27fec953e7a6b637789986bc",
9
- "tooling/cli-lint/index.js": "6848e0fd6e08b80614542a3de75e1d5ab9305824",
10
- "tooling/cli-lint/package.json": "7bc6b1f91c41359f8df8223046f0ec7eb3f92374",
11
- "tooling/cli-lint/prettier.config.js": "7796b248642ee21b308769f8fcce91f7244d7d82",
12
- "tooling/cli-lint/prettierrc.js": "d9719421e650d19e0a9d359b9a4f72861ac7f792",
13
- "tooling/cli-lint/.rush/temp/shrinkwrap-deps.json": "c55847d16751b19655d3e7e0c63863a1d2aa9f27"
14
- },
15
- "arguments": ""
16
- }
@@ -1,16 +0,0 @@
1
- {
2
- "files": {
3
- "tooling/cli-lint/.eslintrc.js": "9021f38d6d5d1d3a2eb5e20507d799c0c1d8f528",
4
- "tooling/cli-lint/CHANGELOG.json": "2e5a93adf5f43593e15793b416e28f7e4b081b64",
5
- "tooling/cli-lint/CHANGELOG.md": "92bb7cb3501c0bcf9de9de5e8e8277841b71ae07",
6
- "tooling/cli-lint/eslint.common.js": "4d91fbc39c420c399f350a4803cd5d5594b86943",
7
- "tooling/cli-lint/eslint.config.js": "ace1bbe87a9e4ed55134d2354c466060b441f9e2",
8
- "tooling/cli-lint/eslintrc.js": "3cb496db7b35d18d27fec953e7a6b637789986bc",
9
- "tooling/cli-lint/index.js": "6848e0fd6e08b80614542a3de75e1d5ab9305824",
10
- "tooling/cli-lint/package.json": "f2d3aabbabd73c911fe1e53ab7e059a8a7bb52ff",
11
- "tooling/cli-lint/prettier.config.js": "7796b248642ee21b308769f8fcce91f7244d7d82",
12
- "tooling/cli-lint/prettierrc.js": "d9719421e650d19e0a9d359b9a4f72861ac7f792",
13
- "tooling/cli-lint/.rush/temp/shrinkwrap-deps.json": "d36bb82f426160dd9ae6d9b79c1fef351b526ccb"
14
- },
15
- "arguments": ""
16
- }
File without changes