[리액트] eslint.json

Jang Seok Woo·2022년 2월 28일
0

리액트

목록 보기
40/58
{
    "env": {
      "browser": true,
      "node": true,
      "commonjs": true,
      "es6": true
    },
    "extends": ["prettier", "react-app"],
    "parserOptions": {
      "ecmaFeatures": {
        "jsx": true
      },
      "ecmaVersion": 2021,
      "sourceType": "module"
    },
    "plugins": ["react", "react-hooks"],
    "rules": {
      "camelcase": "off",
      "prettier/prettier": 0,
      "no-unused-vars": "warn",
      "no-console": "warn",
      "no-plusplus": "off",
      "no-shadow": "off",
      "vars-on-top": "off",
      "no-underscore-dangle": "off",
      "comma-dangle": "off",
      "func-names": "off",
      "prefer-template": "off",
      "no-nested-ternary": "off",
      "max-classes-per-file": "off",
      "consistent-return": "off",
      "no-restricted-syntax": ["off", "ForOfStatement"],
      "prefer-arrow-callback": "error",
      "require-await": "error",
      "no-param-reassign": ["error", { "props": false }],
      "max-len": "off",
      "no-unused-expressions": "off",
      "import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
      "react-hooks/exhaustive-deps": "warn"
    },
    "settings": {
      "react": {
        "createClass": "createReactClass",
        "pragma": "React",
        "version": "detect"
      }
    }
  }
profile
https://github.com/jsw4215

0개의 댓글