@mimica/eslint-config-typescript 4.1.0 → 4.3.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 +15 -0
  2. package/package.json +5 -4
package/index.js CHANGED
@@ -5,6 +5,7 @@ module.exports = {
5
5
  "plugin:@typescript-eslint/stylistic-type-checked",
6
6
  "plugin:import/typescript",
7
7
  ],
8
+ plugins: ["@stylistic/ts"],
8
9
  parser: "@typescript-eslint/parser",
9
10
  rules: {
10
11
  "default-param-last": 0, // TODO: typescript one already enabled
@@ -12,6 +13,20 @@ module.exports = {
12
13
  "no-unused-vars": 0, // The TS one is enabled
13
14
  "no-use-before-define": 0, // The TS one is enabled
14
15
 
16
+ "@stylistic/ts/padding-line-between-statements": [
17
+ 2,
18
+ {
19
+ blankLine: "always",
20
+ prev: "*",
21
+ next: ["function", "class", "cjs-export", "interface"],
22
+ },
23
+ {
24
+ blankLine: "always",
25
+ prev: ["function", "class", "cjs-export", "interface"],
26
+ next: "*",
27
+ },
28
+ ],
29
+
15
30
  "@typescript-eslint/default-param-last": 2,
16
31
  "@typescript-eslint/explicit-module-boundary-types": 0,
17
32
  "@typescript-eslint/consistent-type-imports": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimica/eslint-config-typescript",
3
- "version": "4.1.0",
3
+ "version": "4.3.0",
4
4
  "description": "Mimica eslint config",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -24,9 +24,10 @@
24
24
  },
25
25
  "homepage": "https://github.com/mimica/eslint-config#readme",
26
26
  "dependencies": {
27
- "@mimica/eslint-config": "^2.0.0",
28
- "@typescript-eslint/eslint-plugin": "^7.1.1",
29
- "@typescript-eslint/parser": "^7.1.1"
27
+ "@mimica/eslint-config": "^2.2.0",
28
+ "@stylistic/eslint-plugin-ts": "^2.1.0",
29
+ "@typescript-eslint/eslint-plugin": "^7.8.0",
30
+ "@typescript-eslint/parser": "^7.8.0"
30
31
  },
31
32
  "devDependencies": {
32
33
  "prettier": "^3.0.3"