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 = {
77 ] ,
88 plugins : [
99 // Enable plugins that are not natively supported by Code Climate. Otherwise results in build errors.
10+ 'eslint-plugin-bestpractices' ,
1011 'eslint-plugin-deprecate' ,
1112 'eslint-plugin-sonarjs'
1213 ] ,
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
44
55Utilizes the following plugins:
66
7+ - [ eslint-plugin-bestpractices] ( https://github.com/skye2k2/eslint-plugin-bestpractices )
78 - [ eslint-plugin-deprecate] ( https://github.com/AlexMost/eslint-plugin-deprecate )
89 - [ eslint-plugin-html] ( https://github.com/BenoitZugmeyer/eslint-plugin-html )
910 - [ eslint-plugin-import] ( https://github.com/benmosher/eslint-plugin-import )
@@ -32,6 +33,7 @@ Utilizes the following plugins:
3233 'tree'
3334 ],
3435 plugins: [
36+ 'eslint-plugin-bestpractices',
3537 'eslint-plugin-deprecate',
3638 'eslint-plugin-sonarjs'
3739 ]
Original file line number Diff line number Diff line change 11/* Example of a broken JSON file that should trigger the additional rules contained in ./index.js */
22
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+
38// fixMe: Actually make this work
49// todo: Add documentation
510// Hack: Note that these work, regardless of case
Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ module.exports = {
4343 * @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.
4444 */
4545 plugins : [
46+ // 'eslint-plugin-bestpractices',
4647 // 'eslint-plugin-deprecate',
4748 'eslint-plugin-html' ,
4849 'eslint-plugin-jsdoc' ,
@@ -92,6 +93,8 @@ module.exports = {
9293 'object-curly-spacing' : 'off' ,
9394 'semi' : [ 'error' , 'always' ] ,
9495
96+ 'bestpractices/no-eslint-disable' : 'warn' ,
97+
9598 'sonarjs/cognitive-complexity' : 'warn' ,
9699 'sonarjs/max-switch-cases' : 'warn' ,
97100 'sonarjs/no-all-duplicated-branches' : 'warn' ,
Original file line number Diff line number Diff line change 11{
22 "name" : " eslint-config-tree" ,
3- "version" : " 1.0.13 " ,
3+ "version" : " 1.0.14 " ,
44 "description" : " Shared Tree configuration that contains overrides and enhancements on top of the base frontier configuration." ,
55 "main" : " index.js" ,
66 "repository" : {
2121 "eslint" : " ^5" ,
2222 "eslint-config-standard" : " ^12" ,
2323 "eslint-config-standard-react" : " ^7" ,
24+ "eslint-plugin-bestpractices" : " git+https://github.com/skye2k2/eslint-plugin-bestpractices.git" ,
2425 "eslint-plugin-deprecate" : " ^0.5" ,
2526 "eslint-plugin-html" : " ^4" ,
2627 "eslint-plugin-import" : " ^2" ,
You can’t perform that action at this time.
0 commit comments