Skip to content

Commit

Permalink
Raise error on fail
Browse files Browse the repository at this point in the history
  • Loading branch information
colincasey committed Apr 23, 2024
1 parent 70d7dfa commit 507bac6
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"reportUnusedDisableDirectives": true,
"rules": {
"@typescript-eslint/explicit-function-return-type": "error",
"max-lines": ["warn", 500]
"max-lines": ["warn", 2000]
}
}
1 change: 0 additions & 1 deletion lib/__tests__/data/parser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// This file just contains test data, so we don't care about the number of lines.
/* eslint-disable max-lines */
export default [
{
test: '0001',
Expand Down
4 changes: 0 additions & 4 deletions lib/cookie/cookie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/

// This file was too big before we added max-lines, and it's ongoing work to reduce its size.
/* eslint max-lines: [1, 800] */

import { getPublicSuffix } from '../getPublicSuffix'
import * as validators from '../validators'
import { inOperator } from '../utils'
Expand Down
3 changes: 0 additions & 3 deletions lib/cookie/cookieJar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ import { domainMatch } from './domainMatch'
import { cookieCompare } from './cookieCompare'
import { version } from '../version'

// This file was too big before we added max-lines, and it's ongoing work to reduce its size.
/* eslint max-lines: [1, 1200] */

const defaultSetCookieOptions: SetCookieOptions = {
loose: false,
sameSiteContext: undefined,
Expand Down

0 comments on commit 507bac6

Please sign in to comment.