Skip to content

Commit

Permalink
use @fauna/typescript for prettier, eslint configs
Browse files Browse the repository at this point in the history
  • Loading branch information
echo-bravo-yahoo committed Oct 22, 2024
1 parent 63ffffe commit 5f5ce8e
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 29 deletions.
30 changes: 2 additions & 28 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ const compat = new FlatCompat({
allConfig: js.configs.all,
});

import defaultConfig from "@fauna/typescript/config/eslint.config.js";
export default [
{
ignores: ["**/node_modules", ".history"],
},
...defaultConfig,
...compat.extends("plugin:prettier/recommended"),
{
languageOptions: {
Expand All @@ -25,37 +24,12 @@ export default [
},

parser: espree,
ecmaVersion: 2020,
sourceType: "module",

parserOptions: {
requireConfigFile: false,
modules: true,
},
},

rules: {
"no-await-in-loop": "off",
"new-cap": "off",
"quote-props": "off",
"no-negated-condition": "off",
"no-warning-comments": "off",
"spaced-comment": "off",
"max-nested-callbacks": "off",
"no-else-return": "off",
"no-console": "off",
"no-multi-str": "off",
"no-prototype-builtins": "off",

"node/no-unsupported-features": "off",
camelcase: "off",
},
},
{
files: ["test/**/*.mjs"],

rules: {
"no-unused-expressions": "off",
},
},
];
49 changes: 48 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
},
"bugs": "https://github.com/fauna/fauna-shell/issues",
"dependencies": {
"@fauna/typescript": "^0.0.6",
"@inquirer/prompts": "^7.0.0",
"awilix": "^12.0.2",
"chalk": "^5.3.0",
Expand Down

0 comments on commit 5f5ce8e

Please sign in to comment.