@mikey-pro/eslint-config 7.0.4 → 7.0.6

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.
Files changed (2) hide show
  1. package/index.js +39 -31
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -89,9 +89,9 @@ module.exports = {
89
89
  },
90
90
  },
91
91
  {
92
- extends: ['plugin:yaml/recommended'],
92
+ extends: ['plugin:yml/standard'],
93
93
  files: ['*.yaml', '*.yml'],
94
- plugins: ['yaml'],
94
+ parser: 'yaml-eslint-parser',
95
95
  rules: {
96
96
  'prettier/prettier': [1, { parser: 'yaml' }],
97
97
  },
@@ -114,6 +114,43 @@ module.exports = {
114
114
  'prettier/prettier': [1, { parser: 'markdown' }],
115
115
  },
116
116
  },
117
+ {
118
+ files: ['package.json'],
119
+ rules: {
120
+ 'prettier/prettier': [1, { parser: 'json' }],
121
+ },
122
+ settings: {
123
+ 'json/json-with-comments-files': [],
124
+ 'json/package-json-sort-order': [
125
+ 'name',
126
+ 'version',
127
+ 'description',
128
+ 'private',
129
+ 'main',
130
+ 'type',
131
+ 'types',
132
+ 'typings',
133
+ 'browser',
134
+ 'engines',
135
+ 'scripts',
136
+ 'husky',
137
+ 'dependencies',
138
+ 'devDependencies',
139
+ 'peerDependencies',
140
+ 'files',
141
+ 'bin',
142
+ 'productName',
143
+ 'homepage',
144
+ 'repository',
145
+ 'bugs',
146
+ 'license',
147
+ 'keywords',
148
+ 'author',
149
+ 'contributors',
150
+ 'funding',
151
+ ],
152
+ },
153
+ },
117
154
  {
118
155
  files: ['*.md.json'],
119
156
  rules: {
@@ -360,34 +397,5 @@ module.exports = {
360
397
  jest: {
361
398
  version: 29,
362
399
  },
363
- 'json/json-with-comments-files': [],
364
- 'json/package-json-sort-order': [
365
- 'name',
366
- 'version',
367
- 'description',
368
- 'private',
369
- 'main',
370
- 'type',
371
- 'types',
372
- 'typings',
373
- 'browser',
374
- 'engines',
375
- 'scripts',
376
- 'husky',
377
- 'dependencies',
378
- 'devDependencies',
379
- 'peerDependencies',
380
- 'files',
381
- 'bin',
382
- 'productName',
383
- 'homepage',
384
- 'repository',
385
- 'bugs',
386
- 'license',
387
- 'keywords',
388
- 'author',
389
- 'contributors',
390
- 'funding',
391
- ],
392
400
  },
393
401
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikey-pro/eslint-config",
3
- "version": "7.0.4",
3
+ "version": "7.0.6",
4
4
  "description": "Mikey Pro ESLint configuration",
5
5
  "main": "index.js",
6
6
  "dependencies": {
@@ -29,7 +29,7 @@
29
29
  "eslint-plugin-promise": "^6.1.1",
30
30
  "eslint-plugin-toml": "^0.9.2",
31
31
  "eslint-plugin-unicorn": "^51.0.1",
32
- "eslint-plugin-yaml": "^0.5.0",
32
+ "eslint-plugin-yml": "^1.12.2",
33
33
  "postcss": "^8.4.35",
34
34
  "postcss-scss": "^4.0.9"
35
35
  },