Browse Source

modificati .eslintrc e .eslintignore

tags/v7.8.10
Piero Proietti 10 months ago
parent
commit
287aa82d29
4 changed files with 17 additions and 6 deletions
  1. +2
    -1
      .eslintignore
  2. +12
    -3
      .eslintrc
  3. +2
    -1
      package.json
  4. +1
    -1
      src/classes/hatching.ts

+ 2
- 1
.eslintignore View File

@@ -1 +1,2 @@
/lib
lib
node_modules

+ 12
- 3
.eslintrc View File

@@ -1,6 +1,15 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"oclif",
"oclif-typescript",
]
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"no-console": 0 // Exclude error
}
}

+ 2
- 1
package.json View File

@@ -91,7 +91,8 @@
"posttest": "eslint . --ext .ts --config .eslintrc",
"prepack": "rm -rf lib && tsc -b && oclif-dev manifest && oclif-dev readme",
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\"",
"version": "oclif-dev readme && git add README.md"
"version": "oclif-dev readme && git add README.md",
"lint": "eslint . --ext .ts --config .eslintrc"
},
"types": "lib/index.d.ts"
}

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

@@ -229,7 +229,7 @@ export default class Hatching {
Utils.titles(`install`)
console.log()
Utils.warning(`The process of installation is running..,`)
ty
if (fs.existsSync('/sys/firmware/efi/efivars')) {
this.efi = true
}


Loading…
Cancel
Save