You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .eslintrc.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,8 @@
2
2
module.exports={
3
3
extends: [
4
4
'eslint-config-frontier',
5
-
'plugin:eslint-plugin-sonarjs/recommended',
5
+
'eslint-config-standard',
6
+
// 'plugin:eslint-plugin-sonarjs/recommended' // Disabled globally, for now, because it is a much higher standard than Tree's existing code currently adheres to. Enable on a case-by-case basis, if you wish.
Copy file name to clipboardExpand all lines: index.js
+41-6Lines changed: 41 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,20 @@
1
1
module.exports={
2
+
3
+
// NOTE: See .eslintrc.js for example `extends` and `plugins` sections, which have to be done individually by each repository because of Code Climate not supporting everything we use.
4
+
2
5
extends: [
3
6
'eslint-config-standard'
4
-
// 'plugin:promise/recommended' // Disabled, because Code Climate does not support promise.
5
-
// 'plugin:eslint-plugin-sonarjs/recommended' // Disabled globally, for now, because it is a much higher standard than Tree's existing code currently adheres to. Enable on a case-by-case basis, if you wish.
6
7
],
8
+
9
+
/**
10
+
* @property {object} env - Base environments to enable associated globals.
11
+
*/
7
12
env: {
8
13
'browser': true,
9
14
'mocha': true
10
15
},
11
16
/**
12
-
* @property globals - Tree set of typical global variables, to avoid numerous `no-undef` errors.
17
+
* @property{object} globals - Tree set of typical global variables, to avoid numerous `no-undef` errors.
13
18
*/
14
19
globals: {
15
20
'__services__': true,
@@ -40,7 +45,7 @@ module.exports = {
40
45
},
41
46
parser: 'babel-eslint',
42
47
/**
43
-
* @property plugins - Tree additional linter plugins.
48
+
* @property{object} plugins - Tree additional linter plugins.
44
49
* @note - Code Climate does not support bestpractices, deprecate, no-only-tests, no-skip-tests, sonarjs, and test-selectors, and breaks if they are present. You will need to add these plugins individually in your .eslintrc.js file.
45
50
*/
46
51
plugins: [
@@ -56,36 +61,65 @@ module.exports = {
56
61
// 'eslint-plugin-test-selectors' // NOTE: Only runs against JSX
57
62
],
58
63
/**
59
-
* @property rules - Tree custom rule and additional linter configuration.
64
+
* @property{object} rules - Tree custom rule and additional linter configuration.
60
65
*/
61
66
rules: {
67
+
'jsdoc/check-access': 'warn',
62
68
'jsdoc/check-alignment': 'warn',
63
69
'jsdoc/check-examples': 'warn',
64
70
'jsdoc/check-indentation': 'off',
65
71
'jsdoc/check-param-names': 'warn',
72
+
'jsdoc/check-property-names': 'warn',
66
73
'jsdoc/check-syntax': 'warn',
67
74
'jsdoc/check-tag-names': 'warn',
68
75
'jsdoc/check-types': 'warn',
76
+
'jsdoc/check-values': 'warn',
77
+
'jsdoc/empty-tags': 'warn',
69
78
'jsdoc/implements-on-classes': 'warn',
70
79
'jsdoc/match-description': 'warn',
71
80
'jsdoc/newline-after-description': 'off',
72
81
'jsdoc/no-types': 'off',
73
-
'jsdoc/no-undefined-types': 'off',// This was broken in eslint-plugin-jsdoc#8 in 2019-06. Disabled, for now. Check back later.
0 commit comments