A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/antfu/eslint-config/commit/2dfb5fd below:

enable basic jsx stylistic rules, close #185 · antfu/eslint-config@2dfb5fd · GitHub

File tree Expand file treeCollapse file tree 17 files changed

+648

-46

lines changed

Filter options

Expand file treeCollapse file tree 17 files changed

+648

-46

lines changed Original file line number Diff line number Diff line change

@@ -0,0 +1,16 @@

1 +

export function Component1() {

2 +

return <div/>;

3 +

}

4 + 5 +

export function jsx2() {

6 +

const props = {a:1,

7 +

b:2}

8 +

return < a foo= 'bar' bar={`foo` } >

9 +

<div {...props }

10 +

a={1}

11 +

b="2">Inline Text</div>

12 +

<Component1>

13 +

Block Text

14 +

</Component1>

15 +

</ a >

16 +

}

Original file line number Diff line number Diff line change

@@ -0,0 +1,17 @@

1 +

export function Component1() {

2 +

return <div />

3 +

}

4 + 5 +

export function jsx2() {

6 +

const props = { a: 1, b: 2 }

7 +

return (<a foo="bar" bar={`foo`} >

8 +

<div

9 +

{...props}

10 +

a={1}

11 +

b="2"

12 +

>Inline Text</div>

13 +

<Component1>

14 +

Block Text

15 +

</Component1>

16 +

</a >)

17 +

}

Original file line number Diff line number Diff line change

@@ -0,0 +1 @@

1 +

// unchanged

Original file line number Diff line number Diff line change

@@ -1 +1 @@

1 -

// unchanged

1 +

// unchanged

Original file line number Diff line number Diff line change

@@ -1 +1 @@

1 -

// unchanged

1 +

// unchanged

Original file line number Diff line number Diff line change

@@ -1 +1 @@

1 -

// unchanged

1 +

// unchanged

Original file line number Diff line number Diff line change

@@ -0,0 +1 @@

1 +

// unchanged

Original file line number Diff line number Diff line change

@@ -0,0 +1,17 @@

1 +

export function Component1() {

2 +

return <div />

3 +

}

4 + 5 +

export function jsx2() {

6 +

const props = { a: 1, b: 2 }

7 +

return (<a foo="bar" bar={`foo`} >

8 +

<div

9 +

{...props}

10 +

a={1}

11 +

b="2"

12 +

>Inline Text</div>

13 +

<Component1>

14 +

Block Text

15 +

</Component1>

16 +

</a >)

17 +

}

Original file line number Diff line number Diff line change

@@ -0,0 +1,17 @@

1 +

export function Component1() {

2 +

return <div />

3 +

}

4 + 5 +

export function jsx2() {

6 +

const props = { a: 1, b: 2 }

7 +

return (<a foo="bar" bar={`foo`} >

8 +

<div

9 +

{...props}

10 +

a={1}

11 +

b="2"

12 +

>Inline Text</div>

13 +

<Component1>

14 +

Block Text

15 +

</Component1>

16 +

</a >)

17 +

}

Original file line number Diff line number Diff line change

@@ -38,7 +38,7 @@

38 38

},

39 39

"dependencies": {

40 40

"@antfu/eslint-define-config": "^1.23.0-1",

41 -

"@stylistic/eslint-plugin": "0.0.6",

41 +

"@stylistic/eslint-plugin": "0.0.8",

42 42

"@typescript-eslint/eslint-plugin": "^6.7.4",

43 43

"@typescript-eslint/parser": "^6.7.4",

44 44

"eslint-config-flat-gitignore": "^0.1.0",

@@ -64,7 +64,7 @@

64 64

"devDependencies": {

65 65

"@antfu/eslint-config": "workspace:*",

66 66

"@antfu/ni": "^0.21.8",

67 -

"@stylistic/eslint-plugin-migrate": "^0.0.6",

67 +

"@stylistic/eslint-plugin-migrate": "^0.0.8",

68 68

"@types/eslint": "^8.44.3",

69 69

"@types/fs-extra": "^11.0.2",

70 70

"@types/node": "^20.8.3",

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4