-
Notifications
You must be signed in to change notification settings - Fork 25
/
.eslintrc.js
53 lines (53 loc) · 1.22 KB
/
.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
44
45
46
47
48
49
50
51
52
53
module.exports = {
extends: ["@stellar/eslint-config"],
env: {
es2020: true,
},
globals: {
chrome: "readonly",
DEV_SERVER: "readonly",
},
ignorePatterns: [
"dist/",
"node_modules/",
"build/",
"__mocks__/",
"e2e-tests/",
],
overrides: [
{
files: ["webpack.*.js"],
rules: {
"import/no-extraneous-dependencies": [0, { devDependencies: false }],
},
},
],
rules: {
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"no-console": "off",
"react/jsx-filename-extension": ["error", { extensions: [".tsx", ".jsx"] }],
"jsdoc/newline-after-description": "off",
"max-len": "off",
"no-await-in-loop": "off",
"import/no-unresolved": [
"error",
{
// Ignore Webpack query parameters, not supported by eslint-plugin-import
// https://github.com/import-js/eslint-plugin-import/issues/2562
ignore: ["\\?react$"],
},
],
},
settings: {
"import/resolver": {
typescript: {},
node: {
extensions: [".ts", ".tsx"],
moduleDirectory: ["node_modules", "src"],
},
},
},
};