Skip to content

Commit

Permalink
feat: add some new rules
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Oct 14, 2016
1 parent 856e1ad commit cf4db0b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@ module.exports = {
'array-callback-return': 'error',
'brace-style': ['error', '1tbs'],
'camelcase': 'error',
'comma-dangle': 'off',
'comma-spacing': ['error', {after: true, before: false}],
'comma-style': 'error',
'curly': ['error', 'multi-line', 'consistent'],
'eol-last': 'error',
'eqeqeq': ['error', 'allow-null'],
'func-call-spacing': 'error',
'indent': ['error', 4, {SwitchCase: 1}],
'key-spacing': 'error',
'keyword-spacing': 'error',
'new-parens': 'error',
'no-array-constructor': 'error',
'no-cond-assign': 'error',
'no-console': 'error',
'no-constant-condition': ['error', {checkLoops: false}],
Expand All @@ -40,12 +43,17 @@ module.exports = {
'no-empty-character-class': 'error',
'no-ex-assign': 'error',
'no-extra-boolean-cast': 'error',
'no-extra-label': 'error',
'no-extra-semi': 'error',
'no-func-assign': 'error',
'no-invalid-regexp': 'error',
'no-irregular-whitespace': 'error',
'no-label-var': 'error',
'no-lone-blocks': 'error',
'no-mixed-spaces-and-tabs': 'error',
'no-multiple-empty-lines': ['error', {max: 2, maxEOF: 1, maxBOF: 1}],
'no-new-object': 'error',
'no-new-wrappers': 'error',
'no-obj-calls': 'error',
'no-regex-spaces': 'error',
'no-shadow-restricted-names': 'error',
Expand All @@ -57,6 +65,8 @@ module.exports = {
'no-unexpected-multiline': 'error',
'no-unreachable': 'error',
'no-unsafe-negation': 'error',
'no-unused-expressions': 'error',
'no-with': 'error',
'object-curly-spacing': ['error', 'never'],
'quotes': ['error', 'single', 'avoid-escape'],
'semi': 'error',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"homepage": "https://github.com/cheminfo/eslint-config#readme",
"peerDependencies": {
"eslint": "^3.1.1",
"eslint": "^3.3.0",
"eslint-plugin-no-only-tests": "^1.1.0"
}
}

0 comments on commit cf4db0b

Please sign in to comment.