@tuomashatakka/eslint-config 2.1.1 → 2.1.4

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.
package/eslint.config.mjs CHANGED
@@ -1,19 +1,22 @@
1
+ /* eslint-disable multiline-comment-style */
1
2
  import eslint from '@eslint/js'
2
- import stylistic from '@stylistic/eslint-plugin';
3
- import tsplugin from '@typescript-eslint/eslint-plugin';
4
- import importPlugin from 'eslint-plugin-import';
5
- import react from 'eslint-plugin-react';
3
+ import stylistic from '@stylistic/eslint-plugin'
4
+ import tsplugin from '@typescript-eslint/eslint-plugin'
5
+ import importPlugin from 'eslint-plugin-import'
6
+ import react from 'eslint-plugin-react'
6
7
  import tseslint from 'typescript-eslint'
7
8
 
8
- import { rules } from './rules.js'
9
-
9
+ import rules from './rules.mjs'
10
10
 
11
11
 
12
12
  const ignores = [
13
13
  '**/*.js',
14
- ];
14
+ ]
15
15
 
16
- export default tseslint.config(
16
+ /**
17
+ * @type {import('typescript-eslint').Config}
18
+ * */
19
+ const config = tseslint.config(
17
20
  {
18
21
  ...eslint.configs.recommended,
19
22
  ignores,
@@ -41,4 +44,6 @@ export default tseslint.config(
41
44
  ...rules
42
45
  },
43
46
  })),
44
- );
47
+ )
48
+
49
+ export default config
package/index.mjs CHANGED
@@ -1,4 +1,7 @@
1
1
  import config from './eslint.config.mjs'
2
2
 
3
-
3
+ /**
4
+ * @name config
5
+ * @type {import('eslint').Linter.Config}
6
+ */
4
7
  export default config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuomashatakka/eslint-config",
3
- "version": "2.1.1",
3
+ "version": "2.1.4",
4
4
  "description": "Default eslint configuration",
5
5
  "type": "module",
6
6
  "main": "index.mjs",
@@ -13,11 +13,13 @@
13
13
  },
14
14
  "author": "tuomashatakka",
15
15
  "license": "ISC",
16
+ "types": "**/*.d.ts",
16
17
  "bugs": {
17
18
  "url": "https://github.com/tuomashatakka/eslint-config/issues"
18
19
  },
19
20
  "homepage": "https://github.com/tuomashatakka/eslint-config#readme",
20
21
  "peerDependencies": {
22
+ "@eslint/js": ">=9.13.0",
21
23
  "react": "*",
22
24
  "@stylistic/eslint-plugin": "*",
23
25
  "typescript-eslint": "*"
@@ -26,7 +28,6 @@
26
28
  "@eslint/compat": "^1.2.1",
27
29
  "@eslint/eslintrc": "^3.1.0",
28
30
  "@eslint/js": "^9.13.0",
29
- "@next/eslint-plugin-next": "^15.0.1",
30
31
  "@stylistic/eslint-plugin": "^2.9.0",
31
32
  "@stylistic/eslint-plugin-ts": "^2.9.0",
32
33
  "@types/eslint__eslintrc": "^2.1.2",
@@ -34,7 +35,6 @@
34
35
  "@typescript-eslint/eslint-plugin": "^8.11.0",
35
36
  "@typescript-eslint/parser": "^8.11.0",
36
37
  "eslint": "^9.13.0",
37
- "eslint-config-next": "^15.0.1",
38
38
  "eslint-plugin-block-padding": "^0.0.3",
39
39
  "eslint-plugin-import": "^2.31.0",
40
40
  "eslint-plugin-react": "^7.37.2",
@@ -1,4 +1,5 @@
1
- export const rules = {
1
+
2
+ const rules = {
2
3
 
3
4
  // 'block-padding/after-block': [ 'warn', 2 ],
4
5
 
@@ -32,6 +33,7 @@ export const rules = {
32
33
  '@stylistic/no-mixed-operators': [ 'warn' ],
33
34
  '@stylistic/semi-spacing': [ 'warn', { before: false, after: true }],
34
35
  '@stylistic/semi-style': [ 'warn', 'last' ],
36
+ '@stylistic/semi': [ 'warn', 'never' ],
35
37
  '@stylistic/space-before-blocks': [ 'warn', 'always' ],
36
38
  '@stylistic/space-before-function-paren': [ 'warn', { anonymous: 'always', named: 'never', asyncArrow: 'always' }],
37
39
  '@stylistic/template-tag-spacing': [ 'warn', 'never' ],
@@ -78,4 +80,6 @@ export const rules = {
78
80
  { group: 'parent', pattern: '@/**' },
79
81
  { group: 'parent', pattern: '../**' },
80
82
  { group: 'sibling', pattern: './**' }]}],
81
- }
83
+ }
84
+
85
+ export default rules