123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- /*
- * @Author: your name
- * @Date: 2021-11-29 13:45:00
- * @LastEditTime: 2022-04-11 14:48:09
- * @LastEditors: Please set LastEditors
- * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
- * @FilePath: \vue3_ts_init\.eslintrc.js
- */
- module.exports = {
- root: true,
- env: {
- node: true,
- },
- extends: [
- "plugin:vue/vue3-essential",
- "eslint:recommended",
- "@vue/typescript/recommended",
- ],
- parserOptions: {
- ecmaVersion: 2020,
- },
- rules: {
- "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
- "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
- "@typescript-eslint/no-explicit-any": ["off"],
- "@typescript-eslint/no-empty-function": ["off"],
- "no-undef": ["off"],
- "@typescript-eslint/explicit-module-boundary-types": ["off"],
- "@typescript-eslint/no-unused-vars": ["off"],
- "no-self-assign": ["off"],
- "@typescript-eslint/no-var-requires": 0,
- "@typescript-eslint/ban-ts-comment": "off",
- },
- overrides: [
- {
- files: [
- "**/__tests__/*.{j,t}s?(x)",
- "**/tests/unit/**/*.spec.{j,t}s?(x)",
- ],
- env: {
- mocha: true,
- },
- },
- ],
- };
|