|
31 | 31 | 'no-inner-declarations': 'error',
|
32 | 32 | 'no-invalid-regexp': 'error',
|
33 | 33 | 'no-irregular-whitespace': 'error',
|
34 |
| - 'no-negated-in-lhs': 'error', |
35 | 34 | 'no-obj-calls': 'error',
|
36 | 35 | 'no-prototype-builtins': 'off',
|
37 | 36 | 'no-regex-spaces': 'error',
|
38 | 37 | 'no-sparse-arrays': 'error',
|
39 | 38 | 'no-unexpected-multiline': 'error',
|
40 | 39 | 'no-unreachable': 'warn',
|
41 | 40 | 'no-unsafe-finally': 'error',
|
| 41 | + 'no-unsafe-negation': 'error', |
42 | 42 | 'use-isnan': 'error',
|
43 | 43 | 'valid-jsdoc': ['warn', { 'requireReturn': false, 'requireParamDescription': false, 'requireReturnDescription': false }],
|
44 | 44 | 'valid-typeof': 'error',
|
|
63 | 63 | 'no-extra-bind': 'warn',
|
64 | 64 | 'no-fallthrough': 'error',
|
65 | 65 | 'no-floating-decimal': 'warn',
|
| 66 | + 'no-global-assign': 'warn', |
66 | 67 | // Enabled by grunt for AMD modules: 'no-implicit-globals': 'error',
|
67 | 68 | 'no-implied-eval': 'error',
|
68 | 69 | 'no-invalid-this': 'error',
|
|
71 | 72 | 'no-loop-func': 'error',
|
72 | 73 | 'no-multi-spaces': 'warn',
|
73 | 74 | 'no-multi-str': 'error',
|
74 |
| - 'no-native-reassign': 'warn', |
75 | 75 | 'no-new-func': 'error',
|
76 | 76 | 'no-new-wrappers': 'error',
|
77 | 77 | 'no-octal': 'error',
|
|
96 | 96 | 'no-delete-var': 'error',
|
97 | 97 | 'no-undef': 'error',
|
98 | 98 | 'no-undef-init': 'error',
|
99 |
| - 'no-unused-vars': ['error', { 'caughtErrors': 'none', 'argsIgnorePattern': "(e|event)" }], |
| 99 | + 'no-unused-vars': ['error', { 'caughtErrors': 'none' }], |
100 | 100 |
|
101 | 101 | // === Stylistic Issues ===
|
102 | 102 | 'array-bracket-spacing': 'warn',
|
|
108 | 108 | 'computed-property-spacing': 'error',
|
109 | 109 | 'consistent-this': 'off',
|
110 | 110 | 'eol-last': 'off',
|
| 111 | + 'func-call-spacing': ['warn', 'never'], |
111 | 112 | 'func-names': 'off',
|
112 | 113 | 'func-style': 'off',
|
113 | 114 | // indent currently not doing well with our wrapping style, so disabled.
|
|
140 | 141 | 'no-nested-ternary': 'warn',
|
141 | 142 | 'no-new-object': 'off',
|
142 | 143 | 'no-plusplus': 'off',
|
143 |
| - 'no-spaced-func': 'warn', |
| 144 | + 'no-tabs': 'error', |
144 | 145 | 'no-ternary': 'off',
|
145 | 146 | 'no-trailing-spaces': 'error',
|
146 | 147 | 'no-underscore-dangle': 'off',
|
|
168 | 169 | 'spaced-comment': 'warn',
|
169 | 170 | 'unicode-bom': 'error',
|
170 | 171 | 'wrap-regex': 'off',
|
| 172 | + |
| 173 | + // === Deprecations === |
| 174 | + "no-restricted-properties": ['warn', { |
| 175 | + 'object': 'M', |
| 176 | + 'property': 'str', |
| 177 | + 'message': 'Use AMD module "core/str" or M.util.get_string()' |
| 178 | + }], |
171 | 179 | }
|
172 | 180 | }
|
0 commit comments