Browse Source

un sacco di fix per eslint

pull/20/head
Piero Proietti 7 months ago
parent
commit
3586f30293
12 changed files with 13 additions and 29 deletions
  1. +5
    -1
      .eslintrc
  2. +0
    -1
      src/classes/bleach.ts
  3. +0
    -2
      src/classes/distro.ts
  4. +1
    -3
      src/classes/hatching.ts
  5. +1
    -6
      src/commands/howto/grub.ts
  6. +1
    -1
      src/commands/info.ts
  7. +0
    -1
      src/commands/install.ts
  8. +1
    -3
      src/commands/kill.ts
  9. +0
    -3
      src/commands/prerequisites.ts
  10. +0
    -1
      src/commands/skel.ts
  11. +3
    -4
      src/commands/sterilize.ts
  12. +1
    -3
      src/commands/update.ts

+ 5
- 1
.eslintrc View File

@@ -14,6 +14,10 @@
"no-constant-condition" : 0,
"valid-jsdoc": 0,
"@typescript-eslint/camelcase": 0,
"@typescript-eslint/interface-name-prefix": 0
"@typescript-eslint/interface-name-prefix": 0,
"@typescript-eslint/member-delimiter-style": 0,
"@typescript-eslint/no-use-before-define" : 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-explicit-any": 0
}
}

+ 0
- 1
src/classes/bleach.ts View File

@@ -7,7 +7,6 @@
*/

import fs = require('fs')
import chalk = require('chalk')
import Utils from './utils'

// libraries


+ 0
- 2
src/classes/distro.ts View File

@@ -35,8 +35,6 @@ import shell = require('shelljs')

import { IRemix, IDistro } from '../interfaces'

import Utils from './utils'

/**
* Classe
*/


+ 1
- 3
src/classes/hatching.ts View File

@@ -44,9 +44,7 @@ export default class Hatching {
/**
* question
*/
async questions(verbose = false, umount = false) {
const retval = false
const echo = Utils.setEcho(verbose)
async questions(verbose = false, umount = false): Promise<void> {
if (verbose) {
Utils.warning('hatching: questions')
}


+ 1
- 6
src/commands/howto/grub.ts View File

@@ -1,16 +1,11 @@
import { Command, flags } from '@oclif/command'
import { Command } from '@oclif/command'
import Utils from '../../classes/utils'
import chalk = require('chalk')

export default class DevGrub extends Command {
static description = 'boot from grub rescue'

static flags = {
help: flags.help({ char: 'h' })
}

async run() {
const { flags } = this.parse(DevGrub)
Utils.titles('howto:grub')
console.log(chalk.cyanBright('Commands to boot in the grub shell'))
console.log()


+ 1
- 1
src/commands/info.ts View File

@@ -5,7 +5,7 @@
* license: MIT
*/

import { Command, flags } from '@oclif/command'
import { Command } from '@oclif/command'
import shx = require('shelljs')
import Utils from '../classes/utils'
import Ovary from '../classes/ovary'


+ 0
- 1
src/commands/install.ts View File

@@ -6,7 +6,6 @@
*/
import { Command, flags } from '@oclif/command'
import shx = require('shelljs')
import chalk = require('chalk')
import Utils from '../classes/utils'
import Hatching from '../classes/hatching'



+ 1
- 3
src/commands/kill.ts View File

@@ -8,11 +8,9 @@ import { Command, flags } from '@oclif/command'

import fs = require('fs')
import ini = require('ini')
import shx = require('shelljs')
import Utils from '../classes/utils'
import Ovary from '../classes/ovary'
import { IWorkDir } from '../interfaces/i-workdir'
import chalk = require('chalk')

const exec = require('../lib/utils').exec

@@ -39,7 +37,7 @@ kill the eggs/free the nest
async run() {
Utils.titles('kill')

const { args, flags } = this.parse(Kill)
const { flags } = this.parse(Kill)
let verbose = false
if (flags.verbose) {
verbose = true


+ 0
- 3
src/commands/prerequisites.ts View File

@@ -1,4 +1,3 @@
/* eslint-disable no-multi-str */
/**
* penguins-eggs-v7 based on Debian live
* author: Piero Proietti
@@ -6,8 +5,6 @@
* license: MIT
*/
import { Command, flags } from '@oclif/command'
import shx = require('shelljs')
import path = require('path')
import Utils from '../classes/utils'
import Pacman from '../classes/pacman'



+ 0
- 1
src/commands/skel.ts View File

@@ -39,7 +39,6 @@ desktop configuration of user mauro will get used as default`
}
Utils.warning(`user: ${user}`)

let source = ''
if (fs.existsSync(`/home/${user}`)) {
source = `/home/${user}`
} else {


+ 3
- 4
src/commands/sterilize.ts View File

@@ -5,13 +5,12 @@
* license: MIT
*/
import { Command, flags } from '@oclif/command'
import shx = require('shelljs')
import Utils from '../classes/utils'
import Pacman from '../classes/pacman'

// libraries
const exec = require('../lib/utils').exec
/**
*
*/
export default class Sterilize extends Command {
static description = 'remove all packages installed as prerequisites'



+ 1
- 3
src/commands/update.ts View File

@@ -4,7 +4,7 @@
* email: piero.proietti@gmail.com
* license: MIT
*/
import { Command, flags } from '@oclif/command'
import { Command } from '@oclif/command'
import shx = require('shelljs')
import Utils from '../classes/utils'

@@ -21,8 +21,6 @@ update/upgrade the penguin's eggs tool
async run() {
Utils.titles('update')

const { flags } = this.parse(Update)

if (Utils.isRoot()) {
if (await Utils.customConfirm(`Select yes to continue...`)) {
Utils.warning('Updating eggs...')


Loading…
Cancel
Save