@sgfe/eslint-plugin-sg 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. package/LICENSE.md +25 -0
  2. package/README.md +188 -0
  3. package/configs/all-type-checked.js +10 -0
  4. package/configs/all.js +11 -0
  5. package/configs/recommended.js +11 -0
  6. package/configs/rules-recommended.js +11 -0
  7. package/configs/rules.js +11 -0
  8. package/configs/tests-recommended.js +11 -0
  9. package/configs/tests.js +11 -0
  10. package/lib/index.js +90 -0
  11. package/lib/rules/consistent-output.js +70 -0
  12. package/lib/rules/fixer-return.js +170 -0
  13. package/lib/rules/meta-property-ordering.js +108 -0
  14. package/lib/rules/no-deprecated-context-methods.js +98 -0
  15. package/lib/rules/no-deprecated-report-api.js +83 -0
  16. package/lib/rules/no-identical-tests.js +87 -0
  17. package/lib/rules/no-missing-message-ids.js +101 -0
  18. package/lib/rules/no-missing-placeholders.js +131 -0
  19. package/lib/rules/no-only-tests.js +99 -0
  20. package/lib/rules/no-property-in-node.js +86 -0
  21. package/lib/rules/no-unused-message-ids.js +139 -0
  22. package/lib/rules/no-unused-placeholders.js +127 -0
  23. package/lib/rules/no-useless-token-range.js +174 -0
  24. package/lib/rules/prefer-message-ids.js +109 -0
  25. package/lib/rules/prefer-object-rule.js +83 -0
  26. package/lib/rules/prefer-output-null.js +77 -0
  27. package/lib/rules/prefer-placeholders.js +102 -0
  28. package/lib/rules/prefer-replace-text.js +91 -0
  29. package/lib/rules/report-message-format.js +133 -0
  30. package/lib/rules/require-meta-docs-description.js +110 -0
  31. package/lib/rules/require-meta-docs-url.js +175 -0
  32. package/lib/rules/require-meta-fixable.js +137 -0
  33. package/lib/rules/require-meta-has-suggestions.js +168 -0
  34. package/lib/rules/require-meta-schema.js +162 -0
  35. package/lib/rules/require-meta-type.js +77 -0
  36. package/lib/rules/test-case-property-ordering.js +107 -0
  37. package/lib/rules/test-case-shorthand-strings.js +124 -0
  38. package/lib/utils.js +936 -0
  39. 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
+ }