chore: Also format eslint files.
bruh
This commit is contained in:
parent
9171e08fcd
commit
c5efb4c55d
3 changed files with 9 additions and 10 deletions
|
@ -11,7 +11,7 @@ npx eslint src
|
|||
popd
|
||||
|
||||
# Formatting step
|
||||
"$(git rev-parse --show-toplevel)"/api/node_modules/.bin/prettier --ignore-unknown --write $(git rev-parse --show-toplevel)/{api,lom}/src/**/*.ts
|
||||
"$(git rev-parse --show-toplevel)"/api/node_modules/.bin/prettier --ignore-unknown --write $(git rev-parse --show-toplevel)/{api,lom}/{eslint.config.js,src/**/*.ts}
|
||||
rustfmt $(git rev-parse --show-toplevel)/gui/src/**/*.rs
|
||||
git update-index --again
|
||||
exit 0
|
|
@ -5,15 +5,15 @@ import tseslint from "typescript-eslint";
|
|||
export default [
|
||||
pluginJs.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
|
||||
|
||||
{
|
||||
languageOptions: {
|
||||
globals: globals.node
|
||||
globals: globals.node,
|
||||
},
|
||||
|
||||
rules: {
|
||||
"no-unused-vars": "off",
|
||||
"@typescript-eslint/no-unused-vars": "off"
|
||||
}
|
||||
"@typescript-eslint/no-unused-vars": "off",
|
||||
},
|
||||
},
|
||||
];
|
||||
];
|
||||
|
|
|
@ -2,7 +2,6 @@ import globals from "globals";
|
|||
import pluginJs from "@eslint/js";
|
||||
import tseslint from "typescript-eslint";
|
||||
|
||||
|
||||
export default [
|
||||
pluginJs.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
|
@ -14,7 +13,7 @@ export default [
|
|||
|
||||
rules: {
|
||||
"@typescript-eslint/no-explicit-any": "off",
|
||||
"no-constant-condition": "warn"
|
||||
}
|
||||
"no-constant-condition": "warn",
|
||||
},
|
||||
},
|
||||
];
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue