UNPKG

js-mvc-app

Version:

A CLI tool to scaffold complete Node.js MVC projects with TypeScript, just like Laravel

60 lines 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getESLintConfig = getESLintConfig; exports.getPrettierConfig = getPrettierConfig; exports.getPrettierIgnore = getPrettierIgnore; function getESLintConfig() { return `{ "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 2020, "sourceType": "module", "project": "./tsconfig.json" }, "plugins": ["@typescript-eslint", "prettier"], "extends": [ "eslint:recommended", "@typescript-eslint/recommended", "prettier" ], "rules": { "prettier/prettier": "error", "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }], "@typescript-eslint/explicit-function-return-type": "off", "@typescript-eslint/explicit-module-boundary-types": "off", "@typescript-eslint/no-explicit-any": "warn", "@typescript-eslint/no-non-null-assertion": "warn", "prefer-const": "error", "no-var": "error" }, "env": { "node": true, "es6": true } } `; } function getPrettierConfig() { return `{ "semi": true, "trailingComma": "es5", "singleQuote": true, "printWidth": 80, "tabWidth": 2, "useTabs": false, "bracketSpacing": true, "arrowParens": "avoid" } `; } function getPrettierIgnore() { return `dist/ node_modules/ coverage/ logs/ *.log .env .env.* `; } //# sourceMappingURL=linting.js.map