fix(common): Fix the line number of errors (#4082)

This commit is contained in:
Edwin Coronado 2022-03-19 07:56:12 -07:00 committed by GitHub
parent 3f78053227
commit 57802cfcce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
780 changed files with 92496 additions and 92496 deletions

View File

@ -1,13 +1,13 @@
x cannot reassign to a variable declared with `const`
,-[2:1]
2 | const a = 500;
,-[1:1]
1 | const a = 500;
: |
: `-- const variable was declared here
2 |
3 |
4 |
5 |
6 | a = 600;
5 | a = 600;
: |
: `-- cannot reassign
`----

View File

@ -1,42 +1,42 @@
x Default parameters should be last.
,----
2 | function f1(a = 5, b = 6, c) {}
1 | function f1(a = 5, b = 6, c) {}
: ^
`----
x Default parameters should be last.
,----
4 | function f2(a = 5, b, c = 5) {}
3 | function f2(a = 5, b, c = 5) {}
: ^
`----
x Default parameters should be last.
,----
6 | const f3 = (a = 5, b, ...c) => {};
5 | const f3 = (a = 5, b, ...c) => {};
: ^
`----
x Default parameters should be last.
,----
8 | const f4 = function f(a, b = 5, c) {};
7 | const f4 = function f(a, b = 5, c) {};
: ^
`----
x Default parameters should be last.
,----
10 | const f5 = (a = 5, { b }) => {};
: ^^^^^
`----
,----
9 | const f5 = (a = 5, { b }) => {};
: ^^^^^
`----
x Default parameters should be last.
,----
13 | constructor({ a } = {}, b) {}
12 | constructor({ a } = {}, b) {}
: ^
`----
x Default parameters should be last.
,----
15 | f([a, b] = [1, 2], c) {}
14 | f([a, b] = [1, 2], c) {}
: ^
`----

View File

@ -1,6 +1,6 @@
x Default parameters should be last.
,----
3 | constructor({ a } = {}, public b) {}
2 | constructor({ a } = {}, public b) {}
: ^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x ['a'] is better written in dot notation
,----
4 | obj['a'];
3 | obj['a'];
: ^^^^^
`----

View File

@ -1,6 +1,6 @@
x ['break'] is better written in dot notation
,----
2 | obj['break'];
1 | obj['break'];
: ^^^^^^^^^
`----

View File

@ -1,36 +1,36 @@
x ["a"] is better written in dot notation
,----
2 | obj["a"];
1 | obj["a"];
: ^^^^^
`----
x ["b"] is better written in dot notation
,----
4 | obj[obj2["b"]];
3 | obj[obj2["b"]];
: ^^^^^
`----
x ['c'] is better written in dot notation
,----
10 | obj['c'];
: ^^^^^
`----
,----
9 | obj['c'];
: ^^^^^
`----
x ['d'] is better written in dot notation
,----
12 | obj?.['d'];
11 | obj?.['d'];
: ^^^^^
`----
x ['e'] is better written in dot notation
,----
14 | (obj)['e'];
13 | (obj)['e'];
: ^^^^^
`----
x ["x"] is better written in dot notation
,----
16 | foo[call(my["x"])]
15 | foo[call(my["x"])]
: ^^^^^
`----

View File

@ -1,10 +1,10 @@
x the name `foo` is defined multiple times
,-[3:1]
3 | } catch (foo) {
,-[2:1]
2 | } catch (foo) {
: ^|^
: `-- previous definition of `foo` here
4 | let foo;
3 | let foo;
: ^|^
: `-- `foo` redefined here
`----

View File

@ -1,10 +1,10 @@
x the name `hi` is defined multiple times
,-[2:1]
2 | import { hi } from 'foo';
,-[1:1]
1 | import { hi } from 'foo';
: ^|
: `-- previous definition of `hi` here
3 | import { hi } from 'foo';
2 | import { hi } from 'foo';
: ^|
: `-- `hi` redefined here
`----

View File

@ -1,30 +1,30 @@
x the name `foo` is defined multiple times
,-[2:1]
2 | function foo() {}
,-[1:1]
1 | function foo() {}
: ^|^
: `-- previous definition of `foo` here
3 | const foo = 1; // error
2 | const foo = 1; // error
: ^|^
: `-- `foo` redefined here
`----
x the name `bar` is defined multiple times
,-[5:1]
5 | function bar() {}
,-[4:1]
4 | function bar() {}
: ^|^
: `-- previous definition of `bar` here
6 | var bar; // error
5 | var bar; // error
: ^|^
: `-- `bar` redefined here
`----
x the name `baz` is defined multiple times
,-[8:1]
8 | function baz() {}
,-[7:1]
7 | function baz() {}
: ^|^
: `-- previous definition of `baz` here
9 | function baz() {} // error
8 | function baz() {} // error
: ^|^
: `-- `baz` redefined here
`----

View File

@ -1,10 +1,10 @@
x the name `foo` is defined multiple times
,-[4:1]
4 | function foo() {}
,-[3:1]
3 | function foo() {}
: ^|^
: `-- previous definition of `foo` here
5 | function foo() {}
4 | function foo() {}
: ^|^
: `-- `foo` redefined here
`----

View File

@ -1,30 +1,30 @@
x the name `a` is defined multiple times
,-[2:1]
2 | const a = 5;
,-[1:1]
1 | const a = 5;
: |
: `-- previous definition of `a` here
3 | let a = 2; // error
2 | let a = 2; // error
: |
: `-- `a` redefined here
`----
x the name `b` is defined multiple times
,-[5:1]
5 | const b = 1;
,-[4:1]
4 | const b = 1;
: |
: `-- previous definition of `b` here
6 | var b = 2; // error
5 | var b = 2; // error
: |
: `-- `b` redefined here
`----
x the name `c` is defined multiple times
,-[8:1]
8 | let c = 3;
,-[7:1]
7 | let c = 3;
: |
: `-- previous definition of `c` here
9 | var c = 4; // error
8 | var c = 4; // error
: |
: `-- `c` redefined here
`----

View File

@ -1,10 +1,10 @@
x the name `foo` is defined multiple times
,-[2:1]
2 | function foo() {}
,-[1:1]
1 | function foo() {}
: ^|^
: `-- previous definition of `foo` here
3 | const foo = 1; // error
2 | const foo = 1; // error
: ^|^
: `-- `foo` redefined here
`----

View File

@ -1,14 +1,14 @@
x the name `default` is exported multiple times
,-[2:1]
2 | ,-> export default () => {
3 | | let a = 2;
4 | |-> }
,-[1:1]
1 | ,-> export default () => {
2 | | let a = 2;
3 | |-> }
: `---- previous exported here
5 |
6 | ,-> export default () => {
7 | | let b = 2;
8 | |-> }
4 |
5 | ,-> export default () => {
6 | | let b = 2;
7 | |-> }
: `---- exported more than once
`----

View File

@ -1,13 +1,13 @@
x the name `default` is exported multiple times
,-[4:1]
4 | ,-> export { a as default };
,-[3:1]
3 | ,-> export { a as default };
: | ^^^|^^^
: | `-- previous exported here
5 |
6 | ,-> export default () => {
7 | | let b = 2;
8 | |-> }
4 |
5 | ,-> export default () => {
6 | | let b = 2;
7 | |-> }
: `---- exported more than once
`----

View File

@ -1,13 +1,13 @@
x the name `b` is exported multiple times
,-[9:1]
9 | export { b }
: |
: `-- previous exported here
10 | export { a as b }
: |
: `-- exported more than once
`----
,-[8:1]
8 | export { b }
: |
: `-- previous exported here
9 | export { a as b }
: |
: `-- exported more than once
`----
Error:
> Exported identifiers must be unique

View File

@ -1,12 +1,12 @@
x Use '===' instead of '=='
,----
2 | if (x == y || z != (a || b)) {}
1 | if (x == y || z != (a || b)) {}
: ^^^^^^
`----
x Use '!==' instead of '!='
,----
2 | if (x == y || z != (a || b)) {}
1 | if (x == y || z != (a || b)) {}
: ^^^^^^^^^^^^^
`----

View File

@ -1,12 +1,12 @@
x Use '==' instead of '==='
,----
4 | if (x === y || z !== (a || b)) {}
3 | if (x === y || z !== (a || b)) {}
: ^^^^^^^
`----
x Use '!=' instead of '!=='
,----
4 | if (x === y || z !== (a || b)) {}
3 | if (x === y || z !== (a || b)) {}
: ^^^^^^^^^^^^^^
`----

View File

@ -1,12 +1,12 @@
x Use '===' instead of '=='
,----
2 | if (x == y || z != (a || b)) {}
1 | if (x == y || z != (a || b)) {}
: ^^^^^^
`----
x Use '!==' instead of '!='
,----
2 | if (x == y || z != (a || b)) {}
1 | if (x == y || z != (a || b)) {}
: ^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected alert
,----
6 | window.alert();
5 | window.alert();
: ^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected alert
,----
5 | window.alert(foo);
4 | window.alert(foo);
: ^^^^^^^^^^^^^^^^^
`----

View File

@ -1,24 +1,24 @@
x Unexpected alert
,----
4 | globalThis.alert();
3 | globalThis.alert();
: ^^^^^^^^^^^^^^^^^^
`----
x Unexpected alert
,----
9 | globalThis.alert();
8 | globalThis.alert();
: ^^^^^^^^^^^^^^^^^^
`----
x Unexpected alert
,----
9 | window?.alert(foo);
: ^^^^^^^^^^^^^^^^^^
`----
x Unexpected alert
,----
10 | window?.alert(foo);
: ^^^^^^^^^^^^^^^^^^
`----
x Unexpected alert
,----
11 | (window?.alert)(foo);
10 | (window?.alert)(foo);
: ^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,96 +1,96 @@
x Unexpected alert
,----
4 | alert();
3 | alert();
: ^^^^^^^
`----
x Unexpected alert
,----
5 | window.alert();
4 | window.alert();
: ^^^^^^^^^^^^^^
`----
x Unexpected alert
,----
6 | window["alert"]();
5 | window["alert"]();
: ^^^^^^^^^^^^^^^^^
`----
x Unexpected confirm
,----
7 | confirm();
6 | confirm();
: ^^^^^^^^^
`----
x Unexpected confirm
,----
8 | window.confirm();
7 | window.confirm();
: ^^^^^^^^^^^^^^^^
`----
x Unexpected confirm
,----
9 | window["confirm"]();
8 | window["confirm"]();
: ^^^^^^^^^^^^^^^^^^^
`----
x Unexpected prompt
,----
10 | prompt();
: ^^^^^^^^
`----
,----
9 | prompt();
: ^^^^^^^^
`----
x Unexpected prompt
,----
11 | window.prompt();
10 | window.prompt();
: ^^^^^^^^^^^^^^^
`----
x Unexpected prompt
,----
12 | window["prompt"]();
11 | window["prompt"]();
: ^^^^^^^^^^^^^^^^^^
`----
x Unexpected alert
,----
14 | window.alert();
13 | window.alert();
: ^^^^^^^^^^^^^^
`----
x Unexpected alert
,----
17 | alert();
16 | alert();
: ^^^^^^^
`----
x Unexpected alert
,----
22 | alert();
21 | alert();
: ^^^^^^^
`----
x Unexpected alert
,----
32 | window.alert();
31 | window.alert();
: ^^^^^^^^^^^^^^
`----
x Unexpected alert
,----
39 | alert(() => alert("foo"));
38 | alert(() => alert("foo"));
: ^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Unexpected alert
,----
39 | alert(() => alert("foo"));
38 | alert(() => alert("foo"));
: ^^^^^^^^^^^^
`----
x Unexpected alert
,----
55 | fu(() => alert(""));
54 | fu(() => alert(""));
: ^^^^^^^^^
`----

View File

@ -1,18 +1,18 @@
x Unexpected alert
,----
2 | this.alert();
1 | this.alert();
: ^^^^^^^^^^^^
`----
x Unexpected alert
,----
34 | this.alert();
33 | this.alert();
: ^^^^^^^^^^^^
`----
x Unexpected alert
,----
49 | this.alert();
48 | this.alert();
: ^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected use of '&'
,----
2 | a & b;
1 | a & b;
: ^^^^^
`----

View File

@ -1,96 +1,96 @@
x Unexpected use of '|'
,----
2 | var x = y | z;
1 | var x = y | z;
: ^^^^^
`----
x Unexpected use of '&'
,----
4 | var x = y & z;
3 | var x = y & z;
: ^^^^^
`----
x Unexpected use of '^'
,----
6 | var x = y ^ z;
5 | var x = y ^ z;
: ^^^^^
`----
x Unexpected use of '~'
,----
8 | var x = ~ z;
7 | var x = ~ z;
: ^^^
`----
x Unexpected use of '<<'
,----
10 | var x = y << z;
: ^^^^^^
`----
,----
9 | var x = y << z;
: ^^^^^^
`----
x Unexpected use of '>>'
,----
12 | var x = y >> z;
11 | var x = y >> z;
: ^^^^^^
`----
x Unexpected use of '>>>'
,----
14 | var x = y >>> z;
13 | var x = y >>> z;
: ^^^^^^^
`----
x Unexpected use of '|='
,----
16 | x |= y;
15 | x |= y;
: ^^^^^^
`----
x Unexpected use of '&='
,----
18 | x &= y;
17 | x &= y;
: ^^^^^^
`----
x Unexpected use of '^='
,----
20 | x ^= y;
19 | x ^= y;
: ^^^^^^
`----
x Unexpected use of '<<='
,----
22 | x <<= y;
21 | x <<= y;
: ^^^^^^^
`----
x Unexpected use of '>>='
,----
24 | x >>= y;
23 | x >>= y;
: ^^^^^^^
`----
x Unexpected use of '>>>='
,----
26 | x >>>= y;
25 | x >>>= y;
: ^^^^^^^^
`----
x Unexpected use of '^'
,----
28 | if (a ^ b) {}
27 | if (a ^ b) {}
: ^^^^^
`----
x Unexpected use of '^'
,----
30 | var a = x ^ y;
29 | var a = x ^ y;
: ^^^^^
`----
x Unexpected use of '^'
,----
33 | a = x ^ y
32 | a = x ^ y
: ^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected console statement
,----
2 | console.log('restricted');
1 | console.log('restricted');
: ^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected console statement
,----
8 | console.log("message");
7 | console.log("message");
: ^^^^^^^^^^^
`----

View File

@ -1,12 +1,12 @@
x Unexpected 'debugger' statement
,----
3 | debugger;
2 | debugger;
: ^^^^^^^^^
`----
x Unexpected 'debugger' statement
,----
6 | debugger;
5 | debugger;
: ^^^^^^^^^
`----

View File

@ -1,7 +1,7 @@
x the name `b` is bound more than once in this parameter list
,----
2 | function a(a, b, b) {}
1 | function a(a, b, b) {}
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -9,7 +9,7 @@
x the name `a` is bound more than once in this parameter list
,----
3 | function b(a, a, a) {}
2 | function b(a, a, a) {}
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -17,7 +17,7 @@
x the name `a` is bound more than once in this parameter list
,----
3 | function b(a, a, a) {}
2 | function b(a, a, a) {}
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -25,7 +25,7 @@
x the name `a` is bound more than once in this parameter list
,----
4 | function c(a, b, a) {}
3 | function c(a, b, a) {}
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -33,7 +33,7 @@
x the name `a` is bound more than once in this parameter list
,----
5 | function d(a, b, a, b) {}
4 | function d(a, b, a, b) {}
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -41,7 +41,7 @@
x the name `b` is bound more than once in this parameter list
,----
5 | function d(a, b, a, b) {}
4 | function d(a, b, a, b) {}
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -49,7 +49,7 @@
x the name `b` is bound more than once in this parameter list
,----
6 | var e = function (a, b, b) {};
5 | var e = function (a, b, b) {};
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -57,7 +57,7 @@
x the name `a` is bound more than once in this parameter list
,----
7 | var f = function (a, a, a) {};
6 | var f = function (a, a, a) {};
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -65,7 +65,7 @@
x the name `a` is bound more than once in this parameter list
,----
7 | var f = function (a, a, a) {};
6 | var f = function (a, a, a) {};
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -73,7 +73,7 @@
x the name `a` is bound more than once in this parameter list
,----
8 | var g = function (a, b, a) {};
7 | var g = function (a, b, a) {};
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -81,7 +81,7 @@
x the name `a` is bound more than once in this parameter list
,----
9 | var h = function (a, b, a, b) {};
8 | var h = function (a, b, a, b) {};
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -89,7 +89,7 @@
x the name `b` is bound more than once in this parameter list
,----
9 | var h = function (a, b, a, b) {};
8 | var h = function (a, b, a, b) {};
: | |
: | `-- used as parameter more than once
: `-- previous definition here

View File

@ -1,7 +1,7 @@
x the name `b` is bound more than once in this parameter list
,----
2 | const foo = (a, b, b) => {};
1 | const foo = (a, b, b) => {};
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -9,7 +9,7 @@
x the name `b` is bound more than once in this parameter list
,----
3 | (a, b, b) => {};
2 | (a, b, b) => {};
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -17,7 +17,7 @@
x the name `b` is bound more than once in this parameter list
,----
4 | ((a, b, b) => {})();
3 | ((a, b, b) => {})();
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -25,7 +25,7 @@
x the name `b` is bound more than once in this parameter list
,----
7 | constructor(a, b, b) {}
6 | constructor(a, b, b) {}
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -33,7 +33,7 @@
x the name `b` is bound more than once in this parameter list
,----
9 | foo = (a, b, b) => {};
8 | foo = (a, b, b) => {};
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -41,7 +41,7 @@
x the name `b` is bound more than once in this parameter list
,----
11 | bar(a, b, b) {}
10 | bar(a, b, b) {}
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -49,7 +49,7 @@
x the name `b` is bound more than once in this parameter list
,----
15 | foo(a, b, b) {},
14 | foo(a, b, b) {},
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -57,7 +57,7 @@
x the name `b` is bound more than once in this parameter list
,----
16 | bar: function (a, b, b) {},
15 | bar: function (a, b, b) {},
: | |
: | `-- used as parameter more than once
: `-- previous definition here

View File

@ -1,7 +1,7 @@
x the name `a` is bound more than once in this parameter list
,----
2 | function foo(a, b, [a]) {}
1 | function foo(a, b, [a]) {}
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -9,7 +9,7 @@
x the name `a` is bound more than once in this parameter list
,----
3 | function bar(a, b, ...a) {}
2 | function bar(a, b, ...a) {}
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -17,7 +17,7 @@
x the name `a` is bound more than once in this parameter list
,----
4 | function baz({ a }, b, { c: [a] }) {}
3 | function baz({ a }, b, { c: [a] }) {}
: | |
: | `-- used as parameter more than once
: `-- previous definition here

View File

@ -1,7 +1,7 @@
x the name `a` is bound more than once in this parameter list
,----
2 | function foo(a, b, [a]) {
1 | function foo(a, b, [a]) {
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -9,7 +9,7 @@
x the name `d` is bound more than once in this parameter list
,----
3 | function bar(c, d, ...d) {
2 | function bar(c, d, ...d) {
: | |
: | `-- used as parameter more than once
: `-- previous definition here
@ -17,7 +17,7 @@
x the name `e` is bound more than once in this parameter list
,----
4 | function baz({ e }, f, { f: [e] }) {}
3 | function baz({ e }, f, { f: [e] }) {}
: | |
: | `-- used as parameter more than once
: `-- previous definition here

View File

@ -1,12 +1,12 @@
x Unexpected empty generator function pattern
,----
4 | function* foo2() {}
3 | function* foo2() {}
: ^^^^^^^^^^^^^^^^^^^
`----
x Unexpected empty method pattern
,----
11 | method2() {}
10 | method2() {}
: ^^^^^^^^^^^^
`----

View File

@ -1,126 +1,126 @@
x Unexpected empty function pattern
,----
2 | function foo1() {}
1 | function foo1() {}
: ^^^^^^^^^^^^^^^^^^
`----
x Unexpected empty function pattern
,----
4 | var foo2 = function() {};
3 | var foo2 = function() {};
: ^^^^^^^^^^^^^
`----
x Unexpected empty generator function pattern
,----
10 | function* foo4() {}
: ^^^^^^^^^^^^^^^^^^^
`----
,----
9 | function* foo4() {}
: ^^^^^^^^^^^^^^^^^^^
`----
x Unexpected empty generator function pattern
,----
12 | var foo5 = function*() {};
11 | var foo5 = function*() {};
: ^^^^^^^^^^^^^^
`----
x Unexpected empty arrow function pattern
,----
14 | var foo6 = () => {};
13 | var foo6 = () => {};
: ^^^^^^^^
`----
x Unexpected empty async function pattern
,----
16 | async function foo7() {}
15 | async function foo7() {}
: ^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Unexpected empty constructor pattern
,----
19 | constructor() {}
18 | constructor() {}
: ^^^^^^^^^^^^^^^^
`----
x Unexpected empty method pattern
,----
21 | foo() {}
20 | foo() {}
: ^^^^^^^^
`----
x Unexpected empty generator method pattern
,----
23 | *foo() {}
22 | *foo() {}
: ^^^^^^^^^
`----
x Unexpected empty getter method pattern
,----
25 | get foo() {}
24 | get foo() {}
: ^^^^^^^^^^^^
`----
x Unexpected empty setter method pattern
,----
27 | set foo(value) {}
26 | set foo(value) {}
: ^^^^^^^^^^^^^^^^^
`----
x Unexpected empty method pattern
,----
29 | static foo() {}
28 | static foo() {}
: ^^^^^^^^^^^^^^^
`----
x Unexpected empty generator method pattern
,----
31 | static *foo() {}
30 | static *foo() {}
: ^^^^^^^^^^^^^^^^
`----
x Unexpected empty getter method pattern
,----
33 | static get foo() {}
32 | static get foo() {}
: ^^^^^^^^^^^^^^^^^^^
`----
x Unexpected empty setter method pattern
,----
35 | static set foo(value) {}
34 | static set foo(value) {}
: ^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Unexpected empty function pattern
,----
39 | foo: function() {},
38 | foo: function() {},
: ^^^^^^^^^^^^^
`----
x Unexpected empty generator function pattern
,----
41 | foo: function*() {},
40 | foo: function*() {},
: ^^^^^^^^^^^^^^
`----
x Unexpected empty function pattern
,----
43 | foo() {},
42 | foo() {},
: ^^^^^^^^
`----
x Unexpected empty generator function pattern
,----
45 | *foo() {},
44 | *foo() {},
: ^^^^^^^^^
`----
x Unexpected empty getter method pattern
,----
47 | get foo() {},
46 | get foo() {},
: ^^^^^^^^^^^^
`----
x Unexpected empty setter method pattern
,----
49 | set foo(value) {}
48 | set foo(value) {}
: ^^^^^^^^^^^^^^^^^
`----

View File

@ -1,36 +1,36 @@
x Unexpected empty private constructor pattern
,----
3 | private constructor() {}
2 | private constructor() {}
: ^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Unexpected empty private method pattern
,----
5 | private method1() {}
4 | private method1() {}
: ^^^^^^^^^^^^^^^^^^^^
`----
x Unexpected empty protected method pattern
,----
7 | protected method2() {}
6 | protected method2() {}
: ^^^^^^^^^^^^^^^^^^^^^^
`----
x Unexpected empty public method pattern
,----
9 | public method3() {}
8 | public method3() {}
: ^^^^^^^^^^^^^^^^^^^
`----
x Unexpected empty public method pattern
,----
12 | public async *method4() {}
11 | public async *method4() {}
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Unexpected empty method pattern
,----
18 | method() {}
17 | method() {}
: ^^^^^^^^^^^
`----

View File

@ -1,7 +1,7 @@
x Unexpected empty function pattern
,-[2:1]
2 | ,-> function foo1() {
3 | | // commnet into
4 | `-> }
,-[1:1]
1 | ,-> function foo1() {
2 | | // commnet into
3 | `-> }
`----

View File

@ -1,78 +1,78 @@
x Unexpected empty object pattern
,----
2 | var {} = foo;
1 | var {} = foo;
: ^^
`----
x Unexpected empty array pattern
,----
3 | var [] = foo;
2 | var [] = foo;
: ^^
`----
x Unexpected empty object pattern
,----
4 | var {a: {}} = foo;
3 | var {a: {}} = foo;
: ^^
`----
x Unexpected empty array pattern
,----
5 | var {a: []} = foo;
4 | var {a: []} = foo;
: ^^
`----
x Unexpected empty object pattern
,----
6 | var {a: {a: {}}} = foo;
5 | var {a: {a: {}}} = foo;
: ^^
`----
x Unexpected empty array pattern
,----
7 | var [...[]] = foo;
6 | var [...[]] = foo;
: ^^
`----
x Unexpected empty object pattern
,----
8 | function foo1({}) {}
7 | function foo1({}) {}
: ^^
`----
x Unexpected empty array pattern
,----
9 | function foo2([]) {}
8 | function foo2([]) {}
: ^^
`----
x Unexpected empty object pattern
,----
10 | function foo3({a: {}}) {}
: ^^
`----
,----
9 | function foo3({a: {}}) {}
: ^^
`----
x Unexpected empty array pattern
,----
11 | function foo4({a: []}) {}
10 | function foo4({a: []}) {}
: ^^
`----
x Unexpected empty object pattern
,----
19 | try {} catch ({}) {}
18 | try {} catch ({}) {}
: ^^
`----
x Unexpected empty object pattern
,----
22 | constructor({}) {}
21 | constructor({}) {}
: ^^
`----
x Unexpected empty object pattern
,----
24 | method({}) {}
23 | method({}) {}
: ^^
`----

View File

@ -1,100 +1,100 @@
x the name `a` is defined multiple times
,-[37:1]
37 | let a; for (let i in {}) { (function() { a; }); a = 1; }
,-[36:1]
36 | let a; for (let i in {}) { (function() { a; }); a = 1; }
: |
: `-- previous definition of `a` here
38 |
39 | // interview example =)
40 | for (var i = 0; i < 10; i++) {
41 | setTimeout(() => {
42 | console.log(i);
43 | })
44 | }
45 |
46 | // it's ok
47 | while (cond) {
48 | let x = 10;
49 |
50 | function ee() {
51 | alert(x);
52 | }
53 | }
54 |
55 | // not ok
56 | while (true) {
57 | var a = 0;
37 |
38 | // interview example =)
39 | for (var i = 0; i < 10; i++) {
40 | setTimeout(() => {
41 | console.log(i);
42 | })
43 | }
44 |
45 | // it's ok
46 | while (cond) {
47 | let x = 10;
48 |
49 | function ee() {
50 | alert(x);
51 | }
52 | }
53 |
54 | // not ok
55 | while (true) {
56 | var a = 0;
: |
: `-- `a` redefined here
`----
x the name `ee` is defined multiple times
,-[50:5]
50 | function ee() {
,-[49:5]
49 | function ee() {
: ^|
: `-- previous definition of `ee` here
51 | alert(x);
52 | }
53 | }
54 |
55 | // not ok
56 | while (true) {
57 | var a = 0;
58 |
59 | while (true) {
60 | setTimeout(() => {
61 | a;
62 | })
63 | }
64 | }
50 | alert(x);
51 | }
52 | }
53 |
54 | // not ok
55 | while (true) {
56 | var a = 0;
57 |
58 | while (true) {
59 | setTimeout(() => {
60 | a;
61 | })
62 | }
63 | }
64 |
65 |
66 |
67 |
68 | let { aa, bb: { bb }, cc: [cc], ...ee } = obj;
67 | let { aa, bb: { bb }, cc: [cc], ...ee } = obj;
: ^|
: `-- `ee` redefined here
`----
x Function declared in a loop contains unsafe references to variable i
,-[10:5]
10 | ,-> function x() {
11 | | alert(i);
12 | `-> }
,-[9:5]
9 | ,-> function x() {
10 | | alert(i);
11 | `-> }
`----
x Function declared in a loop contains unsafe references to variable(s) z, zz
,-[30:5]
30 | ,-> function x() {
31 | | alert(z, zz);
32 | `-> }
,-[29:5]
29 | ,-> function x() {
30 | | alert(z, zz);
31 | `-> }
`----
x Function declared in a loop contains unsafe references to variable a
,----
37 | let a; for (let i in {}) { (function() { a; }); a = 1; }
36 | let a; for (let i in {}) { (function() { a; }); a = 1; }
: ^^^^^^^^^^^^^^^^^
`----
x Function declared in a loop contains unsafe references to variable i
,-[41:5]
41 | ,-> setTimeout(() => {
42 | | console.log(i);
43 | `-> })
,-[40:5]
40 | ,-> setTimeout(() => {
41 | | console.log(i);
42 | `-> })
`----
x Function declared in a loop contains unsafe references to variable a
,-[60:9]
60 | ,-> setTimeout(() => {
61 | | a;
62 | `-> })
,-[59:9]
59 | ,-> setTimeout(() => {
60 | | a;
61 | `-> })
`----
x Function declared in a loop contains unsafe references to variable(s) aa, bb, cc, ee
,-[70:5]
70 | ,-> setTimeout(() => {
71 | | aa;
72 | | bb;
73 | | cc;
74 | | ee;
75 | `-> })
,-[69:5]
69 | ,-> setTimeout(() => {
70 | | aa;
71 | | bb;
72 | | cc;
73 | | ee;
74 | `-> })
`----

View File

@ -1,12 +1,12 @@
x `Symbol` cannot be called as a constructor
,----
2 | new Symbol();
1 | new Symbol();
: ^^^^^^^^^^^^
`----
x `Symbol` cannot be called as a constructor
,----
4 | new A(new Symbol())
3 | new A(new Symbol())
: ^^^^^^^^^^^^
`----

View File

@ -1,97 +1,97 @@
x Do not use 'new' for side effects
,----
2 | new A();
1 | new A();
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
4 | (new A());
3 | (new A());
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
6 | (0, new A());
5 | (0, new A());
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
9 | new A()
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
10 | new A()
13 | new A()
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
14 | new A()
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
20 | a = () => { new A() },
19 | a = () => { new A() },
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
21 | [ b = () => { new A() } ]
20 | [ b = () => { new A() } ]
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
24 | (0, new A(), 0);
23 | (0, new A(), 0);
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
27 | new B();
26 | new B();
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
31 | new A(new A());
30 | new A(new A());
: ^^^^^^^^^^^^^^
`----
x Do not use 'new' for side effects
,-[33:1]
33 | ,-> new A(new A(() => {
34 | | new B();
35 | `-> }));
,-[32:1]
32 | ,-> new A(new A(() => {
33 | | new B();
34 | `-> }));
`----
x Do not use 'new' for side effects
,----
34 | new B();
33 | new B();
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
37 | var x = (new A(), 0);
36 | var x = (new A(), 0);
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
40 | new B();
39 | new B();
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
45 | new B()
44 | new B()
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
49 | function foo(arg = () => { new A() }) {}
48 | function foo(arg = () => { new A() }) {}
: ^^^^^^^
`----

View File

@ -1,18 +1,18 @@
x Do not use 'new' for side effects
,----
2 | new A()
1 | new A()
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
5 | new A()
4 | new A()
: ^^^^^^^
`----
x Do not use 'new' for side effects
,----
10 | new A();
: ^^^^^^^
`----
,----
9 | new A();
: ^^^^^^^
`----

View File

@ -1,12 +1,12 @@
x no 'in' expession
,----
2 | 'a' in { a: 10 };
1 | 'a' in { a: 10 };
: ^^^^^^^^^^^^^^^^
`----
x no 'in' expession
,----
7 | if ('a' in { a: 10 }) {}
6 | if ('a' in { a: 10 }) {}
: ^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x no 'for-in' expession
,----
2 | for (var x in {}) {}
1 | for (var x in {}) {}
: ^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x no 'for-of' expession
,----
2 | for (var x of {}) {}
1 | for (var x of {}) {}
: ^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,9 +1,9 @@
x no label statement
,-[2:1]
2 | ,-> loop1:
3 | |
4 | | while (true) {
5 | | continue loop1;
6 | `-> }
,-[1:1]
1 | ,-> loop1:
2 | |
3 | | while (true) {
4 | | continue loop1;
5 | `-> }
`----

View File

@ -1,6 +1,6 @@
x 'C' was used before it was defined
,----
2 | new C();
1 | new C();
: ^
`----

View File

@ -1,6 +1,6 @@
x 'a' was used before it was defined
,----
11 | console.log(a);
10 | console.log(a);
: ^
`----

View File

@ -1,6 +1,6 @@
x 'foo' was used before it was defined
,----
2 | foo();
1 | foo();
: ^^^
`----

View File

@ -1,84 +1,84 @@
x 'a' was used before it was defined
,----
2 | alert(a);
1 | alert(a);
: ^
`----
x 'a' was used before it was defined
,----
4 | console.log(a);
3 | console.log(a);
: ^
`----
x 'a' was used before it was defined
,----
10 | obj[a];
: ^
`----
,----
9 | obj[a];
: ^
`----
x 'a' was used before it was defined
,----
12 | `${a}`;
11 | `${a}`;
: ^
`----
x 'a' was used before it was defined
,----
14 | [a];
13 | [a];
: ^
`----
x 'a' was used before it was defined
,----
16 | var x = a + "";
15 | var x = a + "";
: ^
`----
x 'a' was used before it was defined
,----
19 | [a]: "",
18 | [a]: "",
: ^
`----
x 'b' was used before it was defined
,----
26 | alert(b);
25 | alert(b);
: ^
`----
x 'a1' was used before it was defined
,----
31 | console.log(a1);
30 | console.log(a1);
: ^^
`----
x 'a3' was used before it was defined
,----
38 | console.log(a3);
37 | console.log(a3);
: ^^
`----
x 'a4' was used before it was defined
,----
43 | console.log(a4);
42 | console.log(a4);
: ^^
`----
x 'a5' was used before it was defined
,----
50 | console.log(a5);
49 | console.log(a5);
: ^^
`----
x 'a6' was used before it was defined
,----
55 | console.log(a6);
54 | console.log(a6);
: ^^
`----
x 'a7' was used before it was defined
,----
60 | console.log(a7);
59 | console.log(a7);
: ^^
`----

View File

@ -1,6 +1,6 @@
x 'a' was used before it was defined
,----
2 | alert(a);
1 | alert(a);
: ^
`----

View File

@ -1,12 +1,12 @@
x Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor
,----
2 | new RegExp(/redundant/);
1 | new RegExp(/redundant/);
: ^^^^^^^^^^^^^^^^^^^^^^^
`----
x Use regular expression literal with flags instead of the 'RegExp' constructor
,----
4 | new RegExp(/redundant/, "g");
3 | new RegExp(/redundant/, "g");
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,18 +1,18 @@
x Use a regular expression literal instead of the 'RegExp' constructor
,----
2 | new globalThis.RegExp("a", "b");
1 | new globalThis.RegExp("a", "b");
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Use a regular expression literal instead of the 'RegExp' constructor
,----
3 | new globalThis["RegExp"]("a", "b");
2 | new globalThis["RegExp"]("a", "b");
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Use a regular expression literal instead of the 'RegExp' constructor
,----
4 | globalThis.RegExp("a", "b");
3 | globalThis.RegExp("a", "b");
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,48 +1,48 @@
x Use a regular expression literal instead of the 'RegExp' constructor
,----
2 | new RegExp("abc");
1 | new RegExp("abc");
: ^^^^^^^^^^^^^^^^^
`----
x Use a regular expression literal instead of the 'RegExp' constructor
,----
3 | new RegExp("abc", "u");
2 | new RegExp("abc", "u");
: ^^^^^^^^^^^^^^^^^^^^^^
`----
x Use a regular expression literal instead of the 'RegExp' constructor
,----
4 | RegExp("abc");
3 | RegExp("abc");
: ^^^^^^^^^^^^^
`----
x Use a regular expression literal instead of the 'RegExp' constructor
,----
5 | RegExp("abc", "u");
4 | RegExp("abc", "u");
: ^^^^^^^^^^^^^^^^^^
`----
x Use a regular expression literal instead of the 'RegExp' constructor
,----
6 | new RegExp("\\d\\d\\.\\d\\d\\.\\d\\d\\d\\d");
5 | new RegExp("\\d\\d\\.\\d\\d\\.\\d\\d\\d\\d");
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Use a regular expression literal instead of the 'RegExp' constructor
,----
7 | RegExp(`^\\d\\.$`);
6 | RegExp(`^\\d\\.$`);
: ^^^^^^^^^^^^^^^^^^
`----
x Use a regular expression literal instead of the 'RegExp' constructor
,----
8 | new RegExp(String.raw`^\d\.$`);
7 | new RegExp(String.raw`^\d\.$`);
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Use a regular expression literal instead of the 'RegExp' constructor
,----
39 | new RegExp("a");
38 | new RegExp("a");
: ^^^^^^^^^^^^^^^
`----

View File

@ -1,24 +1,24 @@
x String must use doublequotes
,----
2 | var s = `template string`;
1 | var s = `template string`;
: ^^^^^^^^^^^^^^^^^
`----
x String must use doublequotes
,----
3 | var s = `template string with "escape"`;
2 | var s = `template string with "escape"`;
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x String must use doublequotes
,----
6 | var s = 'single quotes string';
5 | var s = 'single quotes string';
: ^^^^^^^^^^^^^^^^^^^^^^
`----
x String must use doublequotes
,----
8 | var s = 'single quotes string with "escape"';
7 | var s = 'single quotes string with "escape"';
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x String must use backtick quotes
,----
2 | var s = "double quotes string";
1 | var s = "double quotes string";
: ^^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,18 +1,18 @@
x String must use singlequotes
,----
2 | var s = `template string`;
1 | var s = `template string`;
: ^^^^^^^^^^^^^^^^^
`----
x String must use singlequotes
,----
3 | var s = `template string with "escape"`;
2 | var s = `template string with "escape"`;
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x String must use singlequotes
,----
9 | var s = "double quotes string";
8 | var s = "double quotes string";
: ^^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x String must use backtick quotes
,----
2 | var s = "double quotes string";
1 | var s = "double quotes string";
: ^^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x String must use doublequotes
,----
3 | var s = 'double quotes string';
2 | var s = 'double quotes string';
: ^^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x String must use singlequotes
,----
2 | var s = "double quotes string";
1 | var s = "double quotes string";
: ^^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,24 +1,24 @@
x Invalid radix parameter, must be an integer between 2 and 36
,----
15 | parseInt("12", 1);
14 | parseInt("12", 1);
: ^^^^^^^^^^^^^^^^^
`----
x Invalid radix parameter, must be an integer between 2 and 36
,----
18 | parseInt("12", 37);
17 | parseInt("12", 37);
: ^^^^^^^^^^^^^^^^^^
`----
x Missing parameters
,----
21 | parseInt();
20 | parseInt();
: ^^^^^^^^^^
`----
x Redundant radix parameter
,----
24 | parseInt("12", 10);
23 | parseInt("12", 10);
: ^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,139 +1,139 @@
x Missing radix parameter
,----
3 | parseInt("12");
2 | parseInt("12");
: ^^^^^^^^^^^^^^
`----
Error:
> Add radix parameter `10` for parsing decimal numbers
,----
3 | parseInt("12");
2 | parseInt("12");
: ^^^^^^^^^^^^^^
`----
x Missing radix parameter
,----
6 | Number.parseInt("12");
5 | Number.parseInt("12");
: ^^^^^^^^^^^^^^^^^^^^^
`----
Error:
> Add radix parameter `10` for parsing decimal numbers
,----
6 | Number.parseInt("12");
5 | Number.parseInt("12");
: ^^^^^^^^^^^^^^^^^^^^^
`----
x Missing radix parameter
,----
9 | globalThis.parseInt("12");
8 | globalThis.parseInt("12");
: ^^^^^^^^^^^^^^^^^^^^^^^^^
`----
Error:
> Add radix parameter `10` for parsing decimal numbers
,----
9 | globalThis.parseInt("12");
8 | globalThis.parseInt("12");
: ^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Missing radix parameter
,----
12 | Number['parseInt']("12");
11 | Number['parseInt']("12");
: ^^^^^^^^^^^^^^^^^^^^^^^^
`----
Error:
> Add radix parameter `10` for parsing decimal numbers
,----
12 | Number['parseInt']("12");
11 | Number['parseInt']("12");
: ^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Invalid radix parameter, must be an integer between 2 and 36
,----
15 | parseInt("12", 1);
14 | parseInt("12", 1);
: ^^^^^^^^^^^^^^^^^
`----
x Invalid radix parameter, must be an integer between 2 and 36
,----
18 | parseInt("12", 37);
17 | parseInt("12", 37);
: ^^^^^^^^^^^^^^^^^^
`----
x Missing parameters
,----
21 | parseInt();
20 | parseInt();
: ^^^^^^^^^^
`----
x Invalid radix parameter, must be an integer between 2 and 36
,----
24 | parseInt("12", "abc");
23 | parseInt("12", "abc");
: ^^^^^^^^^^^^^^^^^^^^^
`----
x Missing radix parameter
,----
37 | this.parseInt("12");
36 | this.parseInt("12");
: ^^^^^^^^^^^^^^^^^^^
`----
Error:
> Add radix parameter `10` for parsing decimal numbers
,----
37 | this.parseInt("12");
36 | this.parseInt("12");
: ^^^^^^^^^^^^^^^^^^^
`----
x Missing radix parameter
,----
41 | globalThis.parseInt("12");
40 | globalThis.parseInt("12");
: ^^^^^^^^^^^^^^^^^^^^^^^^^
`----
Error:
> Add radix parameter `10` for parsing decimal numbers
,----
41 | globalThis.parseInt("12");
40 | globalThis.parseInt("12");
: ^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Missing radix parameter
,----
44 | globalThis?.parseInt("12");
43 | globalThis?.parseInt("12");
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
Error:
> Add radix parameter `10` for parsing decimal numbers
,----
44 | globalThis?.parseInt("12");
43 | globalThis?.parseInt("12");
: ^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Invalid radix parameter, must be an integer between 2 and 36
,----
47 | parseInt("12", ("abc"));
46 | parseInt("12", ("abc"));
: ^^^^^^^^^^^^^^^^^^^^^^^
`----
x Invalid radix parameter, must be an integer between 2 and 36
,----
53 | parseInt("12", 2.4);
52 | parseInt("12", 2.4);
: ^^^^^^^^^^^^^^^^^^^
`----
x Invalid radix parameter, must be an integer between 2 and 36
,----
56 | parseInt(`12`, `10`);
55 | parseInt(`12`, `10`);
: ^^^^^^^^^^^^^^^^^^^^
`----
x Invalid radix parameter, must be an integer between 2 and 36
,----
59 | console.log(parseInt('10', '10'));
58 | console.log(parseInt('10', '10'));
: ^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Expected literal to be on the left side of <
,----
4 | if (a < 10) {}
3 | if (a < 10) {}
: ^^^^^^
`----

View File

@ -1,42 +1,42 @@
x Expected literal to be on the right side of ===
,----
2 | if (10 === a) {}
1 | if (10 === a) {}
: ^^^^^^^^
`----
x Expected literal to be on the right side of ===
,----
4 | if ('a' === a)
3 | if ('a' === a)
: ^^^^^^^^^
`----
x Expected literal to be on the right side of ===
,----
6 | if (`abc` === a) {}
5 | if (`abc` === a) {}
: ^^^^^^^^^^^
`----
x Expected literal to be on the right side of ===
,----
8 | if (-10 === a) {}
7 | if (-10 === a) {}
: ^^^^^^^^^
`----
x Expected literal to be on the right side of <
,----
10 | if (10 < a && a > 30) {}
: ^^^^^^
`----
,----
9 | if (10 < a && a > 30) {}
: ^^^^^^
`----
x Expected literal to be on the right side of <
,----
12 | if (c && (10 < a && a > 30)) {}
11 | if (c && (10 < a && a > 30)) {}
: ^^^^^^
`----
x Expected literal to be on the right side of ===
,----
24 | if ((foo === 1) && (1 === foo)) {}
23 | if ((foo === 1) && (1 === foo)) {}
: ^^^^^^^^^
`----

View File

@ -1,12 +1,12 @@
x Expected literal to be on the right side of >
,----
2 | if (10 > a) {}
1 | if (10 > a) {}
: ^^^^^^
`----
x Expected literal to be on the right side of <
,----
8 | if (c && (10 < a) && a > 30) {}
7 | if (c && (10 < a) && a > 30) {}
: ^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Expected literal to be on the right side of ===
,----
2 | if (10 === a) {}
1 | if (10 === a) {}
: ^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected unknown at-rule "@test".
,-[$DIR/tests/rules/fail/at-rule-no-unknown/default/input.css:2:1]
2 | @test {
,-[$DIR/tests/rules/fail/at-rule-no-unknown/default/input.css:1:1]
1 | @test {
: ^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected unknown at-rule "@test".
,-[$DIR/tests/rules/fail/at-rule-no-unknown/ignored/input.css:2:1]
2 | @test {
,-[$DIR/tests/rules/fail/at-rule-no-unknown/ignored/input.css:1:1]
1 | @test {
: ^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected empty block.
,-[$DIR/tests/rules/fail/block-no-empty/default/input.css:2:1]
2 | a {}
,-[$DIR/tests/rules/fail/block-no-empty/default/input.css:1:1]
1 | a {}
: ^^
`----

View File

@ -1,24 +1,24 @@
x Expected alpha channel in '#fff'.
,-[$DIR/tests/rules/fail/color-hex-alpha/always/input.css:2:1]
2 | a { color: #fff; }
,-[$DIR/tests/rules/fail/color-hex-alpha/always/input.css:1:1]
1 | a { color: #fff; }
: ^^^^
`----
x Expected alpha channel in '#ffffff'.
,-[$DIR/tests/rules/fail/color-hex-alpha/always/input.css:3:1]
3 | a { color: #ffffff; }
,-[$DIR/tests/rules/fail/color-hex-alpha/always/input.css:2:1]
2 | a { color: #ffffff; }
: ^^^^^^^
`----
x Expected alpha channel in '#fff'.
,-[$DIR/tests/rules/fail/color-hex-alpha/always/input.css:4:1]
4 | a { background: linear-gradient(to left, #fff, #000000 100%); }
,-[$DIR/tests/rules/fail/color-hex-alpha/always/input.css:3:1]
3 | a { background: linear-gradient(to left, #fff, #000000 100%); }
: ^^^^
`----
x Expected alpha channel in '#000000'.
,-[$DIR/tests/rules/fail/color-hex-alpha/always/input.css:4:1]
4 | a { background: linear-gradient(to left, #fff, #000000 100%); }
,-[$DIR/tests/rules/fail/color-hex-alpha/always/input.css:3:1]
3 | a { background: linear-gradient(to left, #fff, #000000 100%); }
: ^^^^^^^
`----

View File

@ -1,12 +1,12 @@
x Unxpected alpha channel in '#ffff'.
,-[$DIR/tests/rules/fail/color-hex-alpha/never/input.css:2:1]
2 | a { color: #ffff; }
,-[$DIR/tests/rules/fail/color-hex-alpha/never/input.css:1:1]
1 | a { color: #ffff; }
: ^^^^^
`----
x Unxpected alpha channel in '#ffffffff'.
,-[$DIR/tests/rules/fail/color-hex-alpha/never/input.css:3:1]
3 | a { color: #ffffffff; }
,-[$DIR/tests/rules/fail/color-hex-alpha/never/input.css:2:1]
2 | a { color: #ffffffff; }
: ^^^^^^^^^
`----

View File

@ -1,18 +1,18 @@
x Hex color value '#FFF' should be written into: '#FFFFFF'.
,-[$DIR/tests/rules/fail/color-hex-length/long/input.css:3:5]
3 | color: #FFF;
,-[$DIR/tests/rules/fail/color-hex-length/long/input.css:2:5]
2 | color: #FFF;
: ^^^^
`----
x Hex color value '#abcd' should be written into: '#aabbccdd'.
,-[$DIR/tests/rules/fail/color-hex-length/long/input.css:4:5]
4 | color: #abcd;
,-[$DIR/tests/rules/fail/color-hex-length/long/input.css:3:5]
3 | color: #abcd;
: ^^^^^
`----
x Hex color value '#123' should be written into: '#112233'.
,-[$DIR/tests/rules/fail/color-hex-length/long/input.css:5:5]
5 | color: #123;
,-[$DIR/tests/rules/fail/color-hex-length/long/input.css:4:5]
4 | color: #123;
: ^^^^
`----

View File

@ -1,18 +1,18 @@
x Hex color value '#FFFFFF' should be written into: '#FFF'.
,-[$DIR/tests/rules/fail/color-hex-length/short/input.css:3:5]
3 | color: #FFFFFF;
,-[$DIR/tests/rules/fail/color-hex-length/short/input.css:2:5]
2 | color: #FFFFFF;
: ^^^^^^^
`----
x Hex color value '#aabbccdd' should be written into: '#abcd'.
,-[$DIR/tests/rules/fail/color-hex-length/short/input.css:4:5]
4 | color: #aabbccdd;
,-[$DIR/tests/rules/fail/color-hex-length/short/input.css:3:5]
3 | color: #aabbccdd;
: ^^^^^^^^^
`----
x Hex color value '#112233' should be written into: '#123'.
,-[$DIR/tests/rules/fail/color-hex-length/short/input.css:5:5]
5 | color: #112233;
,-[$DIR/tests/rules/fail/color-hex-length/short/input.css:4:5]
4 | color: #112233;
: ^^^^^^^
`----

View File

@ -1,24 +1,24 @@
x Unexpected invalid hex color '#ababa'.
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:3:5]
3 | color: #ababa;
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:2:5]
2 | color: #ababa;
: ^^^^^^
`----
x Unexpected invalid hex color '#00'.
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:7:5]
7 | unknown: #00, #fff, #ababab;
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:6:5]
6 | unknown: #00, #fff, #ababab;
: ^^^
`----
x Unexpected invalid hex color '#12345abcdefg'.
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:11:5]
11 | color: #12345abcdefg;
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:10:5]
10 | color: #12345abcdefg;
: ^^^^^^^^^^^^^
`----
x Unexpected invalid hex color '#xyz'.
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:15:5]
15 | color: #xyz;
,-[$DIR/tests/rules/fail/color-no-invalid-hex/input.css:14:5]
14 | color: #xyz;
: ^^^^
`----

View File

@ -1,42 +1,42 @@
x Unexpected missing var function for '--foo'.
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:2:1]
2 | a { color: --foo; }
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:1:1]
1 | a { color: --foo; }
: ^^^^^
`----
x Unexpected missing var function for '--foo'.
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:3:1]
3 | a { color: env(--foo); }
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:2:1]
2 | a { color: env(--foo); }
: ^^^^^
`----
x Unexpected missing var function for '--foo'.
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:4:1]
4 | a { color: color(--foo 0% 0% 0% 0%); }
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:3:1]
3 | a { color: color(--foo 0% 0% 0% 0%); }
: ^^^^^
`----
x Unexpected missing var function for '--foo'.
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:5:1]
5 | a { --foo: red; color: --foo; }
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:4:1]
4 | a { --foo: red; color: --foo; }
: ^^^^^
`----
x Unexpected missing var function for '--foo'.
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:6:1]
6 | @property --foo {} a { color: --foo; }
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:5:1]
5 | @property --foo {} a { color: --foo; }
: ^^^^^
`----
x Unexpected missing var function for '--foo'.
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:7:1]
7 | :root { --foo: pink; } a { color: --foo, red; }
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:6:1]
6 | :root { --foo: pink; } a { color: --foo, red; }
: ^^^^^
`----
x Unexpected missing var function for '--bar'.
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:8:1]
8 | :root { --bar: 0; } a { color: --foo(--bar); }
,-[$DIR/tests/rules/fail/custom-property-no-missing-var-function/input.css:7:1]
7 | :root { --bar: 0; } a { color: --foo(--bar); }
: ^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected '!important'.
,-[$DIR/tests/rules/fail/declaration-no-important/default/input.css:3:5]
3 | color: #000 !important;
,-[$DIR/tests/rules/fail/declaration-no-important/default/input.css:2:5]
2 | color: #000 !important;
: ^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected '!important'.
,-[$DIR/tests/rules/fail/declaration-no-important/keyframe/input.css:13:5]
13 | color: #111 !important;
,-[$DIR/tests/rules/fail/declaration-no-important/keyframe/input.css:12:5]
12 | color: #111 !important;
: ^^^^^^^^^^
`----

View File

@ -1,54 +1,54 @@
x Unexpected duplicate name 'sans-serif'.
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:2:1]
2 | a { font-family: "Lucida Grande", 'Arial', sans-serif, sans-serif; }
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:1:1]
1 | a { font-family: "Lucida Grande", 'Arial', sans-serif, sans-serif; }
: ^^^^^^^^^^
`----
x Unexpected duplicate name 'Arial'.
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:3:1]
3 | a { font-family: 'Arial', "Lucida Grande", Arial, sans-serif; }
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:2:1]
2 | a { font-family: 'Arial', "Lucida Grande", Arial, sans-serif; }
: ^^^^^
`----
x Unexpected duplicate name 'Lucida Grande'.
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:4:1]
4 | a { fOnT-fAmIlY: ' Lucida Grande ', "Lucida Grande", sans-serif; }
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:3:1]
3 | a { fOnT-fAmIlY: ' Lucida Grande ', "Lucida Grande", sans-serif; }
: ^^^^^^^^^^^^^^^
`----
x Unexpected duplicate name 'Times'.
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:5:1]
5 | a { font-family: 'Times', Times, "serif", serif; }
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:4:1]
4 | a { font-family: 'Times', Times, "serif", serif; }
: ^^^^^
`----
x Unexpected duplicate name 'Times New Roman'.
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:6:1]
6 | a { font-family: Times New Roman, Times, Times New Roman; }
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:5:1]
5 | a { font-family: Times New Roman, Times, Times New Roman; }
: ^^^^^^^^^^^^^^^
`----
x Unexpected duplicate name 'Arial'.
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:7:1]
7 | a { FONT: italic 300 16px/30px Arial, " Arial", serif; }
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:6:1]
6 | a { FONT: italic 300 16px/30px Arial, " Arial", serif; }
: ^^^^^^^^
`----
x Unexpected duplicate name 'sans-serif'.
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:8:1]
8 | b { font: normal 14px/32px -apple-system, BlinkMacSystemFont, sans-serif, sans-serif; }
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:7:1]
7 | b { font: normal 14px/32px -apple-system, BlinkMacSystemFont, sans-serif, sans-serif; }
: ^^^^^^^^^^
`----
x Unexpected duplicate name 'Times New Roman'.
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:9:1]
9 | b { font: bold 12px/14px Times New Roman, Times, Times New Roman; }
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:8:1]
8 | b { font: bold 12px/14px Times New Roman, Times, Times New Roman; }
: ^^^^^^^^^^^^^^^
`----
x Unexpected duplicate name 'Times New Roman'.
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:10:1]
10 | b { font: 80% Times New Roman, Times, Times New Roman; }
: ^^^^^^^^^^^^^^^
`----
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/default/input.css:9:1]
9 | b { font: 80% Times New Roman, Times, Times New Roman; }
: ^^^^^^^^^^^^^^^
`----

View File

@ -1,12 +1,12 @@
x Unexpected duplicate name 'Roberto Mono'.
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/ignored/input.css:2:1]
2 | pre { font-family: "Roberto Mono", "Roberto Mono", monospace; }
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/ignored/input.css:1:1]
1 | pre { font-family: "Roberto Mono", "Roberto Mono", monospace; }
: ^^^^^^^^^^^^^^
`----
x Unexpected duplicate name 'My-font'.
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/ignored/input.css:3:1]
3 | pre { font-family: My-font, "My-font", sans-serif; }
,-[$DIR/tests/rules/fail/font-family-no-duplicate-names/ignored/input.css:2:1]
2 | pre { font-family: My-font, "My-font", sans-serif; }
: ^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected '!important'.
,-[$DIR/tests/rules/fail/keyframe-declaration-no-important/input.css:7:9]
7 | opacity: 1 !important;
,-[$DIR/tests/rules/fail/keyframe-declaration-no-important/input.css:6:9]
6 | opacity: 1 !important;
: ^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected duplicate '@import' rule 'a.css'.
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/1/input.css:2:1]
2 | @import 'a.css'; @import 'a.css';
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/1/input.css:1:1]
1 | @import 'a.css'; @import 'a.css';
: ^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected duplicate '@import' rule 'a.css'.
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/10/input.css:3:1]
3 | @ImPoRt 'a.css';
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/10/input.css:2:1]
2 | @ImPoRt 'a.css';
: ^^^^^^^^^^^^^^^^
`----

View File

@ -1,18 +1,18 @@
x Unexpected duplicate '@import' rule 'a.css'.
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/11/input.css:3:1]
3 | @import 'a.css' layer();
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/11/input.css:2:1]
2 | @import 'a.css' layer();
: ^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Unexpected duplicate '@import' rule 'a.css'.
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/11/input.css:4:1]
4 | @import 'a.css' layer(default);
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/11/input.css:3:1]
3 | @import 'a.css' layer(default);
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----
x Unexpected duplicate '@import' rule 'a.css'.
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/11/input.css:5:1]
5 | @import 'a.css' layer(other);
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/11/input.css:4:1]
4 | @import 'a.css' layer(other);
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected duplicate '@import' rule 'a.css'.
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/2/input.css:2:1]
2 | @import url("a.css"); @import url("a.css");
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/2/input.css:1:1]
1 | @import url("a.css"); @import url("a.css");
: ^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected duplicate '@import' rule 'a.css'.
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/3/input.css:3:1]
3 | @import 'a.css';
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/3/input.css:2:1]
2 | @import 'a.css';
: ^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected duplicate '@import' rule 'a.css'.
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/4/input.css:2:1]
2 | @import "a.css"; @import 'b.css'; @import url(a.css);
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/4/input.css:1:1]
1 | @import "a.css"; @import 'b.css'; @import url(a.css);
: ^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected duplicate '@import' rule 'a.css'.
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/5/input.css:2:1]
2 | @import url('a.css') tv; @import 'a.css' tv;
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/5/input.css:1:1]
1 | @import url('a.css') tv; @import 'a.css' tv;
: ^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected duplicate '@import' rule 'a.css'.
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/6/input.css:2:1]
2 | @import url('a.css') tv, projection; @import 'a.css' projection, tv;
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/6/input.css:1:1]
1 | @import url('a.css') tv, projection; @import 'a.css' projection, tv;
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected duplicate '@import' rule 'a.css'.
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/7/input.css:2:1]
2 | @import url('a.css') tv, projection; @import 'a.css' projection, screen, tv;
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/7/input.css:1:1]
1 | @import url('a.css') tv, projection; @import 'a.css' projection, screen, tv;
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected duplicate '@import' rule 'a.css'.
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/8/input.css:2:1]
2 | @import url('a.css') tv, projection; @import 'a.css' screen, tv;
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/8/input.css:1:1]
1 | @import url('a.css') tv, projection; @import 'a.css' screen, tv;
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected duplicate '@import' rule 'a.css'.
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/9/input.css:3:1]
3 | @import url(a.css) ( min-width:500px ), tv;
,-[$DIR/tests/rules/fail/no-duplicate-at-import-rules/9/input.css:2:1]
2 | @import url(a.css) ( min-width:500px ), tv;
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected empty source.
,-[$DIR/tests/rules/fail/no-empty-source/comments/input.css:2:1]
2 | /* comments */
,-[$DIR/tests/rules/fail/no-empty-source/comments/input.css:1:1]
1 | /* comments */
: ^
`----

