-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy path.eslintrc.ts
39 lines (38 loc) · 1.33 KB
/
.eslintrc.ts
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
import { off } from "gulp";
import { error } from "jquery";
require('@rushstack/eslint-config/patch/modern-module-resolution');
module.exports = {
extends: ['@microsoft/eslint-config-spfx/lib/profiles/react'],
parserOptions: { tsconfigRootDir: __dirname },
overrides: [
{
files: ["*.test.tsx", "*.tsx"],
"rules": {
"class-name": off,
"export-name": off,
"forin": off,
"label-position": off,
"member-access": error,
"no-arg": off,
"no-console": off,
"no-construct": off,
"no-duplicate-variable": error,
"no-eval": off,
"no-function-expression": error,
"no-internal-module": error,
"no-shadowed-variable": error,
"no-switch-case-fall-through": error,
"no-unnecessary-semicolons": error,
"no-unused-expression": error,
"no-with-statement": error,
"semicolon": error,
"trailing-comma": off,
"typedef": off,
"typedef-whitespace": off,
"use-named-parameter": error,
"variable-name": off,
"whitespace": off
}
}
]
};