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/9326e10 below:

update stylistic plugins · antfu/eslint-config@9326e10 · GitHub

File tree Expand file treeCollapse file tree 10 files changed

+136

-193

lines changed

Filter options

Expand file treeCollapse file tree 10 files changed

+136

-193

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

@@ -1,4 +1,5 @@

1 1

import sortKeys from 'eslint-plugin-sort-keys'

2 +

import styleMigrate from '@stylistic/eslint-plugin-migrate'

2 3

import antfu from './dist/index.js'

3 4 4 5

export default antfu(

@@ -20,4 +21,13 @@ export default antfu(

20 21

'sort-keys/sort-keys-fix': 'error',

21 22

},

22 23

},

24 +

{

25 +

files: ['src/configs/*.ts'],

26 +

plugins: {

27 +

'style-migrate': styleMigrate,

28 +

},

29 +

rules: {

30 +

'style-migrate/migrate': ['error', { namespaceTo: 'style' }],

31 +

},

32 +

},

23 33

)

Original file line number Diff line number Diff line change

@@ -72,7 +72,7 @@ class Dog extends Animal {

72 72

const dog = new Dog('Buddy');

73 73

dog.bark();

74 74 75 -

function fn (): string {

75 +

const fn = (): string => {

76 76

return `hello${ 1}`

77 77

}

78 78 Original file line number Diff line number Diff line change

@@ -6,9 +6,9 @@ const greeting = ref('Hello, Vue 3!');

6 6

const counter = ref<number | string>(0);

7 7 8 8

// Define a function

9 -

function incrementCounter () {

9 +

const incrementCounter = () => {

10 10

counter.value++;

11 -

}

11 +

};

12 12

</script>

13 13 14 14

<template>

Original file line number Diff line number Diff line change

@@ -6,9 +6,9 @@ const greeting = ref(`Hello, Vue 3!${ 1}`);

6 6

const counter = ref(0)

7 7 8 8

// Define a function

9 -

function incrementCounter () {

9 +

const incrementCounter = () => {

10 10

counter.value++;

11 -

}

11 +

};

12 12

</script>

13 13 14 14

<template>

Original file line number Diff line number Diff line change

@@ -37,12 +37,12 @@

37 37

"eslint": ">=8.0.0"

38 38

},

39 39

"dependencies": {

40 -

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

40 +

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

41 41

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

42 42

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

43 43

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

44 44

"eslint-define-config": "^1.23.0",

45 -

"eslint-plugin-antfu": "^1.0.0-beta.7",

45 +

"eslint-plugin-antfu": "^1.0.0-beta.8",

46 46

"eslint-plugin-eslint-comments": "^3.2.0",

47 47

"eslint-plugin-i": "^2.28.1",

48 48

"eslint-plugin-jsdoc": "^46.8.2",

@@ -64,12 +64,13 @@

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 68

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

68 69

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

69 -

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

70 +

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

70 71

"bumpp": "^9.2.0",

71 72

"eslint": "^8.50.0",

72 -

"eslint-flat-config-viewer": "^0.0.7",

73 +

"eslint-flat-config-viewer": "^0.0.8",

73 74

"eslint-plugin-sort-keys": "^2.3.5",

74 75

"esno": "^0.17.0",

75 76

"fast-glob": "^3.3.1",

@@ -81,6 +82,6 @@

81 82

"tsup": "^7.2.0",

82 83

"typescript": "^5.2.2",

83 84

"unbuild": "^2.0.0",

84 -

"vitest": "^0.34.5"

85 +

"vitest": "^0.34.6"

85 86

}

86 87

}

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