stylelint / eslint-config-stylelint

Stylelint org's shareable config for eslint
MIT License
59 stars 9 forks source link

Update deps #226

Closed ybiquitous closed 12 months ago

ybiquitous commented 1 year ago

Which issue, if any, is this issue related to?

Ref https://github.com/stylelint/prettier-config/pull/22

Is there anything in the PR that needs further explanation?

This PR tests an unpublished version of @stylelint/prettier-config.

Test on localhost

Edit files manually:

diff --git a/index.js b/index.js
index 577d4bc..ca830cd 100644
--- a/index.js
+++ b/index.js
@@ -1,4 +1,4 @@
-'use strict';
+  'use strict';

 module.exports = {
    parserOptions: {
diff --git a/package.json b/package.json
index 60e93c8..bacd300 100644
--- a/package.json
+++ b/package.json
@@ -43,14 +43,14 @@
     "eslint": ">=8.33.0",
     "eslint-plugin-jest": ">=27.2.0"
   },
+  "engines": {
+    "node": ">=16.0.0"
+  },
   "peerDependenciesMeta": {
     "eslint-plugin-jest": {
       "optional": true
     }
   },
-  "engines": {
-    "node": ">=16.0.0"
-  },
   "publishConfig": {
     "access": "public"
   }

Then, run linting:

$ npm run lint -s
Checking formatting...
[warn] index.js
[warn] package.json
[warn] Code style issues found in 2 files. Run Prettier to fix.

It works!