File tree Expand file tree Collapse file tree 6 files changed +13
-1
lines changed Expand file tree Collapse file tree 6 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ module.exports = {
7
7
] ,
8
8
plugins : [
9
9
// Enable plugins that are not natively supported by Code Climate. Otherwise results in build errors.
10
+ 'eslint-plugin-bestpractices' ,
10
11
'eslint-plugin-deprecate' ,
11
12
'eslint-plugin-sonarjs'
12
13
] ,
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ This is a shared configuration for all Tree repositories. Contains overrides and
4
4
5
5
Utilizes the following plugins:
6
6
7
+ - [ eslint-plugin-bestpractices] ( https://github.com/skye2k2/eslint-plugin-bestpractices )
7
8
- [ eslint-plugin-deprecate] ( https://github.com/AlexMost/eslint-plugin-deprecate )
8
9
- [ eslint-plugin-html] ( https://github.com/BenoitZugmeyer/eslint-plugin-html )
9
10
- [ eslint-plugin-import] ( https://github.com/benmosher/eslint-plugin-import )
@@ -32,6 +33,7 @@ Utilizes the following plugins:
32
33
'tree'
33
34
],
34
35
plugins: [
36
+ 'eslint-plugin-bestpractices',
35
37
'eslint-plugin-deprecate',
36
38
'eslint-plugin-sonarjs'
37
39
]
Original file line number Diff line number Diff line change 1
1
/* Example of a broken JSON file that should trigger the additional rules contained in ./index.js */
2
2
3
+ /*
4
+ * Since developers have the ability to disable linting in-line, we keep track of the times where this is done.
5
+ */
6
+ // eslint-disable-next
7
+
3
8
// fixMe: Actually make this work
4
9
// todo: Add documentation
5
10
// Hack: Note that these work, regardless of case
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ module.exports = {
43
43
* @note - Code Climate does not support deprecate and sonarjs, and breaks if they are present. You will need to add these plugins individually in your .eslintrc.js file.
44
44
*/
45
45
plugins : [
46
+ // 'eslint-plugin-bestpractices',
46
47
// 'eslint-plugin-deprecate',
47
48
'eslint-plugin-html' ,
48
49
'eslint-plugin-jsdoc' ,
@@ -92,6 +93,8 @@ module.exports = {
92
93
'object-curly-spacing' : 'off' ,
93
94
'semi' : [ 'error' , 'always' ] ,
94
95
96
+ 'bestpractices/no-eslint-disable' : 'warn' ,
97
+
95
98
'sonarjs/cognitive-complexity' : 'warn' ,
96
99
'sonarjs/max-switch-cases' : 'warn' ,
97
100
'sonarjs/no-all-duplicated-branches' : 'warn' ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " eslint-config-tree" ,
3
- "version" : " 1.0.13 " ,
3
+ "version" : " 1.0.14 " ,
4
4
"description" : " Shared Tree configuration that contains overrides and enhancements on top of the base frontier configuration." ,
5
5
"main" : " index.js" ,
6
6
"repository" : {
21
21
"eslint" : " ^5" ,
22
22
"eslint-config-standard" : " ^12" ,
23
23
"eslint-config-standard-react" : " ^7" ,
24
+ "eslint-plugin-bestpractices" : " git+https://github.com/skye2k2/eslint-plugin-bestpractices.git" ,
24
25
"eslint-plugin-deprecate" : " ^0.5" ,
25
26
"eslint-plugin-html" : " ^4" ,
26
27
"eslint-plugin-import" : " ^2" ,
You can’t perform that action at this time.
0 commit comments