vue-linters-config 0.1.14 → 0.3.0

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
 
@@ -14,37 +14,33 @@ _Легко принимать свободу как должное, если н
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 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
 
21
- `"lint": "eslint '**/*.{js,ts,vue}' && stylelint '**/*.{scss,vue}'"`
22
-
23
- Версия для Windows без кавычек:
24
-
25
21
  `"lint": "eslint **/*.{js,ts,vue} && stylelint **/*.{scss,vue}"`
26
22
 
27
23
  ## Применение правил
28
24
 
29
- В корневой папке создать 3 файла: .eslintrc.cjs, prettier.config.cjs, stylelint.config.cjs.
25
+ В корневой папке создать 3 файла: eslint.config.js, prettier.config.js, stylelint.config.js.
30
26
 
31
- .eslintrc.cjs:
27
+ eslint.config.js:
32
28
 
33
29
  ```
34
- const { eslint } = require("vue-linters-config");
30
+ import { eslint } from "vue-linters-config";
35
31
  module.exports = eslint;
36
32
  ```
37
33
 
38
- prettier.config.cjs:
34
+ prettier.config.js:
39
35
 
40
36
  ```
41
- const { prettier } = require("vue-linters-config");
37
+ import { prettier } from "vue-linters-config";
42
38
  module.exports = prettier;
43
39
  ```
44
40
 
45
- stylelint.config.cjs:
41
+ stylelint.config.js:
46
42
 
47
43
  ```
48
- const { stylelint } = require("vue-linters-config");
44
+ import { stylelint } from "vue-linters-config";
49
45
  module.exports = stylelint;
50
46
  ```