forked from api-platform/api-doc-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
49 lines (45 loc) · 1.21 KB
/
.eslintrc.cjs
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
"use strict";
module.exports = {
env: {
browser: true,
commonjs: true,
es6: true,
jest: true,
node: true
},
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 7,
sourceType: "module",
project: ["./tsconfig.eslint.json"]
},
plugins: ["@typescript-eslint"],
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/recommended",
"plugin:import/typescript",
"prettier",
"plugin:prettier/recommended"
],
rules: {
"prettier/prettier": "error",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-empty-interface": [
"error",
{ allowSingleExtends: true }
],
"@typescript-eslint/no-use-before-define": ["error", { functions: false }],
"@typescript-eslint/no-explicit-any": [0],
"import/no-named-as-default-member": [0],
// Waiting for https://github.com/import-js/eslint-plugin-import/issues/2111
//"import/extensions": ["error", "ignorePackages"]
},
settings: {
"import/resolver": {
typescript: true,
node: true
}
}
};