Skip to content

Commit fe35045

Browse files
committed
yarn lint:fix
1 parent 5ddf7f7 commit fe35045

File tree

11 files changed

+23
-21
lines changed

11 files changed

+23
-21
lines changed

.eslintrc.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,15 @@
1515
*/
1616
module.exports = {
1717
root: true,
18-
parser: '@typescript-eslint/parser',
1918
parserOptions: {
2019
ecmaVersion: 2018,
2120
sourceType: 'module',
2221
ecmaFeatures: {
2322
modules: true
2423
}
2524
},
26-
plugins: ['@typescript-eslint', 'import', '@labset-eslint'],
27-
extends: [
28-
'eslint:recommended',
29-
'plugin:@typescript-eslint/eslint-recommended',
30-
'plugin:@typescript-eslint/recommended',
31-
'plugin:import/recommended'
32-
],
25+
plugins: ['import', '@labset-eslint'],
26+
extends: ['eslint:recommended', 'plugin:import/recommended'],
3327
env: {
3428
browser: true,
3529
node: true
@@ -43,12 +37,6 @@ module.exports = {
4337
copyRightName: 'Hasnae Rehioui'
4438
}
4539
],
46-
'@typescript-eslint/no-unused-vars': [
47-
'error',
48-
{
49-
argsIgnorePattern: '_'
50-
}
51-
],
5240
'import/order': [
5341
'error',
5442
{

build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,10 @@ function lint() {
66
grep -rl '^#! */usr/bin/env node' cli/bin | xargs eslint
77
}
88

9+
function lint_fix() {
10+
echo "Running linter with fix..."
11+
eslint cli/ --ext .js --fix
12+
grep -rl '^#! */usr/bin/env node' cli/bin | xargs eslint --fix
13+
}
14+
915
eval "$@"

cli/bin/chance

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env node
22

3-
const { Command } = require("commander");
43
const Chance = require("chance");
54
const clipboard = require("clipboardy");
5+
const { Command } = require("commander");
66

77
const program = new Command();
88
const chance = new Chance();

cli/bin/inspect-node-modules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
const fs = require("fs");
2020
const path = require("path");
21+
2122
const { listFiles } = require("fs-directory");
2223
const minimist = require("minimist");
2324

cli/bin/mock-server

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const os = require('os');
44
const path = require('path');
5+
56
const express = require('express');
67
const minimist = require('minimist');
78

cli/bin/recently-played

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
#! /usr/bin/env node
22

3-
const AxiosOauthClient = require('../lib/axios-oauth-client');
4-
const axios = require('axios');
53
const queryString = require('querystring');
4+
5+
const axios = require('axios');
6+
7+
const AxiosOauthClient = require('../lib/axios-oauth-client');
68
const { envConfig } = require('../lib/env-config');
79

810
const oauthClient = new AxiosOauthClient({

cli/bin/sftp-client

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const SftpClient = require('ssh2-sftp-client');
44
const Command = require('commander').Command;
5+
56
const { envConfig } = require('../lib/env-config');
67

78
const program = new Command();

cli/bin/spotify

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#! /usr/bin/env node
22

3-
const AxiosCli = require('../lib/axios-cli');
43
const axios = require('axios');
4+
5+
const AxiosCli = require('../lib/axios-cli');
56
const { envConfig } = require('../lib/env-config');
67

78
const spotifyCli = new AxiosCli({

cli/bin/swagger-express

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#! /usr/bin/env node
22

3-
const express = require('express');
43
const fs = require('fs');
4+
5+
const express = require('express');
56
const app = express();
67
const minimist = require("minimist");
78
const swaggerUi = require("swagger-ui-express");

cli/bin/xmlf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
"use strict";
44

5-
const prettyXml = require("xml-formatter");
65
const concatStream = require("concat-stream");
6+
const prettyXml = require("xml-formatter");
77

88
process.stdin.pipe(
99
concatStream(function (buffer) {

0 commit comments

Comments
 (0)