Skip to content

Commit

Permalink
Config update (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
nowyDEV authored Nov 29, 2022
1 parent 83d9ea4 commit 59546af
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mixins/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ module.exports = {
* Improve readability of JSX.
* @see https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-max-depth.md
*/
"react/jsx-max-depth": ["warn", { max: 6 }],
"react/jsx-max-depth": ["warn", { max: 8 }],

/**
* Warn about potential performance problem.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nordcloud/eslint-config-pat",
"version": "4.0.0",
"version": "4.1.0",
"description": "Shareable ESLint config for PAT projects",
"author": "Nordcloud Engineering",
"license": "MIT",
Expand Down
8 changes: 7 additions & 1 deletion profile/_common.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ function buildRules(profile) {
* It’s a common mistake in JavaScript to use a conditional expression to select between two Boolean values instead of using ! to convert the test to a Boolean.
* @see https://eslint.org/docs/latest/rules/no-unneeded-ternary
*/
"no-unneeded-ternary": "error",
"no-unneeded-ternary": "off",

/**
* It’s unnecessary to use computed properties with literals.
Expand Down Expand Up @@ -1343,10 +1343,16 @@ function buildRules(profile) {
envs: true,
Envs: true,
err: true,
org: true,
Org: true,
Param: true,
Params: true,
props: true,
Props: true,
res: true,
req: true,
ref: true,
Ref: true,
str: true,
Str: true,
num: true,
Expand Down

0 comments on commit 59546af

Please sign in to comment.