29 lines
957 B
Markdown
29 lines
957 B
Markdown
# Конфигурация для ESLint
|
|
|
|
Включает в себя:
|
|
|
|
- [js/recommended](https://eslint.org/docs/latest/use/configure/configuration-files#using-predefined-configurations) из ESLint
|
|
- [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier)
|
|
- [eslint-plugin-simple-import-sort](https://github.com/lydell/eslint-plugin-simple-import-sort)
|
|
- [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
|
|
- [eslint-plugin-vue](https://github.com/vuejs/eslint-plugin-vue)
|
|
- [globals](https://github.com/sindresorhus/globals) (`browser` и `nodeBuiltin`)
|
|
|
|
## Использование
|
|
|
|
### Требования
|
|
|
|
- [ESLint](https://eslint.org/)
|
|
|
|
### Подключание
|
|
|
|
```js
|
|
import config from '@advdominion/eslint-config';
|
|
import { defineConfig } from 'eslint/config';
|
|
|
|
export default defineConfig([
|
|
...config,
|
|
// Дополнительная конфигурация проекта
|
|
]);
|
|
```
|