@nextcloud/eslint-config 8.0.0 → 8.1.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/index.js +6 -8
  3. package/package.json +51 -51
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v8.1.0](https://github.com/nextcloud/eslint-config/tree/v8.0.0) (PENDING)
4
+
5
+ [Full Changelog](https://github.com/nextcloud/eslint-config/compare/v8.0.0...v8.1.0)
6
+
7
+ **Dependency updates:**
8
+
9
+ - 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)
10
+
3
11
  ## [v8.0.0](https://github.com/nextcloud/eslint-config/tree/v8.0.0) (2022-04-20)
4
12
 
5
13
  [Full Changelog](https://github.com/nextcloud/eslint-config/compare/v7.0.2...v8.0.0)
package/index.js CHANGED
@@ -16,7 +16,7 @@ module.exports = {
16
16
  'eslint:recommended',
17
17
  'plugin:import/errors',
18
18
  'plugin:import/warnings',
19
- 'plugin:node/recommended',
19
+ 'plugin:n/recommended',
20
20
  'plugin:vue/recommended',
21
21
  'plugin:@nextcloud/recommended',
22
22
  'plugin:jsdoc/recommended',
@@ -35,7 +35,7 @@ module.exports = {
35
35
  }
36
36
  }
37
37
  },
38
- plugins: ['vue', 'node', 'jsdoc'],
38
+ plugins: ['vue', 'n', 'jsdoc'],
39
39
  rules: {
40
40
  // space before function ()
41
41
  'space-before-function-paren': ['error', {
@@ -68,8 +68,8 @@ module.exports = {
68
68
  // suggest using const
69
69
  'prefer-const': 'error',
70
70
  // es6 import/export and require
71
- 'node/no-unpublished-require': ['off'],
72
- 'node/no-unsupported-features/es-syntax': ['off'],
71
+ 'n/no-unpublished-require': ['off'],
72
+ 'n/no-unsupported-features/es-syntax': ['off'],
73
73
  // PascalCase components names for vuejs
74
74
  // https://vuejs.org/v2/style-guide/#Single-file-component-filename-casing-strongly-recommended
75
75
  'vue/component-name-in-template-casing': ['error', 'PascalCase'],
@@ -83,9 +83,7 @@ module.exports = {
83
83
  // no ending html tag on a new line
84
84
  'vue/html-closing-bracket-newline': ['error', { multiline: 'never' }],
85
85
  // check vue files too
86
- 'node/no-missing-import': ['error', {
87
- tryExtensions: ['.js', '.vue'],
88
- }],
86
+ 'n/no-missing-import': ['error', {}],
89
87
  // code spacing with attributes
90
88
  'vue/max-attributes-per-line': ['error', {
91
89
  singleline: 3,
@@ -106,7 +104,7 @@ module.exports = {
106
104
  'comma-dangle': ['warn', 'always-multiline'],
107
105
  // Allow shallow import of @vue/test-utils and @testing-library/vue in order to be able to use it in
108
106
  // the src folder
109
- 'node/no-unpublished-import': ['error', {
107
+ 'n/no-unpublished-import': ['error', {
110
108
  'allowModules': ['@vue/test-utils', '@testing-library/vue'],
111
109
  }],
112
110
  // require object literal shorthand syntax
package/package.json CHANGED
@@ -1,53 +1,53 @@
1
1
  {
2
- "name": "@nextcloud/eslint-config",
3
- "version": "8.0.0",
4
- "description": "Eslint shared config for nextcloud vue.js apps",
5
- "main": "index.js",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/nextcloud/eslint-config.git"
9
- },
10
- "peerDependencies": {
11
- "@babel/core": "^7.13.10",
12
- "@babel/eslint-parser": "^7.16.5",
13
- "@nextcloud/eslint-plugin": "^2.0.0",
14
- "eslint": "^8.6.0",
15
- "eslint-config-standard": "^17.0.0-0",
16
- "eslint-plugin-import": "^2.25.4",
17
- "eslint-plugin-jsdoc": "^39.2.1",
18
- "eslint-plugin-node": "^11.1.0",
19
- "eslint-plugin-promise": "^6.0.0",
20
- "eslint-plugin-vue": "^8.2.0",
21
- "webpack": "^5.4.0"
22
- },
23
- "devDependencies": {
24
- "@babel/core": "^7.13.10",
25
- "@babel/eslint-parser": "^7.16.5",
26
- "@nextcloud/eslint-plugin": "^2.0.0",
27
- "eslint": "^8.6.0",
28
- "eslint-config-standard": "^17.0.0-0",
29
- "eslint-plugin-import": "^2.25.4",
30
- "eslint-plugin-jsdoc": "^39.2.1",
31
- "eslint-plugin-node": "^11.1.0",
32
- "eslint-plugin-promise": "^6.0.0",
33
- "eslint-plugin-vue": "^8.2.0",
34
- "webpack": "^5.4.0"
35
- },
36
- "keywords": [
37
- "eslint",
38
- "vue",
39
- "vuejs",
40
- "config",
41
- "nextcloud"
42
- ],
43
- "author": "John Molakvoæ <skjnldsv@protonmail.com>",
44
- "license": "AGPL-3.0-or-later",
45
- "bugs": {
46
- "url": "https://github.com/nextcloud/eslint-config/issues"
47
- },
48
- "homepage": "https://github.com/nextcloud/eslint-config#readme",
49
- "engines": {
50
- "node": "^14.0.0",
51
- "npm": "^7.0.0"
52
- }
2
+ "name": "@nextcloud/eslint-config",
3
+ "version": "8.1.2",
4
+ "description": "Eslint shared config for nextcloud vue.js apps",
5
+ "main": "index.js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/nextcloud/eslint-config.git"
9
+ },
10
+ "peerDependencies": {
11
+ "@babel/core": "^7.13.10",
12
+ "@babel/eslint-parser": "^7.16.5",
13
+ "@nextcloud/eslint-plugin": "^2.0.0",
14
+ "eslint": "^8.6.0",
15
+ "eslint-config-standard": "^17.0.0-0",
16
+ "eslint-plugin-import": "^2.25.4",
17
+ "eslint-plugin-jsdoc": "^39.2.1",
18
+ "eslint-plugin-n": "^15.2.3",
19
+ "eslint-plugin-promise": "^6.0.0",
20
+ "eslint-plugin-vue": "^9.1.1",
21
+ "webpack": "^5.4.0"
22
+ },
23
+ "devDependencies": {
24
+ "@babel/core": "^7.13.10",
25
+ "@babel/eslint-parser": "^7.16.5",
26
+ "@nextcloud/eslint-plugin": "^2.0.0",
27
+ "eslint": "^8.6.0",
28
+ "eslint-config-standard": "^17.0.0-0",
29
+ "eslint-plugin-import": "^2.25.4",
30
+ "eslint-plugin-jsdoc": "^39.2.1",
31
+ "eslint-plugin-n": "^15.2.3",
32
+ "eslint-plugin-promise": "^6.0.0",
33
+ "eslint-plugin-vue": "^9.1.1",
34
+ "webpack": "^5.4.0"
35
+ },
36
+ "keywords": [
37
+ "eslint",
38
+ "vue",
39
+ "vuejs",
40
+ "config",
41
+ "nextcloud"
42
+ ],
43
+ "author": "John Molakvoæ <skjnldsv@protonmail.com>",
44
+ "license": "AGPL-3.0-or-later",
45
+ "bugs": {
46
+ "url": "https://github.com/nextcloud/eslint-config/issues"
47
+ },
48
+ "homepage": "https://github.com/nextcloud/eslint-config#readme",
49
+ "engines": {
50
+ "node": "^16.0.0",
51
+ "npm": "^7.0.0 || ^8.0.0"
52
+ }
53
53
  }