-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
38 lines (38 loc) · 1004 Bytes
/
.eslintrc.json
File metadata and controls
38 lines (38 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{
"root": true,
// "parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"es6": true,
"node": true
},
"extends": [
"airbnb",
"prettier",
"eslint:recommended"
// "plugin:@typescript-eslint/eslint-recommended",
// "plugin:@typescript-eslint/recommended",
// "plugin:node/recommended" // hilangkan jika error eslint muncul
],
"plugins": [
"prettier"
// "@typescript-eslint"
],
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"rules": {
"prettier/prettier": "error",
"no-unused-vars": "warn",
"no-console": "warn",
"func-names": "warn",
"no-process-exit": "warn",
"object-shorthand": "warn",
"class-methods-use-this": "warn",
"semi": "error",
"comma-dangle": "error",
"no-restricted-syntax": "warn",
"import/prefer-default-export": "warn"
}
}