Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
JezerM committed Jul 14, 2024
1 parent b7409b4 commit 993aa30
Show file tree
Hide file tree
Showing 7 changed files with 108 additions and 590 deletions.
57 changes: 0 additions & 57 deletions .eslintrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,6 @@ jobs:
-
name: Run ESLint
run: npm run lint
-
name: Run ESLint for themes
run: npm run lint:themes

prettier:

Expand Down
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ INSTALL_BASH_COMPLETION = argv.INSTALL_BASH_COMPLETION;
// Some global variables

let nody_path = path.join(INSTALL_ROOT, "opt/nody-greeter");
let bin_path = path.join(INSTALL_ROOT, PREFIX, "bin");
// let bin_path = path.join(INSTALL_ROOT, PREFIX, "bin");
let lightdm_path = path.join(INSTALL_ROOT, "etc/lightdm");
let webg_path = path.join(INSTALL_ROOT, PREFIX, "share/web-greeter");
let xgreeters_path = path.join(INSTALL_ROOT, PREFIX, "share/xgreeters");
Expand Down
29 changes: 29 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import globals from "globals";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
files: ["src/**/*.ts"],
rules: {
semi: "error",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/explicit-member-accessibility": "error",
"@typescript-eslint/no-var-requires": "off",
},
},
{
languageOptions: {
sourceType: "module",
globals: {
...globals.node,
},
},
},
{
ignores: ["themes/", "out/", "build/unpacked", "build/nody-asar"],
}
);
Loading

0 comments on commit 993aa30

Please sign in to comment.