Skip to content

Commit

Permalink
Merge pull request #69 from deboer-tim/linting
Browse files Browse the repository at this point in the history
chore: pick up missing linting from podman desktop
  • Loading branch information
cdrage authored Jan 19, 2024
2 parents d5aae24 + 10a70a3 commit b06eba3
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 16 deletions.
19 changes: 10 additions & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,18 @@
"/@gen": "./src-generated"
},
"extensions": [".ts"],
"packages": ["packages/*", "extensions/*"]
"packages": ["packages/*"]
}
}
},
"plugins": ["@typescript-eslint", "sonarjs", "etc", "redundant-undefined"],
"ignorePatterns": [
"node_modules/**",
"**/dist/**"
],
"plugins": ["@typescript-eslint", "sonarjs", "etc", "redundant-undefined", "no-null"],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"eqeqeq": "error",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-explicit-any": "error",
Expand All @@ -51,6 +52,7 @@
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"no-null/no-null": "error",

/**
* Having a semicolon helps the optimizer interpret your code correctly.
Expand All @@ -71,10 +73,8 @@
/**
* Just for beauty
*/
"quotes": [
"warn", "single"
],
"import/no-duplicates" : "error",
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"import/no-duplicates": "error",
"import/no-unresolved": "off",
"import/default": "off",
"import/no-named-as-default-member": "off",
Expand All @@ -85,6 +85,7 @@
"sonarjs/no-small-switch": "off",
"etc/no-commented-out-code": "error",
"etc/no-deprecated": "off",
"redundant-undefined/redundant-undefined": "error"
"redundant-undefined/redundant-undefined": "error",
"import/no-extraneous-dependencies": "error"
}
}
}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@
"lint:fix": "eslint . --fix --ext js,ts,tsx",
"watch": "vite build -w"
},
"dependencies": {},
"devDependencies": {
"@podman-desktop/api": "^1.6.3",
"@podman-desktop/api": "^0.0.202401191125-9c1aea6",
"@typescript-eslint/eslint-plugin": "^6.16.0",
"@typescript-eslint/parser": "^6.16.0",
"@vitest/coverage-v8": "^1.1.0",
Expand All @@ -94,11 +93,12 @@
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-etc": "^2.0.3",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-redundant-undefined": "^1.0.0",
"eslint-plugin-sonarjs": "^0.23.0",
"prettier": "^3.1.1",
"typescript": "5.3.3",
"vite": "^5.0.10",
"vitest": "^1.1.0"
}
}
}
13 changes: 9 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@
dependencies:
esquery "^1.4.0"

"@podman-desktop/api@^1.6.3":
version "1.6.3"
resolved "https://registry.yarnpkg.com/@podman-desktop/api/-/api-1.6.3.tgz#8a7fe63a9faeadfb69544f9a0b84918d33eded2c"
integrity sha512-l0gaQtZcR1cP4VWaOCRBNmF0WJKPCT97oQ+wR5cy2HXbk1wz10wDX7nGcUw5iQ8Gb85bvMss5I81B7LnR9J+EQ==
"@podman-desktop/api@^0.0.202401191125-9c1aea6":
version "0.0.202401191125-9c1aea6"
resolved "https://registry.npmjs.org/@podman-desktop/api/-/api-0.0.202401191125-9c1aea6.tgz"
integrity sha512-4oMQmfCXpnQrnEihe1yn3mGZULle4a0MlXdyOZ4vlKx04e2rZK7jFI45EjU6L64pwN0bGHWLFRI12Ut2sAirHQ==

"@rollup/[email protected]":
version "4.9.1"
Expand Down Expand Up @@ -1136,6 +1136,11 @@ eslint-plugin-import@^2.29.1:
semver "^6.3.1"
tsconfig-paths "^3.15.0"

eslint-plugin-no-null@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/eslint-plugin-no-null/-/eslint-plugin-no-null-1.0.2.tgz#1236a812391390a1877ad4007c26e745341c951f"
integrity sha512-uRDiz88zCO/2rzGfgG15DBjNsgwWtWiSo4Ezy7zzajUgpnFIqd1TjepKeRmJZHEfBGu58o2a8S0D7vglvvhkVA==

eslint-plugin-redundant-undefined@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/eslint-plugin-redundant-undefined/-/eslint-plugin-redundant-undefined-1.0.0.tgz#b5c851b0f6fcd74fa67c300579b6e59e30b5d131"
Expand Down

0 comments on commit b06eba3

Please sign in to comment.