eslint-config-digital-scientists-react
Advanced tools
Comparing version 0.9.0 to 0.10.0
17
index.js
@@ -7,2 +7,4 @@ "use strict"; | ||
const cosmiconfig = require("cosmiconfig"); | ||
const compose = (...fns) => arg => fns.reduce((arg, fn) => fn(arg), arg); | ||
@@ -17,3 +19,2 @@ const tryCatch = (tryer, catcher) => (...args) => { | ||
const cosmiconfig = require("cosmiconfig"); | ||
const prettier = cosmiconfig("prettier").searchSync(); | ||
@@ -59,3 +60,11 @@ const saga = tryCatch(require.resolve.bind(require), () => null)("redux-saga"); | ||
rules: { | ||
// ------------- REDUX-SPECIFIC RULES ---------------- | ||
// Enforces that all connected components are defined in a separate file | ||
"react-redux/prefer-separate-component-file": 0, | ||
// Enforces that all connect arguments have recommended names | ||
"react-redux/connect-prefer-named-arguments": 1, | ||
// Enforces consistent naming for boolean props | ||
// ------------- REACT-SPECIFIC RULES ---------------- | ||
"react/boolean-prop-naming": 1, | ||
@@ -117,3 +126,3 @@ // Forbid "button" element without an explicit "type" attribute | ||
// Prevent invalid characters from appearing in markup | ||
"react/no-unescaped-entities": 2, | ||
"react/no-unescaped-entities": 0, | ||
// Prevent usage of unknown DOM property (fixable) | ||
@@ -194,2 +203,4 @@ "react/no-unknown-property": 2, | ||
// ------------- JSX-SPECIFIC RULES ---------------- | ||
// Enforce boolean attributes notation in JSX (fixable) | ||
@@ -206,3 +217,3 @@ "react/jsx-boolean-value": [1, "always"], | ||
2, | ||
{ when: "never", children: true, allowMultiline: false }, | ||
{ when: "never", children: true, allowMultiline: true }, | ||
], | ||
@@ -209,0 +220,0 @@ // Enforce or disallow spaces around equal signs in JSX attributes (fixable) |
{ | ||
"name": "eslint-config-digital-scientists-react", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57541
294