Fakultas Ilmu Komputer UI

.eslintrc.json 913 Bytes
Newer Older
WILLIAM GATES's avatar
WILLIAM GATES committed
1
2
3
4
5
6
7
8
9
10
11
12
{
  "extends": [
    "eslint:recommended",
    "plugin:import/errors",
    "plugin:react/recommended",
    "plugin:jsx-a11y/recommended",
    "prettier",
    "prettier/react"
  ],
  "rules": {
    "react/prop-types": 0,
    "react-hooks/rules-of-hooks": "error",
13
14
15
16
    "no-console": "warn",
    "emotion/no-vanilla": "error",
    "emotion/import-from-emotion": "error",
    "emotion/styled-import": "error"
WILLIAM GATES's avatar
WILLIAM GATES committed
17
18
  },
  "parser": "babel-eslint",
19
  "plugins": ["react", "import", "jsx-a11y", "react-hooks", "emotion"],
WILLIAM GATES's avatar
WILLIAM GATES committed
20
  "parserOptions": {
WILLIAM GATES's avatar
WILLIAM GATES committed
21
    "ecmaVersion": 2019,
WILLIAM GATES's avatar
WILLIAM GATES committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
    "sourceType": "module",
    "ecmaFeatures": {
      "jsx": true
    }
  },
  "env": {
    "es6": true,
    "browser": true,
    "node": true,
    "jest": true
  },
  "settings": {
    "react": {
      "version": "detect"
WILLIAM GATES's avatar
WILLIAM GATES committed
36
37
38
39
40
41
    },
    "import/resolver": {
      "node": {
        "paths": ["src"],
        "extensions": [".js", ".jsx"]
      }
WILLIAM GATES's avatar
WILLIAM GATES committed
42
43
44
    }
  }
}