Skip to content

Commit

Permalink
"notice" plugin should only apply for files within the /src folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Yair Even Or authored and Yair Even Or committed Jan 23, 2023
1 parent 2d501fd commit f8836d3
Showing 1 changed file with 33 additions and 24 deletions.
57 changes: 33 additions & 24 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,30 +44,39 @@
"indent": ["error", 4],
"quotes": ["error", "single", { "avoidEscape": true }],
"jsx-quotes": ["error", "prefer-single"],
"prefer-const": ["error"],
"notice/notice": ["error", {"templateFile":"notice.js"}]
"prefer-const": ["error"]
},
"overrides": [{
"files": ["*.jsx"],
"rules": {
"max-lines-per-function": ["error", { "max": 40, "skipComments": true, "skipBlankLines": true }]
"overrides": [
{
"files": ["./src/**/*.js", "./src/**/*.jsx"],
"rules": {
"notice/notice": ["error", {"templateFile":"notice.js"}]
}
},
{
"files": ["*.jsx"],
"rules": {
"max-lines-per-function": ["error", { "max": 40, "skipComments": true, "skipBlankLines": true }]
}
},
{
"files": ["index.js"],
"rules": {
"notice/notice": 0
}
},
{
"files": ["*.test.js"],
"rules": {
"max-lines": 0,
"max-lines-per-function": 0,
"react/display-name": 0,
"no-nested-ternary": 0,
"complexity": 0,
"react/prop-types": 0,
"react/jsx-key": 0,
"notice/notice": 0
}
}
},{
"files": ["index.js"],
"rules": {
"notice/notice": 0
}
},{
"files": ["*.test.js"],
"rules": {
"max-lines": 0,
"max-lines-per-function": 0,
"react/display-name": 0,
"no-nested-ternary": 0,
"complexity": 0,
"react/prop-types": 0,
"react/jsx-key": 0,
"notice/notice": 0
}
}]
]
}

0 comments on commit f8836d3

Please sign in to comment.