@mtth/eslint-plugin 0.1.6 → 0.1.10

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.
@@ -9,7 +9,7 @@ jobs:
9
9
  runs-on: ubuntu-latest
10
10
  timeout-minutes: 1
11
11
  outputs:
12
- tagged: ${{ format(steps.check-tags.outputs.exists == 'false') }}
12
+ tagged: ${{ format(steps.check-tag.outputs.exists == 'false') }}
13
13
  steps:
14
14
  - name: Check out
15
15
  uses: actions/checkout@v2
@@ -42,18 +42,14 @@ jobs:
42
42
  runs-on: ubuntu-latest
43
43
  timeout-minutes: 2
44
44
  needs: tag
45
+ if: needs.tag.outputs.tagged == 'true'
45
46
  steps:
46
47
  - name: Check out
47
48
  uses: actions/checkout@v2
48
49
  - name: Setup Node
49
50
  uses: actions/setup-node@v2
50
51
  with:
51
- node-version: 15.x
52
52
  registry-url: https://npm.pkg.github.com
53
- - name: Test
54
- run: echo "$TAGGED"
55
- env:
56
- TAGGED: ${{ needs.tag.outputs.tagged }}
57
53
  - name: Install
58
54
  run: npm i
59
55
  - name: Publish to GitHub
@@ -65,13 +61,13 @@ jobs:
65
61
  runs-on: ubuntu-latest
66
62
  timeout-minutes: 2
67
63
  needs: tag
64
+ if: needs.tag.outputs.tagged == 'true'
68
65
  steps:
69
66
  - name: Check out
70
67
  uses: actions/checkout@v2
71
68
  - name: Setup Node
72
69
  uses: actions/setup-node@v2
73
70
  with:
74
- node-version: 15.x
75
71
  registry-url: https://registry.npmjs.org
76
72
  - name: Install
77
73
  run: npm i
package/index.js CHANGED
@@ -11,15 +11,17 @@ module.exports = {
11
11
  'plugin:@typescript-eslint/recommended',
12
12
  ],
13
13
  rules: {
14
- '@typescript-eslint/array-type': [
15
- 'error',
16
- {default: 'array', readonly: 'generic'},
17
- ],
18
- '@typescript-eslint/consistent-type-assertions': [
19
- 'error',
20
- {assertionStyle: 'as', objectLiteralTypeAssertions: 'never'},
14
+ '@typescript-eslint/array-type': ['error', {
15
+ default: 'array',
16
+ readonly: 'generic',
17
+ }],
18
+ '@typescript-eslint/consistent-type-assertions': ['error', {
19
+ assertionStyle: 'as',
20
+ objectLiteralTypeAssertions: 'never',
21
+ }],
22
+ '@typescript-eslint/consistent-type-definitions': ['error',
23
+ 'interface',
21
24
  ],
22
- '@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
23
25
  '@typescript-eslint/explicit-function-return-type': 'error',
24
26
  '@typescript-eslint/member-delimiter-style': 'error',
25
27
  '@typescript-eslint/no-explicit-any': 'off',
@@ -35,13 +37,24 @@ module.exports = {
35
37
  '@typescript-eslint/unified-signatures': 'error',
36
38
  'arrow-parens': 'error',
37
39
  'consistent-return': 'error',
40
+ 'comma-dangle': ['error', {
41
+ 'arrays': 'always-multiline',
42
+ 'objects': 'always-multiline',
43
+ 'imports': 'always-multiline',
44
+ 'exports': 'always-multiline',
45
+ 'functions': 'never',
46
+ }],
38
47
  'curly': 'error',
39
48
  'default-case-last': 'error',
40
49
  'default-param-last': 'error',
41
50
  'dot-location': ['error', 'property'],
42
- 'dot-notation': 'error',
51
+ 'dot-notation': 'off', // https://234.fyi/1PcbRPGcR
43
52
  'eqeqeq': ['error', 'smart'],
44
- 'max-len': ['error', {ignoreUrls: true}],
53
+ 'max-len': ['error', {
54
+ ignorePattern: 'eslint-disable',
55
+ ignoreTrailingComments: true,
56
+ ignoreUrls: true,
57
+ }],
45
58
  'no-alert': 'error',
46
59
  'no-caller': 'error',
47
60
  'no-constructor-return': 'error',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtth/eslint-plugin",
3
- "version": "0.1.6",
3
+ "version": "0.1.10",
4
4
  "description": "Common linting configuration",
5
5
  "homepage": "https://github.com/mtth/eslint-plugin",
6
6
  "keywords": [
@@ -11,12 +11,12 @@
11
11
  "email": "mtth@apache.org"
12
12
  },
13
13
  "dependencies": {
14
- "@typescript-eslint/eslint-plugin": "^4.15.0",
15
- "@typescript-eslint/parser": "^4.15.0",
14
+ "@typescript-eslint/eslint-plugin": "^5.8.1",
15
+ "@typescript-eslint/parser": "^5.8.1",
16
16
  "eslint-plugin-simple-import-sort": "^7.0.0"
17
17
  },
18
18
  "peerDependencies": {
19
- "eslint": "^7.1.0"
19
+ "eslint": "^8.5.0"
20
20
  },
21
21
  "license": "MIT",
22
22
  "repository": {