Skip to content

Commit 3c55f30

Browse files
committed
fixes
1 parent ab090dc commit 3c55f30

File tree

3 files changed

+72
-0
lines changed

3 files changed

+72
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* eslint-disable no-unused-vars */
2+
3+
import 'eslint';
4+
import pkg from '../../package';
5+
6+
console.warn('Used dep', pkg);
7+
8+
const requireInFunc = () => require('path');
9+
10+
const dynamicRequire = () => require(`${'path'}`);
11+
12+
export const notDefault = 1;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/* eslint-disable no-unused-vars */
2+
3+
const objInstance = {};
4+
5+
const objWihMetods = {
6+
hello: () => {
7+
console.warn('hello');
8+
},
9+
};
10+
11+
const objProps = {
12+
a: 1,
13+
};
14+
15+
Object.prototype.hasOwnProperty.call(objProps, 'a');
16+
17+
const mergedObj = { ...{ a: 1 }, ...{ b: 2 } };
18+
19+
const objectProps = { a: 1 };
20+
const props = objectProps.a;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
const foo = 'bar';
2+
console.warn('used variable', foo);
3+
4+
/* eslint-disable no-unused-vars */
5+
6+
const float = .2;
7+
8+
const _underscoredVariable = 1;
9+
10+
let canChange = 1;
11+
canChange = 2;
12+
13+
const singleQuotes = 'Hello';
14+
15+
const templateString = `Capt. ${'Name'}`;
16+
17+
const longText = `
18+
This is a super long error that was thrown because
19+
of Batman. When you stop to think about how Batman had anything to do
20+
with this, you would get nowhere
21+
fast.
22+
`;
23+
24+
const longTextAlternative = 'This is a super long error that was thrown because of Batman. When you stop to think about how Batman had anything to do with this, you would get nowhere fast.';
25+
26+
const escapedString = 'Ba\' \t';
27+
28+
let plusPlus = 1;
29+
plusPlus += 1;
30+
31+
const number = Number(1);
32+
const numberParse = parseInt('1', 10);
33+
34+
const str = String('string');
35+
36+
const bool = Boolean('string');
37+
38+
class Cls {}
39+
// expect: new-cap
40+
const instance = new Cls();

0 commit comments

Comments
 (0)