美文网首页
eslintrc .eslintrc.js

eslintrc .eslintrc.js

作者: 51bitquant | 来源:发表于2020-06-29 18:31 被阅读0次

    module.exports = {
    root: true,
    parser: "@typescript-eslint/parser",
    plugins: ["@typescript-eslint", "react-hooks"],
    extends: [
    "eslint:recommended",
    "plugin:@typescript-eslint/eslint-recommended",
    "plugin:@typescript-eslint/recommended",
    "prettier",
    "prettier/@typescript-eslint",
    "prettier/react",
    "plugin:react/recommended",
    ],
    settings: {
    react: {
    version: "detect",
    pargma: "React",
    },
    },
    rules: {
    "react/prop-types": "off",
    "react-hooks/rules-of-hooks": "error",
    "react-hooks/exhaustive-deps": "warn",
    "react/self-closing-comp": "warn",
    },
    };

    相关文章

      网友评论

          本文标题:eslintrc .eslintrc.js

          本文链接:https://www.haomeiwen.com/subject/ybjafktx.html