@nextcloud/eslint-config 8.1.5 → 8.2.1
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/CHANGELOG.md +31 -14
- package/README.md +5 -4
- package/index.js +42 -3
- package/package.json +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,40 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v8.2.1](https://github.com/nextcloud/eslint-config/tree/v8.2.1) (2023-01-30)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v8.2.0...v8.2.1)
|
|
6
|
+
|
|
7
|
+
**Fixed:**
|
|
8
|
+
- Fix resolving packages that use the package `exports` feature by @susnux in https://github.com/nextcloud/eslint-config/pull/452
|
|
9
|
+
|
|
10
|
+
**Merged pull requests:**
|
|
11
|
+
- Various dependencies upgrades
|
|
12
|
+
|
|
13
|
+
## [v8.2.0](https://github.com/nextcloud/eslint-config/tree/v8.2.0) (2023-01-11)
|
|
14
|
+
|
|
15
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v8.1.5...v8.2.0)
|
|
16
|
+
|
|
17
|
+
**Implemented enhancements:**
|
|
18
|
+
- feat: Add scripts for linting the config and fixed issues found [\#434](https://github.com/nextcloud/eslint-config/pull/434) ([susnux](https://github.com/susnux))
|
|
19
|
+
- feat: Add sub config for TypeScript projects [\#433](https://github.com/nextcloud/eslint-config/pull/433) ([susnux](https://github.com/susnux))
|
|
20
|
+
|
|
21
|
+
**Dependency updates:**
|
|
22
|
+
- Bump @babel/core from 7.20.7 to 7.20.12 [\#432](https://github.com/nextcloud/eslint-config/pull/432) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
23
|
+
- Bump eslint from 8.30.0 to 8.31.0 [\#431](https://github.com/nextcloud/eslint-config/pull/431) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
24
|
+
|
|
25
|
+
## [v8.1.5](https://github.com/nextcloud/eslint-config/tree/v8.1.5) (2023-01-02)
|
|
26
|
+
|
|
27
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v8.1.4...v8.1.5)
|
|
28
|
+
|
|
29
|
+
**Dependency updates:**
|
|
30
|
+
- Bump json5 from 1.0.1 to 1.0.2 by @PVince81 in https://github.com/nextcloud/eslint-config/pull/430
|
|
31
|
+
- Bump json5 from 2.2.1 to 2.2.3 by @PVince81 in https://github.com/nextcloud/eslint-config/pull/430
|
|
32
|
+
|
|
3
33
|
## [v8.1.4](https://github.com/nextcloud/eslint-config/tree/v8.1.4) (2022-11-17)
|
|
4
34
|
|
|
5
35
|
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v8.1.3...v8.1.4)
|
|
6
36
|
|
|
7
|
-
**Fixed
|
|
8
|
-
|
|
37
|
+
**Fixed:**
|
|
9
38
|
- Fix eslint-plugin-n conflict [\#421](https://github.com/nextcloud/eslint-config/pull/421) ([skjnldsv](https://github.com/skjnldsv))
|
|
10
39
|
|
|
11
40
|
## [v8.1.3](https://github.com/nextcloud/eslint-config/tree/v8.1.3) (2022-11-04)
|
|
@@ -29,7 +58,6 @@
|
|
|
29
58
|
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v8.0.0...v8.1.2)
|
|
30
59
|
|
|
31
60
|
**Dependency updates:**
|
|
32
|
-
|
|
33
61
|
- Use [`eslint-plugin-n`](https://www.npmjs.com/package/eslint-plugin-n) instead of [`eslint-plugin-node`](https://www.npmjs.com/package/eslint-plugin-node)
|
|
34
62
|
|
|
35
63
|
## [v8.0.0](https://github.com/nextcloud/eslint-config/tree/v8.0.0) (2022-04-20)
|
|
@@ -37,11 +65,9 @@
|
|
|
37
65
|
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v7.0.2...v8.0.0)
|
|
38
66
|
|
|
39
67
|
**Breaking:**
|
|
40
|
-
|
|
41
68
|
- Require file extensions on import [\#292](https://github.com/nextcloud/eslint-config/pull/292) ([Pytal](https://github.com/Pytal))
|
|
42
69
|
|
|
43
70
|
**Dependency updates:**
|
|
44
|
-
|
|
45
71
|
- Bump eslint from 8.7.0 to 8.8.0 [\#282](https://github.com/nextcloud/eslint-config/pull/282) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
46
72
|
- Bump eslint from 8.8.0 to 8.9.0 [\#296](https://github.com/nextcloud/eslint-config/pull/296) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
47
73
|
|
|
@@ -50,11 +76,9 @@
|
|
|
50
76
|
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v7.0.1...v7.0.2)
|
|
51
77
|
|
|
52
78
|
**Fixed:**
|
|
53
|
-
|
|
54
79
|
- Fix usual same-line vue attribute behaviour [\#272](https://github.com/nextcloud/eslint-config/pull/272) ([skjnldsv](https://github.com/skjnldsv))
|
|
55
80
|
|
|
56
81
|
**Dependency updates:**
|
|
57
|
-
|
|
58
82
|
- Bump eslint from 8.6.0 to 8.7.0 [\#271](https://github.com/nextcloud/eslint-config/pull/271) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
59
83
|
- Bump @babel/core from 7.16.7 to 7.16.10 [\#273](https://github.com/nextcloud/eslint-config/pull/273) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
60
84
|
|
|
@@ -63,11 +87,9 @@
|
|
|
63
87
|
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v7.0.0...v7.0.1)
|
|
64
88
|
|
|
65
89
|
**Fixed bugs:**
|
|
66
|
-
|
|
67
90
|
- Allow component names to be single-word [\#270](https://github.com/nextcloud/eslint-config/pull/270) ([skjnldsv](https://github.com/skjnldsv))
|
|
68
91
|
|
|
69
92
|
**Dependency updates:**
|
|
70
|
-
|
|
71
93
|
- Bump webpack from 5.65.0 to 5.66.0 [\#269](https://github.com/nextcloud/eslint-config/pull/269) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
72
94
|
- Bump eslint-plugin-vue from 8.2.0 to 8.3.0 [\#268](https://github.com/nextcloud/eslint-config/pull/268) ([dependabot[bot]](https://github.com/apps/dependabot))
|
|
73
95
|
|
|
@@ -76,7 +98,6 @@
|
|
|
76
98
|
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v6.1.2...v7.0.0)
|
|
77
99
|
|
|
78
100
|
**Merged pull requests:**
|
|
79
|
-
|
|
80
101
|
- Eslint 8 [\#266](https://github.com/nextcloud/eslint-config/pull/266) ([skjnldsv](https://github.com/skjnldsv))
|
|
81
102
|
- v7.0.0 [\#267](https://github.com/nextcloud/eslint-config/pull/267) ([skjnldsv](https://github.com/skjnldsv))
|
|
82
103
|
## [v6.1.2](https://github.com/nextcloud/eslint-config/tree/v6.1.2) (2021-12-20)
|
|
@@ -84,7 +105,6 @@
|
|
|
84
105
|
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v6.1.1...v6.1.2)
|
|
85
106
|
|
|
86
107
|
**Fixes:**
|
|
87
|
-
|
|
88
108
|
- Fix vue custom event name casing [\#249](https://github.com/nextcloud/eslint-config/pull/249) ([Pytal](https://github.com/Pytal))
|
|
89
109
|
|
|
90
110
|
## [v6.1.1](https://github.com/nextcloud/eslint-config/tree/v6.1.1) (2021-12-02)
|
|
@@ -92,7 +112,6 @@
|
|
|
92
112
|
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v6.1.0...v6.1.1)
|
|
93
113
|
|
|
94
114
|
**Fixes:**
|
|
95
|
-
|
|
96
115
|
- Disable tag rule [\#248](https://github.com/nextcloud/eslint-config/pull/248) ([skjnldsv](https://github.com/skjnldsv))
|
|
97
116
|
|
|
98
117
|
## [v6.1.0](https://github.com/nextcloud/eslint-config/tree/v6.1.0) (2021-08-11)
|
|
@@ -100,7 +119,6 @@
|
|
|
100
119
|
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v6.0.1...v6.1.0)
|
|
101
120
|
|
|
102
121
|
**Fix dependency:**
|
|
103
|
-
|
|
104
122
|
- Remove undesired eslint-webpack-plugin ([skjnldsv](https://github.com/skjnldsv))
|
|
105
123
|
|
|
106
124
|
## [v6.0.1](https://github.com/nextcloud/eslint-config/tree/v6.0.1) (2021-08-11)
|
|
@@ -108,7 +126,6 @@
|
|
|
108
126
|
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v6.0.0...v6.0.1)
|
|
109
127
|
|
|
110
128
|
**Merged pull requests:**
|
|
111
|
-
|
|
112
129
|
- Fix license header tags spacing [\#180](https://github.com/nextcloud/eslint-config/pull/180) ([skjnldsv](https://github.com/skjnldsv))
|
|
113
130
|
|
|
114
131
|
## [v6.0.0](https://github.com/nextcloud/eslint-config/tree/v6.0.0)
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
## @nextcloud/eslint-config
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@nextcloud/eslint-config)
|
|
4
|
-
[](https://github.com/nextcloud/eslint-config/actions/workflows/lint.yml)
|
|
5
5
|
[](https://dependabot.com)
|
|
6
6
|
|
|
7
7
|
|
|
@@ -30,6 +30,7 @@ module.exports = {
|
|
|
30
30
|
|
|
31
31
|
## Release new version
|
|
32
32
|
|
|
33
|
-
1.
|
|
34
|
-
2.
|
|
35
|
-
3.
|
|
33
|
+
1. Update CHANGELOG.md file with the latest changes
|
|
34
|
+
2. Bump the package version with `npm version`
|
|
35
|
+
3. Push version bump commit
|
|
36
|
+
4. Create a new release with proper changelog https://github.com/nextcloud/eslint-config/releases/new
|
package/index.js
CHANGED
|
@@ -11,6 +11,7 @@ module.exports = {
|
|
|
11
11
|
parserOptions: {
|
|
12
12
|
parser: '@babel/eslint-parser',
|
|
13
13
|
ecmaVersion: 6,
|
|
14
|
+
requireConfigFile: false,
|
|
14
15
|
},
|
|
15
16
|
extends: [
|
|
16
17
|
'eslint:recommended',
|
|
@@ -28,6 +29,9 @@ module.exports = {
|
|
|
28
29
|
paths: ['src'],
|
|
29
30
|
extensions: ['.js', '.vue'],
|
|
30
31
|
},
|
|
32
|
+
exports: {
|
|
33
|
+
conditions: ['import'],
|
|
34
|
+
},
|
|
31
35
|
},
|
|
32
36
|
jsdoc: {
|
|
33
37
|
tagNamePreference: {
|
|
@@ -91,8 +95,8 @@ module.exports = {
|
|
|
91
95
|
multiline: 1,
|
|
92
96
|
}],
|
|
93
97
|
'vue/first-attribute-linebreak': ['error', {
|
|
94
|
-
|
|
95
|
-
|
|
98
|
+
singleline: 'beside',
|
|
99
|
+
multiline: 'beside',
|
|
96
100
|
}],
|
|
97
101
|
// Allow single-word components names
|
|
98
102
|
'vue/multi-word-component-names': ['off'],
|
|
@@ -106,7 +110,7 @@ module.exports = {
|
|
|
106
110
|
// Allow shallow import of @vue/test-utils and @testing-library/vue in order to be able to use it in
|
|
107
111
|
// the src folder
|
|
108
112
|
'n/no-unpublished-import': ['error', {
|
|
109
|
-
|
|
113
|
+
allowModules: ['@vue/test-utils', '@testing-library/vue'],
|
|
110
114
|
}],
|
|
111
115
|
// require object literal shorthand syntax
|
|
112
116
|
'object-shorthand': ['error', 'always'],
|
|
@@ -115,4 +119,39 @@ module.exports = {
|
|
|
115
119
|
ignorePackages: true,
|
|
116
120
|
}],
|
|
117
121
|
},
|
|
122
|
+
overrides: [
|
|
123
|
+
{
|
|
124
|
+
files: ['**/*.ts'],
|
|
125
|
+
extends: [
|
|
126
|
+
'@vue/eslint-config-typescript/recommended',
|
|
127
|
+
'plugin:import/typescript',
|
|
128
|
+
],
|
|
129
|
+
parserOptions: {
|
|
130
|
+
parser: '@typescript-eslint/parser',
|
|
131
|
+
},
|
|
132
|
+
rules: {
|
|
133
|
+
'n/no-missing-import': 'off',
|
|
134
|
+
'import/extensions': 'off',
|
|
135
|
+
'jsdoc/check-tag-names': [
|
|
136
|
+
'warn', {
|
|
137
|
+
// for projects using typedoc
|
|
138
|
+
definedTags: [
|
|
139
|
+
'notExported',
|
|
140
|
+
'packageDocumentation',
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
// Does not make sense with TypeScript
|
|
145
|
+
'jsdoc/require-param-type': 'off',
|
|
146
|
+
},
|
|
147
|
+
settings: {
|
|
148
|
+
'import/resolver': {
|
|
149
|
+
node: {
|
|
150
|
+
paths: ['src'],
|
|
151
|
+
extensions: ['.js', '.ts', '.vue'],
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
],
|
|
118
157
|
}
|
package/package.json
CHANGED
|
@@ -1,36 +1,46 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextcloud/eslint-config",
|
|
3
|
-
"version": "8.1
|
|
3
|
+
"version": "8.2.1",
|
|
4
4
|
"description": "Eslint shared config for nextcloud vue.js apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/nextcloud/eslint-config.git"
|
|
9
9
|
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"lint": "eslint -c index.js *.js",
|
|
12
|
+
"lint:fix": "eslint -c index.js --fix *.js"
|
|
13
|
+
},
|
|
10
14
|
"peerDependencies": {
|
|
11
15
|
"@babel/core": "^7.13.10",
|
|
12
16
|
"@babel/eslint-parser": "^7.16.5",
|
|
13
17
|
"@nextcloud/eslint-plugin": "^2.0.0",
|
|
18
|
+
"@vue/eslint-config-typescript": "^11.0.2",
|
|
14
19
|
"eslint": "^8.27.0",
|
|
15
20
|
"eslint-config-standard": "^17.0.0",
|
|
21
|
+
"eslint-import-resolver-exports": "^1.0.0-beta.4",
|
|
16
22
|
"eslint-plugin-import": "^2.26.0",
|
|
17
23
|
"eslint-plugin-jsdoc": "^39.6.2",
|
|
18
24
|
"eslint-plugin-n": "^15.5.1",
|
|
19
25
|
"eslint-plugin-promise": "^6.1.1",
|
|
20
26
|
"eslint-plugin-vue": "^9.7.0",
|
|
27
|
+
"typescript": "^4.9.4",
|
|
21
28
|
"webpack": "^5.4.0"
|
|
22
29
|
},
|
|
23
30
|
"devDependencies": {
|
|
24
31
|
"@babel/core": "^7.13.10",
|
|
25
32
|
"@babel/eslint-parser": "^7.16.5",
|
|
26
33
|
"@nextcloud/eslint-plugin": "^2.0.0",
|
|
34
|
+
"@vue/eslint-config-typescript": "^11.0.2",
|
|
27
35
|
"eslint": "^8.27.0",
|
|
36
|
+
"eslint-import-resolver-exports": "^1.0.0-beta.4",
|
|
28
37
|
"eslint-config-standard": "^17.0.0",
|
|
29
38
|
"eslint-plugin-import": "^2.26.0",
|
|
30
39
|
"eslint-plugin-jsdoc": "^39.6.2",
|
|
31
40
|
"eslint-plugin-n": "^15.5.1",
|
|
32
41
|
"eslint-plugin-promise": "^6.1.1",
|
|
33
42
|
"eslint-plugin-vue": "^9.7.0",
|
|
43
|
+
"typescript": "^4.9.4",
|
|
34
44
|
"webpack": "^5.4.0"
|
|
35
45
|
},
|
|
36
46
|
"keywords": [
|