-
Notifications
You must be signed in to change notification settings - Fork 71
/
.eslintrc.js
43 lines (43 loc) · 995 Bytes
/
.eslintrc.js
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
39
40
41
42
43
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:react-hooks/recommended",
],
plugins: ["prettier"],
parserOptions: {
ecmaVersion: 2018,
sourceType: "module",
},
settings: {
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"],
},
},
},
rules: {
"no-unused-vars": "error",
"prettier/prettier": "error",
"arrow-body-style": ["error", "as-needed"],
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/naming-convention": [
"error",
{
selector: "interface",
format: ["PascalCase"],
custom: {
regex: "^I[A-Z]|(JQuery|Window)",
match: true,
},
},
],
},
ignorePatterns: [
"packages/*/**/webpack.config.js",
"packages/jvectormap",
"packages/jquery-mousewheel",
"scripts",
],
};