Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable permissive max-len and max-lines as warning #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions index.js
Expand Up @@ -204,7 +204,7 @@
radix: 'error',

// Disabled for now as it causes too much churn
// TODO: Enable it in the future when I have time to deal with

Check warning on line 207 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Unexpected 'todo' comment: 'TODO: Enable it in the future when I...'

Check warning on line 207 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Unexpected 'todo' comment: 'TODO: Enable it in the future when I...'

Check warning on line 207 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Unexpected 'todo' comment: 'TODO: Enable it in the future when I...'

Check warning on line 207 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Unexpected 'todo' comment: 'TODO: Enable it in the future when I...'

Check warning on line 207 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Unexpected 'todo' comment: 'TODO: Enable it in the future when I...'

Check warning on line 207 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Unexpected 'todo' comment: 'TODO: Enable it in the future when I...'
// the churn and the rule is stable and has an autofixer.
// Still doesn't have a fixer as of ESLint 7.24.0.
// 'require-unicode-regexp': 'error',
Expand Down Expand Up @@ -366,12 +366,12 @@
'always',
{
// Workaround to allow class fields to not have lines between them.
// TODO: Get ESLint to add an option to ignore class fields.

Check warning on line 369 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Unexpected 'todo' comment: 'TODO: Get ESLint to add an option to...'

Check warning on line 369 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Unexpected 'todo' comment: 'TODO: Get ESLint to add an option to...'

Check warning on line 369 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Unexpected 'todo' comment: 'TODO: Get ESLint to add an option to...'

Check warning on line 369 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Unexpected 'todo' comment: 'TODO: Get ESLint to add an option to...'

Check warning on line 369 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Unexpected 'todo' comment: 'TODO: Get ESLint to add an option to...'

Check warning on line 369 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Unexpected 'todo' comment: 'TODO: Get ESLint to add an option to...'
exceptAfterSingleLine: true,
},
],

// TODO: Enable this again when targeting Node.js 16.

Check warning on line 374 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Unexpected 'todo' comment: 'TODO: Enable this again when targeting...'

Check warning on line 374 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Unexpected 'todo' comment: 'TODO: Enable this again when targeting...'

Check warning on line 374 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Unexpected 'todo' comment: 'TODO: Enable this again when targeting...'

Check warning on line 374 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Unexpected 'todo' comment: 'TODO: Enable this again when targeting...'

Check warning on line 374 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Unexpected 'todo' comment: 'TODO: Enable this again when targeting...'

Check warning on line 374 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Unexpected 'todo' comment: 'TODO: Enable this again when targeting...'
// 'logical-assignment-operators': [
// 'error',
// 'always',
Expand All @@ -381,6 +381,14 @@
// ],

'max-depth': 'warn',
'max-len': [
'warn',
200,
],
'max-lines': [
'warn',
1000,
],
'max-nested-callbacks': [
'warn',
4,
Expand Down Expand Up @@ -616,7 +624,7 @@
{
// `array` is disabled because it forces destructuring on
// stupid stuff like `foo.bar = process.argv[2];`
// TODO: Open ESLint issue about this

Check warning on line 627 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Unexpected 'todo' comment: 'TODO: Open ESLint issue about this'

Check warning on line 627 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Unexpected 'todo' comment: 'TODO: Open ESLint issue about this'

Check warning on line 627 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Unexpected 'todo' comment: 'TODO: Open ESLint issue about this'

Check warning on line 627 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Unexpected 'todo' comment: 'TODO: Open ESLint issue about this'

Check warning on line 627 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Unexpected 'todo' comment: 'TODO: Open ESLint issue about this'

Check warning on line 627 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Unexpected 'todo' comment: 'TODO: Open ESLint issue about this'
VariableDeclarator: {
array: false,
object: true,
Expand All @@ -635,7 +643,7 @@
],
'prefer-numeric-literals': 'error',

// TODO: Enable when targeting Node.js 16.

Check warning on line 646 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Unexpected 'todo' comment: 'TODO: Enable when targeting Node.js 16.'

Check warning on line 646 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Unexpected 'todo' comment: 'TODO: Enable when targeting Node.js 16.'

Check warning on line 646 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Unexpected 'todo' comment: 'TODO: Enable when targeting Node.js 16.'

Check warning on line 646 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Unexpected 'todo' comment: 'TODO: Enable when targeting Node.js 16.'

Check warning on line 646 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Unexpected 'todo' comment: 'TODO: Enable when targeting Node.js 16.'

Check warning on line 646 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Unexpected 'todo' comment: 'TODO: Enable when targeting Node.js 16.'
// 'prefer-object-has-own': 'error',

'prefer-rest-params': 'error',
Expand Down