@kouts/eslint-config 0.0.10 → 0.0.11

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/README.md CHANGED
@@ -16,6 +16,7 @@ There are 4 ESLint config presets that you can use:
16
16
  - `@kouts/eslint-config/vue2` for Vue.js 2 projects
17
17
  - `@kouts/eslint-config/vue3` for Vue.js 3 projects
18
18
  - `@kouts/eslint-config/vue3-typescript` for Vue.js 3 / TypeScript projects
19
+ - `@kouts/eslint-config/nuxt3` for Nuxt 3 projects
19
20
 
20
21
  Add the desired config preset into your `.eslintrc.js` file:
21
22
 
package/index.js CHANGED
@@ -4,6 +4,7 @@ const vue = require('./vue')
4
4
  const vue2 = require('./vue2')
5
5
  const vue3 = require('./vue3')
6
6
  const vue3Typescript = require('./vue3')
7
+ const nuxt3 = require('./nuxt3')
7
8
 
8
9
  module.exports = {
9
10
  configs: {
@@ -12,6 +13,7 @@ module.exports = {
12
13
  vue,
13
14
  vue2,
14
15
  vue3,
15
- 'vue3-typescript': vue3Typescript
16
+ 'vue3-typescript': vue3Typescript,
17
+ nuxt3
16
18
  }
17
19
  }
package/nuxt3.js ADDED
@@ -0,0 +1,15 @@
1
+ const javascript = require.resolve('./javascript.js')
2
+ const vue = require.resolve('./vue.js')
3
+
4
+ module.exports = {
5
+ extends: ['@nuxtjs/eslint-config-typescript', vue, javascript],
6
+ rules: {
7
+ /* Typescript */
8
+
9
+ // Disable 'no-unused-vars' as TypeScript has its own version
10
+ 'no-unused-vars': 'off',
11
+
12
+ // Prefer T[] instead of Array<T>
13
+ '@typescript-eslint/array-type': ['error', { default: 'array' }]
14
+ }
15
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kouts/eslint-config",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "Kouts's ESLint config",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -11,6 +11,7 @@
11
11
  "vue2.js",
12
12
  "vue3.js",
13
13
  "vue3-typescript.js",
14
+ "nuxt3.js",
14
15
  "prettier.config.js",
15
16
  "configVars.js"
16
17
  ],
@@ -40,9 +41,10 @@
40
41
  },
41
42
  "homepage": "https://github.com/kouts/eslint-config#readme",
42
43
  "dependencies": {
43
- "@typescript-eslint/parser": "^5.53.0",
44
+ "@nuxtjs/eslint-config-typescript": "^12.0.0",
45
+ "@typescript-eslint/parser": "^5.56.0",
44
46
  "@vue/eslint-config-typescript": "^11.0.2",
45
- "eslint-config-prettier": "^8.6.0",
47
+ "eslint-config-prettier": "^8.8.0",
46
48
  "eslint-config-standard": "^17.0.0",
47
49
  "eslint-plugin-html": "^7.1.0",
48
50
  "eslint-plugin-import": "^2.27.5",
@@ -50,16 +52,16 @@
50
52
  "eslint-plugin-prettier": "^4.2.1",
51
53
  "eslint-plugin-promise": "^6.1.1",
52
54
  "eslint-plugin-sort-imports-es6-autofix": "^0.6.0",
53
- "eslint-plugin-vue": "^9.9.0",
55
+ "eslint-plugin-vue": "^9.10.0",
54
56
  "vue-eslint-parser": "^9.1.0"
55
57
  },
56
58
  "devDependencies": {
57
- "eslint": "^8.35.0",
58
- "prettier": "^2.8.4",
59
- "typescript": "^4.8.4"
59
+ "eslint": "^8.36.0",
60
+ "prettier": "^2.8.7",
61
+ "typescript": "^4.9.5"
60
62
  },
61
63
  "peerDependencies": {
62
- "eslint": "^8.35.0",
63
- "prettier": "^2.8.4"
64
+ "eslint": "^8.36.0",
65
+ "prettier": "^2.8.7"
64
66
  }
65
67
  }