View File

@ -1,12 +1,12 @@
x Unexpected invalid position '@import' rule.
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/default/after-other-at-rule/input.css:5:1]
5 | @import "kumiko.css";
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/default/after-other-at-rule/input.css:4:1]
4 | @import "kumiko.css";
: ^^^^^^^^^^^^^^^^^^^^^
`----
x Unexpected invalid position '@import' rule.
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/default/after-other-at-rule/input.css:6:1]
6 | @import "reina.css";
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/default/after-other-at-rule/input.css:5:1]
5 | @import "reina.css";
: ^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected invalid position '@import' rule.
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/default/after-other-rule/input.css:7:1]
7 | @import "reina.css";
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/default/after-other-rule/input.css:6:1]
6 | @import "reina.css";
: ^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Unexpected invalid position '@import' rule.
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/default/at-layer-rule/input.css:7:1]
7 | @import "kumiko.css";
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/default/at-layer-rule/input.css:6:1]
6 | @import "kumiko.css";
: ^^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,12 +1,12 @@
x Unexpected invalid position '@import' rule.
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/default/fail-all/input.css:5:1]
5 | @import "kumiko.css";
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/default/fail-all/input.css:4:1]
4 | @import "kumiko.css";
: ^^^^^^^^^^^^^^^^^^^^^
`----
x Unexpected invalid position '@import' rule.
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/default/fail-all/input.css:6:1]
6 | @import "reina.css";
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/default/fail-all/input.css:5:1]
5 | @import "reina.css";
: ^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,12 +1,12 @@
x Unexpected invalid position '@import' rule.
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/ignored/input.css:5:1]
5 | @import "kumiko.css";
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/ignored/input.css:4:1]
4 | @import "kumiko.css";
: ^^^^^^^^^^^^^^^^^^^^^
`----
x Unexpected invalid position '@import' rule.
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/ignored/input.css:6:1]
6 | @import "reina.css";
,-[$DIR/tests/rules/fail/no-invalid-position-at-import-rule/ignored/input.css:5:1]
5 | @import "reina.css";
: ^^^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,6 +1,6 @@
x Expected selector to have no more than 1 class, but 2 actually.
,-[$DIR/tests/rules/fail/selector-max-class/custom/input.css:2:1]
2 | .a.b {
,-[$DIR/tests/rules/fail/selector-max-class/custom/input.css:1:1]
1 | .a.b {
: ^^^^
`----

