// 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, }, }, };