forked from microsoft/botbuilder-js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
78 lines (78 loc) · 1.7 KB
/
.eslintrc.json
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"env": {
"es6": true
},
"extends": [
"eslint:recommended",
"plugin:security/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"prettier",
"plugin:prettier/recommended",
"prettier/@typescript-eslint",
"plugin:jsdoc/recommended"
],
"ignorePatterns": [
"_ts3.4/",
"dist/",
"lib/",
"node_modules/"
],
"overrides": [
{
"files": ["*.test.js", "*.test.ts"],
"env": {
"mocha": true,
"node": true
},
"rules": {
"@typescript-eslint/no-var-requires": 0
}
},
{
"files": ["babel.config.js", "webpack.config.js"],
"globals": {
"__dirname": true,
"module": true,
"require": true
},
"rules": {
"@typescript-eslint/no-var-requires": 0
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true
}
},
"plugins": [
"@typescript-eslint",
"prettier",
"jsdoc",
"security"
],
"rules": {
"@typescript-eslint/no-unused-vars": ["error", {
"args": "after-used",
"argsIgnorePattern": "^_",
"caughtErrors": "all",
"caughtErrorsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}],
"jsdoc/require-jsdoc": ["error", {
"publicOnly": true,
"enableFixer": false
}],
"jsdoc/require-param": ["error"],
"jsdoc/require-param-type": ["error"],
"jsdoc/require-returns": ["error"],
"jsdoc/require-returns-type": ["error"],
"no-unused-vars": "off",
"no-var": "error",
"prettier/prettier": "error"
}
}