@zalib/linter 1.1.1 → 2.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.
package/eslint/node-js.js CHANGED
@@ -10,8 +10,7 @@ module.exports = {
10
10
  'plugin:jest/recommended',
11
11
  'plugin:jest/style',
12
12
  'prettier',
13
- 'plugin:prettier/recommended',
14
- 'airbnb-base',
13
+ 'plugin:prettier/recommended'
15
14
  ],
16
15
  files: ['*.js'],
17
16
  plugins: [
@@ -19,8 +18,6 @@ module.exports = {
19
18
  ],
20
19
  rules: {
21
20
  ...nodeBaseConfig.rules,
22
- 'import/extensions': 0,
23
- 'import/no-unresolved': 0,
24
21
  strict: 0,
25
22
  },
26
23
  };
package/eslint/node-ts.js CHANGED
@@ -34,7 +34,7 @@ module.exports = {
34
34
  },
35
35
  extends: [
36
36
  ...nodeBaseConfig.extends,
37
- 'airbnb-typescript/base',
37
+ 'typescript/base',
38
38
  'plugin:@typescript-eslint/recommended',
39
39
  'plugin:@typescript-eslint/recommended-requiring-type-checking',
40
40
  'plugin:import/errors',
@@ -218,6 +218,7 @@ module.exports = {
218
218
  },
219
219
  ],
220
220
  '@typescript-eslint/no-misused-promises': 0,
221
+ '@typescript-eslint/no-unsafe-argument': 0,
221
222
  '@typescript-eslint/no-unsafe-assignment': 0,
222
223
  '@typescript-eslint/no-unsafe-call': 0,
223
224
  '@typescript-eslint/no-unsafe-member-access': 0,
package/eslint/node.js CHANGED
@@ -1,91 +1,91 @@
1
1
  module.exports = {
2
- env: {
3
- browser: false,
4
- es6: true,
5
- jest: true,
6
- 'jest/globals': true,
7
- node: true,
8
- },
9
- extends: [
10
- 'eslint:recommended',
11
- 'plugin:jest/recommended',
12
- 'plugin:jest/style',
13
- 'prettier',
14
- 'plugin:prettier/recommended',
2
+ env: {
3
+ browser: false,
4
+ es6: true,
5
+ jest: true,
6
+ 'jest/globals': true,
7
+ node: true,
8
+ },
9
+ extends: [
10
+ 'eslint:recommended',
11
+ 'plugin:jest/recommended',
12
+ 'plugin:jest/style',
13
+ 'prettier',
14
+ 'plugin:prettier/recommended',
15
+ ],
16
+ plugins: ['jest'],
17
+ rules: {
18
+ 'arrow-parens': [
19
+ 1,
20
+ 'always',
21
+ {
22
+ requireForBlockBody: true,
23
+ },
15
24
  ],
16
- plugins: ['jest'],
17
- rules: {
18
- 'arrow-parens': [
19
- 1,
20
- 'always',
21
- {
22
- requireForBlockBody: true,
23
- },
24
- ],
25
- 'class-methods-use-this': 0,
26
- 'comma-dangle': [
27
- 'error',
28
- {
29
- arrays: 'always-multiline',
30
- exports: 'always-multiline',
31
- functions: 'always-multiline',
32
- imports: 'always-multiline',
33
- objects: 'always-multiline',
34
- },
35
- ],
36
- complexity: [2, { max: 10 }],
37
- 'function-paren-newline': 0,
38
- 'implicit-arrow-linebreak': 0,
39
- 'max-lines': [
40
- 2,
41
- {
42
- max: 500,
43
- skipBlankLines: false,
44
- skipComments: true,
45
- },
46
- ],
47
- 'max-lines-per-function': [
48
- 2,
49
- {
50
- max: 200,
51
- skipBlankLines: false,
52
- skipComments: true,
53
- },
54
- ],
55
- 'max-params': [2, { max: 3 }],
56
- 'no-await-in-loop': 0,
57
- 'no-continue': 0,
58
- 'no-empty-function': 0,
59
- 'no-plusplus': [
60
- 2,
61
- {
62
- allowForLoopAfterthoughts: true,
63
- },
64
- ],
65
- 'no-promise-executor-return': 0,
66
- 'no-restricted-syntax': 0,
67
- 'padding-line-between-statements': [
68
- 2,
69
- {
70
- blankLine: 'always',
71
- next: '*',
72
- prev: ['block-like'],
73
- },
74
- {
75
- blankLine: 'always',
76
- next: 'if',
77
- prev: '*',
78
- },
79
- {
80
- blankLine: 'always',
81
- next: '*',
82
- prev: 'if',
83
- },
84
- ],
85
- 'react/jsx-filename-extension': 0,
86
- 'require-await': 0,
87
- 'sort-imports': 2,
88
- 'sort-keys': 2,
89
- },
90
- };
91
-
25
+ 'class-methods-use-this': 0,
26
+ 'comma-dangle': [
27
+ 'error',
28
+ {
29
+ arrays: 'always-multiline',
30
+ exports: 'always-multiline',
31
+ functions: 'always-multiline',
32
+ imports: 'always-multiline',
33
+ objects: 'always-multiline',
34
+ },
35
+ ],
36
+ complexity: [2, { max: 10 }],
37
+ 'function-paren-newline': 0,
38
+ 'implicit-arrow-linebreak': 0,
39
+ 'import/extensions': 0,
40
+ 'import/no-unresolved': 0,
41
+ 'max-lines': [
42
+ 2,
43
+ {
44
+ max: 500,
45
+ skipBlankLines: false,
46
+ skipComments: true,
47
+ },
48
+ ],
49
+ 'max-lines-per-function': [
50
+ 2,
51
+ {
52
+ max: 200,
53
+ skipBlankLines: false,
54
+ skipComments: true,
55
+ },
56
+ ],
57
+ 'max-params': [2, { max: 3 }],
58
+ 'no-await-in-loop': 0,
59
+ 'no-continue': 0,
60
+ 'no-empty-function': 0,
61
+ 'no-plusplus': [
62
+ 2,
63
+ {
64
+ allowForLoopAfterthoughts: true,
65
+ },
66
+ ],
67
+ 'no-promise-executor-return': 0,
68
+ 'no-restricted-syntax': 0,
69
+ 'padding-line-between-statements': [
70
+ 2,
71
+ {
72
+ blankLine: 'always',
73
+ next: '*',
74
+ prev: ['block-like'],
75
+ },
76
+ {
77
+ blankLine: 'always',
78
+ next: 'if',
79
+ prev: '*',
80
+ },
81
+ {
82
+ blankLine: 'always',
83
+ next: '*',
84
+ prev: 'if',
85
+ },
86
+ ],
87
+ 'require-await': 0,
88
+ 'sort-imports': 2,
89
+ 'sort-keys': 2,
90
+ },
91
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zalib/linter",
3
- "version": "1.1.1",
3
+ "version": "2.0.0",
4
4
  "description": "Linter configs",
5
5
  "author": "https://github.com/wsp-repo/",
6
6
  "license": "UNLICENSED",
@@ -19,24 +19,26 @@
19
19
  "npm": ">=10.8.0"
20
20
  },
