Skip to content

Commit c8c0187

Browse files
committed
Turn off previously-not-angry rules
Release version 2.0.6.
1 parent d31c984 commit c8c0187

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

demo/test/snapshots/lint-output.js.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ Generated by [AVA](https://ava.li).
2020
9:1 warning Unexpected 'TODO' comment no-warning-comments␊
2121
10:1 warning Unexpected 'HACK' comment no-warning-comments␊
2222
11:1 warning Unexpected 'HERE BE DRAGONS' comment no-warning-comments␊
23-
21:1 warning JSDoc type missing brace valid-jsdoc␊
2423
21:1 warning Missing JSDoc block description jsdoc/require-description␊
25-
21:1 warning JSDoc @returns declaration present but return expression not available in function jsdoc/require-returns-check␊
2624
21:1 warning Missing JSDoc @param "params" declaration jsdoc/require-param␊
27-
23:0 warning Missing JSDoc @param "a" description jsdoc/require-param-description␊
25+
21:1 warning JSDoc @returns declaration present but return expression not available in function jsdoc/require-returns-check␊
26+
21:1 warning JSDoc type missing brace valid-jsdoc␊
2827
23:0 warning Expected @param names to be "params". Got "a, b" jsdoc/check-param-names␊
29-
23:0 warning The type 'hobject' is undefined jsdoc/no-undefined-types
28+
23:0 warning Missing JSDoc @param "a" description jsdoc/require-param-description
3029
24:0 warning Missing JSDoc @param "b" type jsdoc/require-param-type␊
3130
24:0 warning Missing JSDoc @param "b" description jsdoc/require-param-description␊
3231
25:0 warning Missing JSDoc @returns description jsdoc/require-returns-description␊
3332
25:0 warning Missing JSDoc @returns type jsdoc/require-returns-type␊
34-
30:5 error 'myPromise' is never reassigned. Use 'const' instead prefer-const␊
33+
30:5 warning 'myPromise' is never reassigned. Use 'const' instead prefer-const␊
3534
30:17 warning Avoid creating new promises promise/avoid-new␊
3635
32:1 warning Expected catch() or return promise/catch-or-return␊
3736
33:3 warning Each then() should return a value or throw promise/always-return␊
@@ -40,8 +39,8 @@ Generated by [AVA](https://ava.li).
4039
36:5 error 'forgotToReturn' is not defined no-undef␊
4140
36:21 error Missing semicolon semi␊
4241
38:3 error Missing semicolon semi␊
43-
40:5 error 'variable' is never reassigned. Use 'const' instead prefer-const␊
4442
40:5 error 'variable' is assigned a value but never used no-unused-vars␊
43+
40:5 warning 'variable' is never reassigned. Use 'const' instead prefer-const␊
4544
40:16 warning This conditional operation returns the same value whether the condition is "true" or "false" sonarjs/no-all-duplicated-branches␊
4645
40:17 error Unexpected constant condition no-constant-condition␊
4746
40:25 error Unnecessary use of boolean literals in conditional expression no-unneeded-ternary␊
@@ -54,8 +53,8 @@ Generated by [AVA](https://ava.li).
5453
44:28 error Module path/to/legacyModule is deprecated. Use module x instead deprecate/import␊
5554
46:3 error 'deprecatedFunction' is not defined no-undef␊
5655
46:3 error Function deprecatedFunction is deprecated. Use function x from package y instead deprecate/function␊
57-
47:3 error '$' is not defined no-undef␊
5856
47:3 error Member expression $.each is deprecated. Use native forEach instead deprecate/member-expression␊
57+
47:3 error '$' is not defined no-undef␊
5958
48:3 error Unexpected 'debugger' statement no-debugger␊
6059
6160
/Users/clif/sandbox/frontier/common/eslint-config-tree/index.js␊
@@ -70,6 +69,6 @@ Generated by [AVA](https://ava.li).
7069
6:20 error Trailing comma json/trailing-comma␊
7170
8:3 error End of file expected json/undefined␊
7271
73-
53 problems (26 errors, 27 warnings)␊
74-
6 errors and 1 warning potentially fixable with the `--fix` option.␊
72+
52 problems (24 errors, 28 warnings)␊
73+
4 errors and 3 warnings potentially fixable with the `--fix` option.␊
7574
`
-11 Bytes
Binary file not shown.

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,21 @@ module.exports = {
115115

116116
'jsx-quotes': 'off',
117117

118+
'array-bracket-spacing': 'warn',
119+
'lines-between-class-members': 'warn',
118120
'no-else-return': 'off',
119121
'no-extra-semi': 'error',
120122
'no-shadow': 'warn',
121123
'no-invalid-this': 'off',
122124
'no-warning-comments': ['warn', { 'terms': ['FIXME', 'TODO', 'TO-DO', 'HACK', 'HERE BE DRAGONS'], 'location': 'anywhere' }],
123125
'no-undefined': 'warn',
124126
'no-case-declarations': 'off',
127+
'no-prototype-builtins': 'warn',
128+
'object-curly-newline': 'warn',
125129
'object-curly-spacing': 'off',
126130
'prefer-const': 'warn',
127131
'quote-props': 'off',
132+
'quotes': 'off',
128133
'semi': ['error', 'always'],
129134

130135
'bestpractices/no-eslint-disable': 'warn',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-tree",
3-
"version": "2.0.5",
3+
"version": "2.0.6",
44
"description": "Shared Tree configuration that contains overrides and enhancements on top of the base frontier configuration.",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)