@pkmn/eslint-config 2.16.0 → 3.0.0

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 +13 -1
  2. package/package.json +9 -6
package/index.js CHANGED
@@ -11,6 +11,8 @@ module.exports = {
11
11
  "es6": true,
12
12
  "node": true
13
13
  },
14
+ "settings": {"jest": {"version": 29}},
15
+ "plugins": ["import"],
14
16
  "extends": "eslint:recommended",
15
17
  "rules": {
16
18
  "no-console": "off",
@@ -145,7 +147,7 @@ module.exports = {
145
147
  "keyword-spacing": ["error", {"before": true, "after": true}],
146
148
  "lines-around-comment": "off",
147
149
  "no-mixed-spaces-and-tabs": "error",
148
- "no-multiple-empty-lines": ["error", {"max": 2, "maxEOF": 1}],
150
+ "no-multiple-empty-lines": ["error", {"max": 1}],
149
151
  "no-trailing-spaces": ["error", {"ignoreComments": false}],
150
152
  "object-curly-spacing": ["error", "never"],
151
153
  "operator-linebreak": ["error", "after", { "overrides": { "?": "before", ":": "before" } }],
@@ -160,6 +162,16 @@ module.exports = {
160
162
  "space-infix-ops": "error",
161
163
  "space-unary-ops": ["error", {"words": true, "nonwords": false}],
162
164
  "template-curly-spacing": ["error", "never"],
165
+
166
+ // imports
167
+ "import/order": ["error", {
168
+ "newlines-between": "always",
169
+ "alphabetize": {"order": "asc", "caseInsensitive": true}
170
+ }],
171
+ "sort-imports": ["error", {
172
+ "ignoreDeclarationSort": true,
173
+ "allowSeparatedGroups": true
174
+ }]
163
175
  },
164
176
  "overrides": [
165
177
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pkmn/eslint-config",
3
- "version": "2.16.0",
3
+ "version": "3.0.0",
4
4
  "description": "ESLint configuration from @pkmn based on Pokémon Showdown's style",
5
5
  "repository": "github:pkmn/eslint-config",
6
6
  "license": "MIT",
@@ -10,11 +10,14 @@
10
10
  "files": [
11
11
  "index.js"
12
12
  ],
13
+ "dependencies": {
14
+ "@typescript-eslint/eslint-plugin": ">=5.57",
15
+ "@typescript-eslint/parser": ">=5.57",
16
+ "eslint-plugin-import": "^2.27.5",
17
+ "eslint-plugin-jest": ">=27.2"
18
+ },
13
19
  "peerDependencies": {
14
- "@typescript-eslint/eslint-plugin": ">=5.54",
15
- "@typescript-eslint/parser": ">=5.54",
16
- "eslint-plugin-jest": ">=27.2",
17
- "eslint": ">=8.35",
18
- "typescript": ">=4.9"
20
+ "eslint": ">=8.37",
21
+ "typescript": ">=5.0"
19
22
  }
20
23
  }