@nextcloud/eslint-config 8.1.4 → 8.2.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/CHANGELOG.md +20 -0
- package/README.md +5 -4
- package/index.js +39 -3
- package/package.json +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v8.2.0](https://github.com/nextcloud/eslint-config/tree/v8.2.0) (2023-01-11)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v8.1.5...v8.2.0)
|
|
6
|
+
|
|
7
|
+
**Implemented enhancements:**
|
|
8
|
+
- 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))
|
|
9
|
+
- feat: Add sub config for TypeScript projects [\#433](https://github.com/nextcloud/eslint-config/pull/433) ([susnux](https://github.com/susnux))
|
|
10
|
+
|
|
11
|
+
**Dependency updates:**
|
|
12
|
+
- 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))
|
|
13
|
+
- 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))
|
|
14
|
+
|
|
15
|
+
## [v8.1.5](https://github.com/nextcloud/eslint-config/tree/v8.1.5) (2023-01-02)
|
|
16
|
+
|
|
17
|
+
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v8.1.4...v8.1.5)
|
|
18
|
+
|
|
19
|
+
**Dependency updates:**
|
|
20
|
+
- Bump json5 from 1.0.1 to 1.0.2 by @PVince81 in https://github.com/nextcloud/eslint-config/pull/430
|
|
21
|
+
- Bump json5 from 2.2.1 to 2.2.3 by @PVince81 in https://github.com/nextcloud/eslint-config/pull/430
|
|
22
|
+
|
|
3
23
|
## [v8.1.4](https://github.com/nextcloud/eslint-config/tree/v8.1.4) (2022-11-17)
|
|
4
24
|
|
|
5
25
|
[Full Changelog](https://github.com/nextcloud/eslint-config/compare/v8.1.3...v8.1.4)
|
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',
|
|
@@ -91,8 +92,8 @@ module.exports = {
|
|
|
91
92
|
multiline: 1,
|
|
92
93
|
}],
|
|
93
94
|
'vue/first-attribute-linebreak': ['error', {
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
singleline: 'beside',
|
|
96
|
+
multiline: 'beside',
|
|
96
97
|
}],
|
|
97
98
|
// Allow single-word components names
|
|
98
99
|
'vue/multi-word-component-names': ['off'],
|
|
@@ -106,7 +107,7 @@ module.exports = {
|
|
|
106
107
|
// Allow shallow import of @vue/test-utils and @testing-library/vue in order to be able to use it in
|
|
107
108
|
// the src folder
|
|
108
109
|
'n/no-unpublished-import': ['error', {
|
|
109
|
-
|
|
110
|
+
allowModules: ['@vue/test-utils', '@testing-library/vue'],
|
|
110
111
|
}],
|
|
111
112
|
// require object literal shorthand syntax
|
|
112
113
|
'object-shorthand': ['error', 'always'],
|
|
@@ -115,4 +116,39 @@ module.exports = {
|
|
|
115
116
|
ignorePackages: true,
|
|
116
117
|
}],
|
|
117
118
|
},
|
|
119
|
+
overrides: [
|
|
120
|
+
{
|
|
121
|
+
files: ['**/*.ts'],
|
|
122
|
+
extends: [
|
|
123
|
+
'@vue/eslint-config-typescript/recommended',
|
|
124
|
+
'plugin:import/typescript',
|
|
125
|
+
],
|
|
126
|
+
parserOptions: {
|
|
127
|
+
parser: '@typescript-eslint/parser',
|
|
128
|
+
},
|
|
129
|
+
rules: {
|
|
130
|
+
'n/no-missing-import': 'off',
|
|
131
|
+
'import/extensions': 'off',
|
|
132
|
+
'jsdoc/check-tag-names': [
|
|
133
|
+
'warn', {
|
|
134
|
+
// for projects using typedoc
|
|
135
|
+
definedTags: [
|
|
136
|
+
'notExported',
|
|
137
|
+
'packageDocumentation',
|
|
138
|
+
],
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
// Does not make sense with TypeScript
|
|
142
|
+
'jsdoc/require-param-type': 'off',
|
|
143
|
+
},
|
|
144
|
+
settings: {
|
|
145
|
+
'import/resolver': {
|
|
146
|
+
node: {
|
|
147
|
+
paths: ['src'],
|
|
148
|
+
extensions: ['.js', '.ts', '.vue'],
|
|
149
|
+
},
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
],
|
|
118
154
|
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nextcloud/eslint-config",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.2.0",
|
|
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",
|
|
16
21
|
"eslint-plugin-import": "^2.26.0",
|
|
@@ -18,12 +23,14 @@
|
|
|
18
23
|
"eslint-plugin-n": "^15.5.1",
|
|
19
24
|
"eslint-plugin-promise": "^6.1.1",
|
|
20
25
|
"eslint-plugin-vue": "^9.7.0",
|
|
26
|
+
"typescript": "^4.9.4",
|
|
21
27
|
"webpack": "^5.4.0"
|
|
22
28
|
},
|
|
23
29
|
"devDependencies": {
|
|
24
30
|
"@babel/core": "^7.13.10",
|
|
25
31
|
"@babel/eslint-parser": "^7.16.5",
|
|
26
32
|
"@nextcloud/eslint-plugin": "^2.0.0",
|
|
33
|
+
"@vue/eslint-config-typescript": "^11.0.2",
|
|
27
34
|
"eslint": "^8.27.0",
|
|
28
35
|
"eslint-config-standard": "^17.0.0",
|
|
29
36
|
"eslint-plugin-import": "^2.26.0",
|
|
@@ -31,6 +38,7 @@
|
|
|
31
38
|
"eslint-plugin-n": "^15.5.1",
|
|
32
39
|
"eslint-plugin-promise": "^6.1.1",
|
|
33
40
|
"eslint-plugin-vue": "^9.7.0",
|
|
41
|
+
"typescript": "^4.9.4",
|
|
34
42
|
"webpack": "^5.4.0"
|
|
35
43
|
},
|
|
36
44
|
"keywords": [
|