10000 fix(linter): reclassify `unicorn/no-document-cookie` as restriction (… · oxc-project/oxc@f649fb3 · GitHub
[go: up one dir, main page]

Skip to content

Commit f649fb3

Browse files
committed
fix(linter): reclassify unicorn/no-document-cookie as restriction (#9933)
- closes #9927 I think for a default rule this one can be a little bit niche. I don't think it's a best practice for sure. This would be a great rule to include if we started supporting opt-in named configs like "recommended" and such.
1 parent 46a12c6 commit f649fb3

File tree

40 files changed

+42
-42
lines changed

40 files changed

+42
-42
lines changed

apps/oxlint/src/snapshots/_--ignore-path fixtures__linter__.customignore --no-ignore fixtures__linter__nan.js@oxlint.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ working directory:
1414
help: Use the isNaN function to compare with NaN.
1515
1616
Found 1 warning and 0 errors.
17-
Finished in <variable>ms on 1 file with 100 rules using 1 threads.
17+
Finished in <variable>ms on 1 file with 99 rules using 1 threads.
1818
----------
1919
CLI result: LintSucceeded
2020
----------

apps/oxlint/src/snapshots/_--ignore-pattern _____.js --ignore-pattern _____.vue fixtures__linter@oxlint.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ arguments: --ignore-pattern **/*.js --ignore-pattern **/*.vue fixtures/linter
66
working directory:
77
----------
88
Found 0 warnings and 0 errors.
9-
Finished in <variable>ms on 0 files with 100 rules using 1 threads.
9+
Finished in <variable>ms on 0 files with 99 rules using 1 threads.
1010
----------
1111
CLI result: LintSucceeded
1212
----------

apps/oxlint/src/snapshots/_--import-plugin -A all -D no-cycle fixtures__flow__@oxlint.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ arguments: --import-plugin -A all -D no-cycle fixtures/flow/
66
working directory:
77
----------
88
Found 0 warnings and 0 errors.
9-
Finished in <variable>ms on 2 files with 102 rules using 1 threads.
9+
Finished in <variable>ms on 2 files with 101 rules using 1 threads.
1010
----------
1111
CLI result: LintSucceeded
1212
----------

apps/oxlint/src/snapshots/_--import-plugin fixtures__flow__index.mjs@oxlint.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ arguments: --import-plugin fixtures/flow/index.mjs
66
working directory:
77
----------
88
Found 0 warnings and 0 errors.
9-
Finished in <variable>ms on 1 file with 102 rules using 1 threads.
9+
Finished in <variable>ms on 1 file with 101 rules using 1 threads.
1010
----------
1111
CLI result: LintSucceeded
1212
----------

apps/oxlint/src/snapshots/_--vitest-plugin -c fixtures__eslintrc_vitest_replace__eslintrc.json fixtures__eslintrc_vitest_replace__foo.test.js@oxlint.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ working directory:
2323
help: Remove the appending `.skip`
2424
2525
Found 1 warning and 1 error.
26-
Finished in <variable>ms on 1 file with 112 rules using 1 threads.
26+
Finished in <variable>ms on 1 file with 111 rules using 1 threads.
2727
----------
2828
CLI result: LintFoundErrors
2929
----------

apps/oxlint/src/snapshots/_-D correctness fixtures__linter__debugger.js@oxlint.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ working directory:
1414
help: Delete this code.
1515
1616
Found 0 warnings and 1 error.
17-
Finished in <variable>ms on 1 file with 100 rules using 1 threads.
17+
Finished in <variable>ms on 1 file with 99 rules using 1 threads.
1818
----------
1919
CLI result: LintFoundErrors
2020
----------

apps/oxlint/src/snapshots/_-W correctness -A no-debugger fixtures__linter__debugger.js@oxlint.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ arguments: -W correctness -A no-debugger fixtures/linter/debugger.js
66
working directory:
77
----------
88
Found 0 warnings and 0 errors.
9-
Finished in <variable>ms on 1 file with 99 rules using 1 threads.
9+
Finished in <variable>ms on 1 file with 98 rules using 1 threads.
1010
----------
1111
CLI result: LintSucceeded
1212
----------

apps/oxlint/src/snapshots/_-W no-undef -c fixtures__eslintrc_env__eslintrc_no_env.json fixtures__eslintrc_env__test.js@oxlint.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ working directory:
1313
`----
1414
1515
Found 1 warning and 0 errors.
16-
Finished in <variable>ms on 1 file with 101 rules using 1 threads.
16+
Finished in <variable>ms on 1 file with 100 rules using 1 threads.
1717
----------
1818
CLI result: LintSucceeded
1919
----------

apps/oxlint/src/snapshots/_-W no-undef -c fixtures__no_undef__eslintrc.json fixtures__no_undef__test.js@oxlint.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ working directory:
1313
`----
1414
1515
Found 1 warning and 0 errors.
16-
Finished in <variable>ms on 1 file with 101 rules using 1 threads.
16+
Finished in <variable>ms on 1 file with 100 rules using 1 threads.
1717
----------
1818
CLI result: LintSucceeded
1919
----------

apps/oxlint/src/snapshots/_-c fixtures__config_ignore_patterns__ignore_extension__eslintrc.json fixtures__config_ignore_patterns__ignore_extension@oxlint.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ working directory:
1212
help: Delete this file or add some code to it.
1313
1414
Found 1 warning and 0 errors.
15-
Finished in <variable>ms on 1 file with 100 rules using 1 threads.
15+
Finished in <variable>ms on 1 file with 99 rules using 1 threads.
1616
----------
1717
CLI result: LintSucceeded
1818
----------

0 commit comments

Comments
 (0)
0