vue-linters-config 0.1.15 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Конфиги eslint, stylelint, prettier
1
+ # Конфиги eslint flat, stylelint, prettier
2
2
 
3
3
  [npm](https://www.npmjs.com/package/vue-linters-config)
4
4
 
@@ -6,7 +6,7 @@ _Легко принимать свободу как должное, если н
6
6
 
7
7
  Конфиги для Vue3 Composition API (script setup) + TS + SCSS + CSS Module.
8
8
 
9
- Редактор кода - VS Code с установленными плагинами ESLint, Prettier и Stylelint.
9
+ Редактор кода - VS Code с установленными плагинами ESLint, Prettier и Stylelint(не забыть в настройках добавить расширения файлов .vue и .scss).
10
10
 
11
11
  ## Установка
12
12
 
@@ -14,7 +14,7 @@ _Легко принимать свободу как должное, если н
14
14
 
15
15
  Установка сторонних зависимостей:
16
16
 
17
- `npm i @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-import-resolver-typescript eslint-plugin-import-x eslint-plugin-prettier eslint-plugin-vue prettier stylelint stylelint-config-recess-order stylelint-config-recommended-scss stylelint-config-recommended-vue stylelint-prettier postcss-html --save-dev`
17
+ `npm i eslint eslint-config-prettier eslint-import-resolver-typescript postcss-html prettier stylelint stylelint-config-recess-order stylelint-config-recommended-scss stylelint-config-recommended-vue stylelint-prettier --save-dev`
18
18
 
19
19
  В package.json добавить команду в секцию script для запуска npm run lint:
20
20
 
@@ -22,25 +22,25 @@ _Легко принимать свободу как должное, если н
22
22
 
23
23
  ## Применение правил
24
24
 
25
- В корневой папке создать 3 файла: .eslintrc.cjs, prettier.config.cjs, stylelint.config.cjs.
25
+ В корневой папке создать 3 файла: eslint.config.js, prettier.config.js, stylelint.config.js.
26
26
 
27
- .eslintrc.cjs:
27
+ eslint.config.js:
28
28
 
29
29
  ```
30
- const { eslint } = require("vue-linters-config");
30
+ import { eslint } from "vue-linters-config";
31
31
  module.exports = eslint;
32
32
  ```
33
33
 
34
- prettier.config.cjs:
34
+ prettier.config.js:
35
35
 
36
36
  ```
37
- const { prettier } = require("vue-linters-config");
37
+ import { prettier } from "vue-linters-config";
38
38
  module.exports = prettier;
39
39
  ```
40
40
 
41
- stylelint.config.cjs:
41
+ stylelint.config.js:
42
42
 
43
43
  ```
44
- const { stylelint } = require("vue-linters-config");
44
+ import { stylelint } from "vue-linters-config";
45
45
  module.exports = stylelint;
46
46
  ```