5.4.0 • Published 2 months ago

@suppayami/eslint-config v5.4.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

@suppayami/eslint-config

code style

Defaults

  • Single quotes, no semi, tabs
  • Use ESLint Stylistic for formatting by default, can be disabled to use other formatter.

Usage

Read more customisation from @antfu/eslint-config

Install

pnpm i -D @suppayami/eslint-config

Create config file

With "type": "module" in package.json (recommended):

// eslint.config.js
import suppayami from '@suppayami/eslint-config'

export default suppayami({
	// react: true,
	// vue: true,
	// stylistic: false,
})

VSCode Support

{
	// Enable the ESlint flat config support
	"eslint.experimental.useFlatConfig": true,

	// Disable the default formatter, use eslint instead
	"prettier.enable": false,
	"editor.formatOnSave": false,

	// Auto fix
	"editor.codeActionsOnSave": {
		"source.fixAll.eslint": "explicit",
		"source.organizeImports": "never"
	}
}

Prettier

Disable ESLint Stylistic rules:

// eslint.config.js
import suppayami from '@suppayami/eslint-config'

export default suppayami({
	stylistic: false,
})

FAQ

Why extends @antfu/eslint-config?

Good default, reasonable strict, well maintained.

5.4.0

2 months ago

5.3.0

3 months ago

5.2.0

4 months ago

5.1.0

5 months ago

5.0.0

5 months ago

4.0.1

10 months ago

3.4.0

1 year ago

3.3.0

1 year ago

3.6.0

12 months ago

3.5.1

1 year ago

3.5.0

1 year ago

4.0.0

10 months ago

3.2.0

1 year ago

3.1.2

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago