1.4.6 • Published 9 months ago
@exer7um/eslint-config v1.4.6
Конфигурация ESLint
Установка
bun add -D @exer7um/eslint-config
pnpm i -D @exer7um/eslint-config
npm i -D @exer7um/eslint-config
yarn add -D @exer7um/eslint-config
Использование
Для использования нужно создать файл eslint.config.mjs
с содержимым:
import exer7umConfig from "@exer7um/eslint-config"
import withNuxt from "./.nuxt/eslint.config.mjs"
export default withNuxt(exer7umConfig)
Добавить в файл nuxt.config.ts
модуль @nuxt/eslint
:
export default defineNuxtConfig({
modules: ["@nuxt/eslint"],
})
Добавить в файл .vscode/settings.json
:
{
"eslint.useFlatConfig": true,
"eslint.validate": ["javascript", "json", "vue", "typescript", "yaml"]
}
Добавить команды для запуска в package.json
:
{
"eslint": "eslint . --max-warnings=0",
"eslint:fix": "eslint . --max-warnings=0 --fix"
}
1.4.6
9 months ago
1.4.5
9 months ago
1.4.4
10 months ago
1.4.3
10 months ago
1.2.0
11 months ago
1.4.2
11 months ago
1.3.3
11 months ago
1.4.1
11 months ago
1.3.2
11 months ago
1.1.4
12 months ago
1.4.0
11 months ago
1.3.1
11 months ago
1.1.3
1 year ago
1.3.0
11 months ago
1.2.1
11 months ago
1.1.2
1 year ago
1.1.1
1 year ago
1.1.0
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago
0.8.2
1 year ago
0.8.1
1 year ago
0.8.0
1 year ago