Skip to content

Commit

Permalink
feat: add no-only-tests rule
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Jul 26, 2016
1 parent 69e3703 commit 20ef906
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ module.exports = {
node: true
},
extends: 'eslint:recommended',
plugins: [
'no-only-tests'
],
rules: {
'brace-style': ['error', '1tbs'],
'camelcase': 'error',
Expand All @@ -23,7 +26,8 @@ module.exports = {
'space-before-blocks': 'error',
'space-before-function-paren': ['error', {anonymous: 'always', named: 'never'}],
'space-in-parens': ['error', 'never'],
'space-infix-ops': ['error'],
'space-unary-ops': ['error']
'space-infix-ops': 'error',
'space-unary-ops': 'error',
'no-only-tests/no-only-tests': 'error'
}
};
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@
"bugs": {
"url": "https://github.com/cheminfo/eslint-config/issues"
},
"homepage": "https://github.com/cheminfo/eslint-config#readme"
"homepage": "https://github.com/cheminfo/eslint-config#readme",
"dependencies": {
"eslint-plugin-no-only-tests": "^1.1.0"
}
}

0 comments on commit 20ef906

Please sign in to comment.