UNPKG

create-apppaaaul

Version:

Create projects as paaauldev would

102 lines (99 loc) 3.13 kB
const { resolve } = require("node:path"); const project = resolve(__dirname, "tsconfig.json"); module.exports = { root: true, plugins: ["prettier", "import"], extends: [ require.resolve("@vercel/style-guide/eslint/typescript"), require.resolve("@vercel/style-guide/eslint/react"), require.resolve("@vercel/style-guide/eslint/next"), "plugin:prettier/recommended", ], parserOptions: { ecmaVersion: "latest", project, }, settings: { "import/resolver": { typescript: { project, }, }, }, rules: { "prettier/prettier": [ "warn", { printWidth: 100, trailingComma: "all", tabWidth: 2, semi: true, singleQuote: false, bracketSpacing: true, arrowParens: "always", endOfLine: "auto", plugins: ["prettier-plugin-tailwindcss"], }, ], "import/no-default-export": "off", "import/order": [ "warn", { groups: ["type", "builtin", "object", "external", "internal", "parent", "sibling", "index"], pathGroups: [ { pattern: "~/**", group: "external", position: "after", }, ], "newlines-between": "always", }, ], "padding-line-between-statements": [ "warn", { blankLine: "always", prev: "*", next: ["return", "export"] }, { blankLine: "always", prev: ["const", "let", "var"], next: "*" }, { blankLine: "any", prev: ["const", "let", "var"], next: ["const", "let", "var"] }, ], "no-console": "warn", "react/prop-types": "off", "react/jsx-uses-react": "off", "react/react-in-jsx-scope": "off", "react/self-closing-comp": "warn", "react/jsx-sort-props": [ "warn", { callbacksLast: true, shorthandFirst: true, noSortAlphabetically: false, reservedFirst: true, }, ], "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/no-shadow": "off", "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/require-await": "off", "@typescript-eslint/no-floating-promises": "off", "@typescript-eslint/no-confusing-void-expression": "off", "@typescript-eslint/no-unused-vars": [ "warn", { args: "after-used", ignoreRestSiblings: false, argsIgnorePattern: "^_.*?$", }, ], "@next/next/no-img-element": "off", "jsx-a11y/no-static-element-interactions": "off", "jsx-a11y/click-events-have-key-events": "off", "@typescript-eslint/no-unsafe-call": "off", "@typescript-eslint/no-unsafe-member-access": "off", "@typescript-eslint/no-misused-promises": "off", "@typescript-eslint/no-unnecessary-condition": "off", "@typescript-eslint/no-unsafe-assignment": "off", "@typescript-eslint/no-unsafe-return": "off", "@typescript-eslint/no-unsafe-argument": "off", "@typescript-eslint/restrict-template-expressions": "off", }, };