eslint-config-bengler
Advanced tools
Comparing version 4.1.0 to 5.0.0
@@ -53,2 +53,3 @@ module.exports = { | ||
"id-match": "off", | ||
"implicit-arrow-linebreak": ["error", "beside"], | ||
"indent": ["error", 2, {"SwitchCase": 1}], | ||
@@ -62,2 +63,3 @@ "init-declarations": "off", | ||
"lines-around-comment": "off", | ||
"lines-between-class-members": ["error", "always"], | ||
"max-depth": ["error", 2], | ||
@@ -71,2 +73,3 @@ "max-len": ["error", 150, 4], | ||
"multiline-ternary": "off", | ||
"multiline-comment-style": "off", | ||
"new-cap": ["error", {"capIsNew": false}], | ||
@@ -73,0 +76,0 @@ "new-parens": "off", |
@@ -9,4 +9,5 @@ module.exports = { | ||
"import/extensions": ["error", {"js": "never", "json": "always"}], | ||
"import/exports-last": "off", | ||
"import/first": "error", | ||
"import/exports-last": "off", | ||
"import/group-exports": "off", | ||
"import/no-anonymous-default-export": "off", | ||
@@ -33,2 +34,3 @@ "import/imports-first": "error", | ||
"import/no-restricted-paths": "off", | ||
"import/no-self-import": "error", | ||
"import/no-unassigned-import": "error", | ||
@@ -35,0 +37,0 @@ "import/no-unresolved": "error", |
{ | ||
"name": "eslint-config-bengler", | ||
"version": "4.1.0", | ||
"version": "5.0.0", | ||
"description": "Shared eslint configs for Bengler", | ||
@@ -29,7 +29,7 @@ "main": "base.js", | ||
"devDependencies": { | ||
"eslint": "^4.6.1", | ||
"eslint-plugin-import": "^2.7.0", | ||
"eslint-plugin-react": "^7.3.0", | ||
"eslint": "^4.16.0", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-react": "^7.6.0", | ||
"lodash.difference": "^4.5.0" | ||
} | ||
} |
13
react.js
@@ -17,8 +17,11 @@ // Use this for react projects | ||
"react/boolean-prop-naming": "off", // todo: enable this with whitelist of native html boolean attributes and is/has/can/will/*-prefixes" | ||
"react/button-has-type": "error", | ||
"react/display-name": ["error", {"ignoreTranspilerName": false}], | ||
"react/default-props-match-prop-types": "error", | ||
"react/destructuring-assignment": "off", | ||
"react/forbid-elements": "off", | ||
"react/forbid-foreign-prop-types": "error", | ||
"react/forbid-component-props": "off", | ||
"react/forbid-dom-props": "off", | ||
"react/forbid-prop-types": "warn", | ||
"react/forbid-component-props": "off", | ||
"react/jsx-no-comment-textnodes": "error", | ||
@@ -30,4 +33,6 @@ "react/jsx-sort-props": "off", | ||
"react/jsx-boolean-value": "error", | ||
"react/jsx-child-element-spacing": "off", // missing docs atm | ||
"react/jsx-closing-bracket-location": 1, | ||
"react/jsx-closing-tag-location": "error", | ||
"react/jsx-curly-brace-presence": "off", | ||
"react/jsx-curly-spacing": ["error", "never"], | ||
@@ -44,4 +49,6 @@ "react/jsx-equals-spacing": ["error", "never"], | ||
"react/jsx-no-undef": "error", | ||
"react/jsx-one-expression-per-line": "off", | ||
"react/jsx-pascal-case": "error", | ||
"react/jsx-space-before-closing": ["error", "always"], | ||
"react/jsx-sort-default-props": "off", | ||
// "react/jsx-space-before-closing": ["error", "always"], //@@@ removed in favor of react/jsx-tag-spacing | ||
"react/jsx-uses-react": "error", | ||
@@ -55,2 +62,3 @@ "react/jsx-uses-vars": "error", | ||
"react/jsx-wrap-multilines": "error", | ||
"react/no-access-state-in-setstate": "error", | ||
"react/no-array-index-key": "warn", | ||
@@ -72,2 +80,3 @@ "react/no-children-prop": "error", | ||
"react/no-string-refs": "warn", | ||
"react/no-this-in-sfc": "error", | ||
"react/no-typos": "error", | ||
@@ -74,0 +83,0 @@ "react/no-unescaped-entities": "error", |
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
Possible typosquat attack
Supply chain riskThere is a package with a similar name that is downloaded much more often.
Did you mean |
---|
eslint-config-google |
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
19812
499
0