Skip to content

Commit 9c94c72

Browse files
authored
Add to recommended rules, not to this own project linter rules.
1 parent 49b0564 commit 9c94c72

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

.eslintrc.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,13 @@ module.exports = {
88
node: true
99
},
1010
extends: [require.resolve('./lib/configs/recommended'), 'plugin:eslint-plugin/all'],
11-
plugins: ['eslint-plugin', 'no-only-tests'],
11+
plugins: ['eslint-plugin'],
1212
rules: {
1313
'import/no-commonjs': 'off',
1414
'filenames/match-regex': 'off',
1515
'i18n-text/no-en': 'off',
1616
'eslint-plugin/prefer-placeholders': 'off',
1717
'eslint-plugin/test-case-shorthand-strings': 'off',
18-
'eslint-plugin/require-meta-docs-url': 'off',
19-
'no-only-tests/no-only-tests': [
20-
'error',
21-
{
22-
block: ['describe', 'it', 'context', 'test', 'tape', 'fixture', 'serial', 'suite']
23-
}
24-
]
18+
'eslint-plugin/require-meta-docs-url': 'off'
2519
}
2620
}

lib/configs/recommended.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = {
88
env: {
99
es6: true
1010
},
11-
plugins: ['github', 'prettier', 'eslint-comments', 'import', 'filenames', 'i18n-text'],
11+
plugins: ['github', 'prettier', 'eslint-comments', 'import', 'filenames', 'i18n-text', 'no-only-tests'],
1212
rules: {
1313
'constructor-super': 'error',
1414
'eslint-comments/disable-enable-pair': 'off',
@@ -85,6 +85,12 @@ module.exports = {
8585
'no-new-symbol': 'error',
8686
'no-obj-calls': 'error',
8787
'no-octal': 'error',
88+
'no-only-tests/no-only-tests': [
89+
'error',
90+
{
91+
block: ['describe', 'it', 'context', 'test', 'tape', 'fixture', 'serial', 'suite']
92+
}
93+
],
8894
'no-redeclare': 'error',
8995
'no-regex-spaces': 'error',
9096
'no-return-assign': 'error',

0 commit comments

Comments
 (0)