This commit is contained in:
2024-11-09 04:17:26 -05:00
parent 9d89825d91
commit 6d6e63ea0d
13 changed files with 180 additions and 24 deletions
+43
View File
@@ -0,0 +1,43 @@
// eslint.config.js
const prettierConfig = require("./prettier.config.js");
module.exports = {
extends: ["oclif", "oclif-typescript", "prettier"],
// Ignore specific folders to avoid unnecessary linting
ignores: ["node_modules", "dist", "build"],
// Specify the files to apply ESLint to
files: ["*.js", "*.jsx", "*.ts", "*.tsx"],
languageOptions: {
ecmaVersion: 2021,
sourceType: "module",
},
plugins: {
prettier: require("eslint-plugin-prettier"),
},
rules: {
...require("eslint-config-prettier").rules, // Disable conflicting ESLint rules
"prettier/prettier": ["warn", prettierConfig], // Use Prettier as a rule
"no-restricted-syntax": "off",
"padding-line-between-statements": [
"error",
{
blankLine: "always",
prev: "block",
next: "*",
},
{
blankLine: "always",
prev: "block-like",
next: "*",
},
],
},
// Set environments globally
languageOptions: {
globals: {
browser: true,
node: true,
es2021: true,
},
},
};