File tree Expand file tree Collapse file tree 4 files changed +23
-6
lines changed Expand file tree Collapse file tree 4 files changed +23
-6
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ module.exports = {
2
2
root : true ,
3
3
extends : [
4
4
'airbnb-base' ,
5
- 'plugin:jest/all'
5
+ 'plugin:jest/all' ,
6
+ 'plugin:sonarjs/recommended' ,
7
+ ] ,
8
+ plugins : [
9
+ 'sonarjs' ,
6
10
] ,
7
- plugins : [ ] ,
8
11
env : {
9
12
node : true ,
10
13
} ,
11
14
rules : {
12
15
'implicit-arrow-linebreak' : 0 ,
13
- 'jest/no-hooks' : 0 ,
14
- 'no-param-reassign' : 0 ,
15
- 'no-underscore-dangle' : 0 ,
16
16
'import/no-extraneous-dependencies' : [
17
17
'error' ,
18
18
{
@@ -22,6 +22,14 @@ module.exports = {
22
22
'test/**/*.js'
23
23
]
24
24
}
25
- ]
25
+ ] ,
26
+ 'jest/no-hooks' : 0 ,
27
+ 'no-param-reassign' : 0 ,
28
+ 'no-underscore-dangle' : 0 ,
29
+ 'sonarjs/cognitive-complexity' : 1 ,
30
+ 'sonarjs/no-duplicate-string' : 0 ,
31
+ 'sonarjs/no-duplicated-branches' : 1 ,
32
+ 'sonarjs/no-identical-functions' : 0 ,
33
+ 'sonarjs/no-same-line-conditional' : 0
26
34
} ,
27
35
} ;
Original file line number Diff line number Diff line change 1
1
# Change Log
2
2
3
3
## [ Unreleased]
4
+ ### Added
5
+ - Technical - Add SonarJS linter for complexity issues.
6
+
4
7
### Changed
5
8
- Technical - Upgrade ` mongoose ` devDependency to the latest version.
6
9
- Performance optimization - In a request with no smart fields, do not return fields that are hidden from the UI.
Original file line number Diff line number Diff line change 43
43
"eslint-config-airbnb-base" : " 14.0.0" ,
44
44
"eslint-plugin-import" : " 2.18.2" ,
45
45
"eslint-plugin-jest" : " 23.0.4" ,
46
+ "eslint-plugin-sonarjs" : " 0.5.0" ,
46
47
"jest" : " 24.9.0" ,
47
48
"mongoose" : " 5.8.1" ,
48
49
"mongoose-fixture-loader" : " 1.0.2" ,
Original file line number Diff line number Diff line change 2146
2146
dependencies :
2147
2147
" @typescript-eslint/experimental-utils" " ^2.5.0"
2148
2148
2149
+
2150
+ version "0.5.0"
2151
+ resolved "https://registry.yarnpkg.com/eslint-plugin-sonarjs/-/eslint-plugin-sonarjs-0.5.0.tgz#ce17b2daba65a874c2862213a9e38e8986ad7d7d"
2152
+ integrity sha512-XW5MnzlRjhXpIdbULC/qAdJYHWw3rRLws/DyawdlPU/IdVr9AmRK1r2LaCvabwKOAW2XYYSo3kDX58E4MrB7PQ==
2153
+
2149
2154
eslint-scope@^5.0.0 :
2150
2155
version "5.0.0"
2151
2156
resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.0.0.tgz#e87c8887c73e8d1ec84f1ca591645c358bfc8fb9"
You can’t perform that action at this time.
0 commit comments