View File

@ -1,24 +1,24 @@
x Expected selector to have no more than 3 classes, but 4 actually.
,-[$DIR/tests/rules/fail/selector-max-class/default/input.css:2:1]
2 | .a.b.c.d {
,-[$DIR/tests/rules/fail/selector-max-class/default/input.css:1:1]
1 | .a.b.c.d {
: ^^^^^^^^
`----
x Expected selector to have no more than 3 classes, but 4 actually.
,-[$DIR/tests/rules/fail/selector-max-class/default/input.css:5:1]
5 | .a .b .c .d {
,-[$DIR/tests/rules/fail/selector-max-class/default/input.css:4:1]
4 | .a .b .c .d {
: ^^^^^^^^^^^
`----
x Expected selector to have no more than 3 classes, but 4 actually.
,-[$DIR/tests/rules/fail/selector-max-class/default/input.css:9:5]
9 | .a.b.c.d {
,-[$DIR/tests/rules/fail/selector-max-class/default/input.css:8:5]
8 | .a.b.c.d {
: ^^^^^^^^
`----
x Expected selector to have no more than 3 classes, but 4 actually.
,-[$DIR/tests/rules/fail/selector-max-class/default/input.css:13:1]
13 | :not(.a.b.c.d) {
,-[$DIR/tests/rules/fail/selector-max-class/default/input.css:12:1]
12 | :not(.a.b.c.d) {
: ^^^^^^^^
`----

View File

@ -1,18 +1,18 @@
x Expected selector to have no more than 2 combinators, but 3 actually.
,-[$DIR/tests/rules/fail/selector-max-combinators/custom/input.css:4:1]
4 | .a .b .c .d {}
,-[$DIR/tests/rules/fail/selector-max-combinators/custom/input.css:3:1]
3 | .a .b .c .d {}
: ^^^^^^^^^^^
`----
x Expected selector to have no more than 2 combinators, but 3 actually.
,-[$DIR/tests/rules/fail/selector-max-combinators/custom/input.css:5:1]
5 | .a + .b > .c ~ .d {}
,-[$DIR/tests/rules/fail/selector-max-combinators/custom/input.css:4:1]
4 | .a + .b > .c ~ .d {}
: ^^^^^^^^^^^^^^^^^
`----
x Expected selector to have no more than 2 combinators, but 3 actually.
,-[$DIR/tests/rules/fail/selector-max-combinators/custom/input.css:6:1]
6 | .a ~ .b || .c + .d {}
,-[$DIR/tests/rules/fail/selector-max-combinators/custom/input.css:5:1]
5 | .a ~ .b || .c + .d {}
: ^^^^^^^^^^^^^^^^^^
`----

View File

@ -1,12 +1,12 @@
x Expected selector to have no more than 3 combinators, but 4 actually.
,-[$DIR/tests/rules/fail/selector-max-combinators/default/input.css:2:1]
2 | .a ~ .b + .c .d > .e {}
,-[$DIR/tests/rules/fail/selector-max-combinators/default/input.css:1:1]
1 | .a ~ .b + .c .d > .e {}
: ^^^^^^^^^^^^^^^^^^^^
`----
x Expected selector to have no more than 3 combinators, but 4 actually.
,-[$DIR/tests/rules/fail/selector-max-combinators/default/input.css:3:1]
3 | .a .b .c .d .e {}
,-[$DIR/tests/rules/fail/selector-max-combinators/default/input.css:2:1]
2 | .a .b .c .d .e {}
: ^^^^^^^^^^^^^^
`----

Some files were not shown because too many files have changed in this diff Show More