@sgfe/eslint-plugin-sg 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +25 -0
- package/README.md +188 -0
- package/configs/all-type-checked.js +10 -0
- package/configs/all.js +11 -0
- package/configs/recommended.js +11 -0
- package/configs/rules-recommended.js +11 -0
- package/configs/rules.js +11 -0
- package/configs/tests-recommended.js +11 -0
- package/configs/tests.js +11 -0
- package/lib/index.js +90 -0
- package/lib/rules/consistent-output.js +70 -0
- package/lib/rules/fixer-return.js +170 -0
- package/lib/rules/meta-property-ordering.js +108 -0
- package/lib/rules/no-deprecated-context-methods.js +98 -0
- package/lib/rules/no-deprecated-report-api.js +83 -0
- package/lib/rules/no-identical-tests.js +87 -0
- package/lib/rules/no-missing-message-ids.js +101 -0
- package/lib/rules/no-missing-placeholders.js +131 -0
- package/lib/rules/no-only-tests.js +99 -0
- package/lib/rules/no-property-in-node.js +86 -0
- package/lib/rules/no-unused-message-ids.js +139 -0
- package/lib/rules/no-unused-placeholders.js +127 -0
- package/lib/rules/no-useless-token-range.js +174 -0
- package/lib/rules/prefer-message-ids.js +109 -0
- package/lib/rules/prefer-object-rule.js +83 -0
- package/lib/rules/prefer-output-null.js +77 -0
- package/lib/rules/prefer-placeholders.js +102 -0
- package/lib/rules/prefer-replace-text.js +91 -0
- package/lib/rules/report-message-format.js +133 -0
- package/lib/rules/require-meta-docs-description.js +110 -0
- package/lib/rules/require-meta-docs-url.js +175 -0
- package/lib/rules/require-meta-fixable.js +137 -0
- package/lib/rules/require-meta-has-suggestions.js +168 -0
- package/lib/rules/require-meta-schema.js +162 -0
- package/lib/rules/require-meta-type.js +77 -0
- package/lib/rules/test-case-property-ordering.js +107 -0
- package/lib/rules/test-case-shorthand-strings.js +124 -0
- package/lib/utils.js +936 -0
- package/package.json +76 -0
package/package.json
ADDED
@@ -0,0 +1,76 @@
|
|
1
|
+
{
|
2
|
+
"name": "@sgfe/eslint-plugin-sg",
|
3
|
+
"version": "1.0.3",
|
4
|
+
"description": "An ESLint plugin for linting ESLint plugins",
|
5
|
+
"author": "Mt Dev",
|
6
|
+
"main": "./lib/index.js",
|
7
|
+
"exports": {
|
8
|
+
".": "./lib/index.js",
|
9
|
+
"./configs/*": "./configs/*.js",
|
10
|
+
"./package.json": "./package.json"
|
11
|
+
},
|
12
|
+
"license": "MIT",
|
13
|
+
"scripts": {
|
14
|
+
"lint": "npm-run-all --continue-on-error --aggregate-output --parallel lint:*",
|
15
|
+
"lint:docs": "markdownlint \"**/*.md\"",
|
16
|
+
"lint:eslint-docs": "npm-run-all \"update:eslint-docs -- --check\"",
|
17
|
+
"lint:js": "eslint --cache --ignore-pattern \"**/*.md\" .",
|
18
|
+
"lint:js-docs": "eslint --no-inline-config \"**/*.md\"",
|
19
|
+
"lint:package-json": "npmPkgJsonLint .",
|
20
|
+
"release": "release-it",
|
21
|
+
"preinstall": "node lib/index.js",
|
22
|
+
"test": "nyc --all --check-coverage --include lib mocha tests --recursive",
|
23
|
+
"test:remote": "eslint-remote-tester",
|
24
|
+
"update:eslint-docs": "eslint-doc-generator"
|
25
|
+
},
|
26
|
+
"files": [
|
27
|
+
"lib/",
|
28
|
+
"configs/"
|
29
|
+
],
|
30
|
+
"keywords": [
|
31
|
+
"eslint",
|
32
|
+
"eslintplugin",
|
33
|
+
"eslint-plugin"
|
34
|
+
],
|
35
|
+
"repository": {
|
36
|
+
"type": "git",
|
37
|
+
"url": "git+https://github.com/eslint-community/eslint-plugin-eslint-plugin.git"
|
38
|
+
},
|
39
|
+
"bugs": {
|
40
|
+
"url": "https://github.com/eslint-community/eslint-plugin-eslint-plugin/issues"
|
41
|
+
},
|
42
|
+
"homepage": "https://github.com/eslint-community/eslint-plugin-eslint-plugin#readme",
|
43
|
+
"dependencies": {
|
44
|
+
"eslint-utils": "^3.0.0",
|
45
|
+
"estraverse": "^5.3.0"
|
46
|
+
},
|
47
|
+
"nyc": {
|
48
|
+
"branches": 94,
|
49
|
+
"functions": 99,
|
50
|
+
"lines": 99,
|
51
|
+
"statements": 99
|
52
|
+
},
|
53
|
+
"peerDependencies": {
|
54
|
+
"eslint": ">=8.23.0"
|
55
|
+
},
|
56
|
+
"engines": {
|
57
|
+
"node": "^18.18.0 || ^20.9.0 || >=21.1.0"
|
58
|
+
},
|
59
|
+
"release-it": {
|
60
|
+
"git": {
|
61
|
+
"commitMessage": "chore: release v${version}"
|
62
|
+
},
|
63
|
+
"plugins": {
|
64
|
+
"@release-it/conventional-changelog": {
|
65
|
+
"preset": "conventionalcommits",
|
66
|
+
"infile": "CHANGELOG.md"
|
67
|
+
}
|
68
|
+
},
|
69
|
+
"github": {
|
70
|
+
"release": true
|
71
|
+
},
|
72
|
+
"npm": {
|
73
|
+
"skipChecks": true
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|