Skip to content

Commit

Permalink
Format JS output for EGO review
Browse files Browse the repository at this point in the history
  • Loading branch information
swsnr committed Nov 15, 2023
1 parent f9a2af0 commit 9936b79
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .eslintrc.dist.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Liniting rules to fix up JS formatting for EGO review.
module.exports = {
extends: [],
parserOptions: {
ecmaVersion: 2022,
sourceType: "module",
},
rules: {
"lines-between-class-members": ["error", "always"],
"padding-line-between-statements": [
"error",
{ blankLine: "always", prev: "*", next: "class" },
{ blankLine: "always", prev: "*", next: "function" },
{ blankLine: "always", prev: "*", next: "return" },
{ blankLine: "always", prev: "*", next: "export" },
{ blankLine: "always", prev: "*", next: "multiline-const" },
],
},
ignorePatterns: [],
};
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dist: compile
mkdir -p ./dist/
mkdir -p ./build/ui
cp -t ./build/ui $(UIDEFS)
npm run dist:format
gnome-extensions pack --force --out-dir dist build \
--extra-source=../metadata.json \
--extra-source=ui \
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"scripts": {
"generate:gir-types": "ts-for-gir generate",
"compile": "tsc --build tsconfig.json",
"dist:format": "eslint --no-eslintrc --config .eslintrc.dist.cjs --fix build/",
"check:types": "tsc --build tsconfig.types.json",
"lint": "eslint .",
"format": "prettier ."
Expand Down

0 comments on commit 9936b79

Please sign in to comment.