Skip to content
This repository was archived by the owner on Mar 29, 2020. It is now read-only.

Commit 161dfd4

Browse files
committed
feat(typescript): adjust spaced-comment and ts/no-namespace rules
1 parent f3c2ebd commit 161dfd4

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

typescript.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,21 @@ module.exports = {
1616
'no-undef': 'off', // conflicts with typescript
1717
'no-unused-vars': 'off', // conflicts with typescript
1818
'no-useless-constructor': 'off', // conflicts with typescript
19+
'spaced-comment': [
20+
'error',
21+
'always',
22+
{
23+
line: {
24+
exceptions: ['-', '+'],
25+
markers: ['=', '!', '/'], // space here to support sprockets directives
26+
},
27+
block: {
28+
exceptions: ['-', '+'],
29+
markers: ['=', '!'], // space here to support sprockets directives
30+
balanced: true,
31+
},
32+
},
33+
],
1934
strict: 'off', // conflicts with typescript
2035
// https://github.com/benmosher/eslint-plugin-import
2136
'import/extensions': [
@@ -48,7 +63,7 @@ module.exports = {
4863
'typescript/interface-name-prefix': 'error',
4964
'typescript/no-angle-bracket-type-assertion': 'error',
5065
'typescript/no-explicit-any': 'error',
51-
'typescript/no-namespace': 'error',
66+
'typescript/no-namespace': ['error', {allowDefinitionFiles: true}],
5267
'typescript/no-triple-slash-reference': 'error',
5368
'typescript/no-unused-vars': 'error',
5469
'typescript/prefer-namespace-keyword': 'error',

0 commit comments

Comments
 (0)