@importantimport/eslint-config-extra
v1.0.2
Published
An ESLint Flat Config for !mportantImport.
Downloads
10
Maintainers
Readme
@importantimport/eslint-config-extra
An ESLint Flat Config for !mportantImport.
Features
Usage
Install
Although highly recommended with
@importantimport/eslint-config
, it is optional.
pnpm add -D eslint @importantimport/eslint-config @importantimport/eslint-config-extra
Config
Simple
// eslint.config.js
import config from '@importantimport/eslint-config'
import extra from '@importantimport/eslint-config-extra'
export default [
...config,
...extra,
]
With Prettier
import { configs, prettier } from '@importantimport/eslint-config'
import { configs as configsExtra, prettier as prettierExtra } from '@importantimport/eslint-config-extra'
export default Object.values({
...configs,
...prettier,
...configsExtra,
...prettierExtra,
})
VSCode
// .vscode/settings.json
{
"eslint.validate": [
"javascript",
"json",
"jsonc",
"json5",
"toml",
"yaml"
]
}