eslint-config-silk
Advanced tools
14
base.js
module.exports = { | ||
"extends": "eslint:recommended", | ||
"ecmaFeatures": { | ||
"modules": true | ||
"parserOptions": { | ||
"ecmaVersion": 7, | ||
"ecmaFeatures": { | ||
"modules": true | ||
} | ||
}, | ||
@@ -17,3 +20,4 @@ "env": { | ||
"no-debugger": 2, | ||
"no-empty-label": 2, | ||
"no-dupe-class-members": 2, | ||
"no-labels": 2, | ||
"no-eval": 2, | ||
@@ -71,7 +75,7 @@ "no-extend-native": 2, | ||
"new-parens": 2, | ||
"quotes": [2, "single", "avoid-escape"], | ||
"quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }], | ||
"semi": 2, | ||
"semi-spacing": [2, {"before": false, "after": true}], | ||
"space-infix-ops": 2, | ||
"space-return-throw-case": 2, | ||
"keyword-spacing": 2, | ||
"space-unary-ops": [2, {"words": true, "nonwords": false}], | ||
@@ -78,0 +82,0 @@ "strict": 0, |
{ | ||
"name": "eslint-config-silk", | ||
"version": "0.17.0", | ||
"version": "0.21.0", | ||
"description": "Silk eslint rules", | ||
@@ -17,5 +17,5 @@ "main": "index.js", | ||
"babel-eslint": "6.0.4", | ||
"eslint": "1.10.3", | ||
"eslint": "2.13.1", | ||
"eslint-plugin-react": "3.16.1" | ||
} | ||
} |
module.exports = { | ||
"extends": "eslint-config-silk", | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"extends": ["eslint-config-silk", "plugin:react/recommended"], | ||
"plugins": [ | ||
@@ -10,2 +7,4 @@ "react" | ||
"rules": { | ||
"react/display-name": 0, | ||
"react/prop-types": 0, | ||
"react/jsx-closing-bracket-location": [2, {"nonEmpty": "after-props", "selfClosing": "tag-aligned"}], | ||
@@ -12,0 +11,0 @@ "react/jsx-indent-props": [2, 2], |
4511
3.61%103
3%