Skip to content

Commit 0ea0e3f

Browse files
authored
chore: use prettier-plugin-pkg for consistent sorting (#167)
1 parent 599707e commit 0ea0e3f

File tree

2 files changed

+44
-49
lines changed

2 files changed

+44
-49
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
module.exports = {
66
parserOptions: {
77
sourceType: "script",
8-
ecmaVersion: 2020,
8+
ecmaVersion: "latest",
99
project: require.resolve("./tsconfig.json"),
1010
},
1111
extends: [

package.json

Lines changed: 43 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,63 @@
11
{
22
"name": "eslint-plugin-svelte",
33
"version": "2.0.0",
4-
"publishConfig": {
5-
"access": "public"
6-
},
74
"description": "ESLint plugin for Svelte using AST",
8-
"main": "lib/index.js",
9-
"files": [
10-
"lib"
5+
"repository": "git+https://github.com/ota-meshi/eslint-plugin-svelte.git",
6+
"homepage": "https://ota-meshi.github.io/eslint-plugin-svelte",
7+
"funding": "https://github.com/sponsors/ota-meshi",
8+
"author": "Yosuke Ota (https://github.com/ota-meshi)",
9+
"contributors": [
10+
"JounQin (https://github.com/JounQin)"
1111
],
12+
"license": "MIT",
13+
"packageManager": "[email protected]",
1214
"engines": {
1315
"node": "^14.17.0 || >=16.0.0"
1416
},
15-
"packageManager": "[email protected]",
17+
"main": "lib/index.js",
18+
"files": [
19+
"lib"
20+
],
21+
"keywords": [
22+
"eslint",
23+
"eslint-plugin",
24+
"eslintplugin",
25+
"svelte",
26+
"sveltejs"
27+
],
1628
"scripts": {
17-
"prebuild": "yarn clean",
1829
"build": "yarn build:ts",
1930
"build:ts": "tsc --project ./tsconfig.build.json",
2031
"clean": "rimraf .nyc_output lib coverage build .svelte-kit svelte.config-dist.js",
21-
"pretest:base": "cross-env DEBUG=eslint-plugin-svelte*",
22-
"ts": "node -r esbuild-register",
23-
"mocha": "yarn ts ./node_modules/mocha/bin/mocha.js",
24-
"test": "yarn mocha \"tests/src/**/*.ts\" --reporter dot --timeout 60000",
2532
"cover": "nyc --reporter=lcov yarn test",
2633
"debug": "yarn mocha \"tests/src/**/*.ts\" --reporter dot --timeout 60000",
27-
"lint": "eslint .",
34+
"docs:build": "yarn svelte-kit build",
35+
"docs:preview": "yarn svelte-kit preview",
36+
"docs:watch": "yarn svelte-kit dev",
2837
"eslint-fix": "eslint . --fix",
29-
"update": "yarn ts ./tools/update.ts && yarn format-for-gen-file",
3038
"format-for-gen-file": "eslint src/types-for-node.ts src/utils/rules.ts src/configs --fix",
39+
"lint": "eslint .",
40+
"mocha": "yarn ts ./node_modules/mocha/bin/mocha.js",
3141
"new": "yarn ts ./tools/new-rule.ts",
32-
"svelte-kit": "node --experimental-loader ./svelte-kit-import-hook.mjs node_modules/@sveltejs/kit/svelte-kit.js",
33-
"docs:watch": "yarn svelte-kit dev",
34-
"docs:build": "yarn svelte-kit build",
35-
"docs:preview": "yarn svelte-kit preview",
42+
"prebuild": "yarn clean",
43+
"prepublishOnly": "yarn clean && yarn build",
44+
"pretest:base": "cross-env DEBUG=eslint-plugin-svelte*",
3645
"preversion": "yarn test && git add .",
37-
"version": "env-cmd -e version yarn update && git add .",
38-
"prepublishOnly": "yarn clean && yarn build"
46+
"svelte-kit": "node --experimental-loader ./svelte-kit-import-hook.mjs node_modules/@sveltejs/kit/svelte-kit.js",
47+
"test": "yarn mocha \"tests/src/**/*.ts\" --reporter dot --timeout 60000",
48+
"ts": "node -r esbuild-register",
49+
"update": "yarn ts ./tools/update.ts && yarn format-for-gen-file",
50+
"version": "env-cmd -e version yarn update && git add ."
3951
},
40-
"repository": {
41-
"type": "git",
42-
"url": "git+https://github.com/ota-meshi/eslint-plugin-svelte.git"
52+
"peerDependencies": {
53+
"eslint": "^7.0.0 || ^8.0.0-0",
54+
"svelte": "^3.37.0"
4355
},
44-
"keywords": [
45-
"eslint",
46-
"eslint-plugin",
47-
"eslintplugin",
48-
"svelte",
49-
"sveltejs"
50-
],
51-
"author": "Yosuke Ota (https://github.com/ota-meshi)",
52-
"contributors": [
53-
"JounQin (https://github.com/JounQin)"
54-
],
55-
"funding": "https://github.com/sponsors/ota-meshi",
56-
"license": "MIT",
57-
"bugs": {
58-
"url": "https://github.com/ota-meshi/eslint-plugin-svelte/issues"
56+
"peerDependenciesMeta": {
57+
"svelte": {
58+
"optional": true
59+
}
5960
},
60-
"homepage": "https://ota-meshi.github.io/eslint-plugin-svelte/",
6161
"dependencies": {
6262
"debug": "^4.3.1",
6363
"eslint-utils": "^3.0.0",
@@ -68,15 +68,6 @@
6868
"sourcemap-codec": "^1.4.8",
6969
"svelte-eslint-parser": "^0.16.0"
7070
},
71-
"peerDependencies": {
72-
"eslint": "^7.0.0 || ^8.0.0-0",
73-
"svelte": "^3.37.0"
74-
},
75-
"peerDependenciesMeta": {
76-
"svelte": {
77-
"optional": true
78-
}
79-
},
8071
"devDependencies": {
8172
"@babel/core": "^7.16.0",
8273
"@babel/eslint-parser": "^7.17.0",
@@ -131,6 +122,7 @@
131122
"pirates": "^4.0.1",
132123
"postcss-nested": "^5.0.6",
133124
"prettier": "^2.2.1",
125+
"prettier-plugin-pkg": "^0.14.1",
134126
"prettier-plugin-svelte": "^2.6.0",
135127
"prism-svelte": "^0.5.0",
136128
"prismjs": "^1.25.0",
@@ -143,5 +135,8 @@
143135
"svelte-adapter-ghpages": "0.0.2",
144136
"typescript": "^4.5.2",
145137
"vite-plugin-svelte-md": "^0.1.3"
138+
},
139+
"publishConfig": {
140+
"access": "public"
146141
}
147142
}

0 commit comments

Comments
 (0)