21
21
  "scripts": {
22
+ "build": "exit 0",
22
23
  "lint": "exit 0",
24
+ "release:patch": "npm version patch",
25
+ "release:minor": "npm version minor",
26
+ "release:major": "npm version major",
23
27
  "test": "exit 0"
24
28
  },
25
29
  "peerDependencies": {
26
- "@typescript-eslint/eslint-plugin": "7.18.0",
27
- "@typescript-eslint/parser": "7.18.0",
28
- "eslint": "8.57.1",
29
- "eslint-config-airbnb-base": "15.0.0",
30
- "eslint-config-airbnb-typescript": "18.0.0",
31
- "eslint-config-prettier": "10.1.1",
30
+ "@typescript-eslint/eslint-plugin": "8.32.1",
31
+ "@typescript-eslint/parser": "8.32.1",
32
+ "eslint": "9.27.0",
33
+ "eslint-config-base": "1.0.0",
34
+ "eslint-config-prettier": "10.1.5",
35
+ "eslint-config-typescript": "3.0.0",
32
36
  "eslint-plugin-import": "2.31.0",
33
37
  "eslint-plugin-jest": "28.11.0",
34
- "eslint-plugin-jsx-a11y": "6.10.2",
35
- "eslint-plugin-prettier": "5.2.3",
38
+ "eslint-plugin-prettier": "5.4.0",
36
39
  "eslint-plugin-simple-import-sort": "12.1.1",
37
- "eslint-plugin-typescript-sort": "0.1.11",
38
40
  "jest": "29.7.0",
39
41
  "prettier": "3.5.3",
40
- "typescript": "5.8.2"
42
+ "typescript": "5.8.3"
41
43
  }
42
44
  }