forked from tahowallet/extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (35 loc) · 1.02 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
module.exports = {
extends: [
"airbnb",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
],
globals: {
document: "readonly",
window: "readonly",
},
rules: {
"react/jsx-one-expression-per-line": [0],
"react/jsx-filename-extension": [0],
"import/no-extraneous-dependencies": [
"error",
// Don't slap build files for importing devDependencies.
{ devDependencies: ["!+(src/api|ui)/**/*.+(ts|js)"] },
],
"import/extensions": [
"error",
{
ts: "never",
},
],
// Replace a couple of base ESLint rules defined by airbnb with TypeScript
// extensions that understand certain TypeScript-specific features.
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": ["error"],
},
ignorePatterns: ["dist/", "extension-reload.js"],
parser: "@typescript-eslint/parser",
}