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

Commit 236df49

Browse files
Add support for ESLint 4.0
1 parent 5e4faf3 commit 236df49

File tree

4 files changed

+2
-20
lines changed

4 files changed

+2
-20
lines changed

coding-styles/fixable.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,6 @@ module.exports = {
129129
// This rule aims to ensure having consistent line endings independent of operating system.
130130
'linebreak-style': ['error', 'unix'],
131131

132-
// Require or disallow newlines around directives
133-
// This rule requires or disallows blank newlines around directive prologues. This rule does not
134-
// enforce any conventions about blank newlines between the individual directives. In addition,
135-
// it does not require blank newlines before directive prologues unless they are preceded by a
136-
// comment.
137-
'lines-around-directive': ['warn', {
138-
before: 'always',
139-
after: 'always',
140-
}],
141-
142132
// Require Parens for Constructors
143133
// This rule is aimed at highlighting a lack of convention and increasing code clarity by
144134
// requiring the use of parentheses when invoking a constructor via the new keyword.

coding-styles/torment.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ module.exports = {
3030
// Hit this limit? You are doing it wrong -> refactor!
3131
'max-statements': ['warn', 15],
3232

33-
// Require newline before return statement
34-
// Make your returns obvious!
35-
'newline-before-return': 'warn',
36-
3733
// Disallow use of negated expressions in conditions
3834
'no-negated-condition': 'warn',
3935

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"eslint-plugin-react": "^6.10.3"
1313
},
1414
"devDependencies": {
15-
"eslint": "^3.19.0"
15+
"eslint": "^4.0.0"
1616
},
1717
"engines": {},
1818
"homepage": "https://github.com/strvcom/eslint-config-javascript",
@@ -23,7 +23,7 @@
2323
"license": "BSD-3-Clause",
2424
"main": "default",
2525
"peerDependencies": {
26-
"eslint": "^3.19.0"
26+
"eslint": "^3.19.0||^4.0"
2727
},
2828
"repository": {
2929
"type": "git",

unused.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ module.exports = {
3131
// Unused, no one cares.
3232
'max-lines': 0,
3333

34-
// Require or disallow an empty newline after variable declarations
35-
// Unused, too restrictive.
36-
'newline-after-var': 0,
37-
3834
// Disallow Bitwise Operators
3935
// Unused, too restrictive.
4036
'no-bitwise': 0,

0 commit comments

Comments
 (0)