@cooperco/nuxt-layer-base 1.0.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.
@@ -0,0 +1,50 @@
1
+ // @ts-check
2
+ import withNuxt from './.nuxt/eslint.config.mjs'
3
+
4
+ export default withNuxt({
5
+ rules: {
6
+ /* Stylistic */
7
+ '@stylistic/comma-dangle': [
8
+ 'error',
9
+ 'never'
10
+ ],
11
+
12
+ /* TS */
13
+ '@typescript-eslint/no-unused-vars': [
14
+ 'error',
15
+ { caughtErrorsIgnorePattern: '^_' }
16
+ ],
17
+
18
+ /* Vue */
19
+ 'vue/html-closing-bracket-newline': [
20
+ 'error',
21
+ { multiline: 'never', selfClosingTag: { multiline: 'never' } }
22
+ ],
23
+ 'vue/html-closing-bracket-spacing': [
24
+ 'error',
25
+ { selfClosingTag: 'never' }
26
+ ],
27
+ 'vue/html-indent': [
28
+ 'error', 2,
29
+ { baseIndent: 0 }
30
+ ]
31
+ }
32
+ })
33
+
34
+ /* Available Configs
35
+
36
+ gitignore,
37
+ nuxt/javascript,
38
+ nuxt/typescript/setup,
39
+ nuxt/typescript/rules,
40
+ nuxt/vue/setup,
41
+ nuxt/vue/rules,
42
+ nuxt/import/rules,
43
+ nuxt/setup,
44
+ nuxt/vue/single-root,
45
+ nuxt/rules,
46
+ nuxt/sort-config,
47
+ nuxt/stylistic,
48
+ nuxt/disables/routes,
49
+ nuxt/import-globals
50
+ */
package/nuxt.config.ts ADDED
@@ -0,0 +1,19 @@
1
+ export default defineNuxtConfig({
2
+ modules: ['@nuxt/eslint', '@nuxt/test-utils'],
3
+ devtools: { enabled: true },
4
+ compatibilityDate: '2025-07-15',
5
+
6
+ typescript: {
7
+ tsConfig: {
8
+ compilerOptions: {
9
+ strict: true
10
+ }
11
+ }
12
+ },
13
+
14
+ eslint: {
15
+ config: {
16
+ stylistic: true // needed for Vue Template linting rules
17
+ }
18
+ }
19
+ })
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@cooperco/nuxt-layer-base",
3
+ "version": "1.0.0",
4
+ "type": "module",
5
+ "main": "./nuxt.config.ts",
6
+ "scripts": {
7
+ "dev": "nuxt dev",
8
+ "lint": "nuxt prepare && eslint .",
9
+ "lint:fix": "nuxt prepare && eslint . --fix",
10
+ "typecheck": "nuxt prepare && vue-tsc -b --noEmit"
11
+ },
12
+ "description": "Base Nuxt layer for cooperco projects",
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/Cryobank/nuxt-layers.git",
19
+ "directory": "layers/base"
20
+ },
21
+ "author": "cooperco",
22
+ "license": "MIT",
23
+ "dependencies": {
24
+ "@nuxt/eslint": "^1.7.1",
25
+ "@nuxt/test-utils": "^3.19.2",
26
+ "eslint": "^9.32.0",
27
+ "nuxt": "^4.0.0",
28
+ "vue-tsc": "^3.0.4"
29
+ }
30
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "files": [],
3
+ "references": [
4
+ { "path": "./.nuxt/tsconfig.app.json" },
5
+ { "path": "./.nuxt/tsconfig.server.json" },
6
+ { "path": "./.nuxt/tsconfig.shared.json" },
7
+ { "path": "./.nuxt/tsconfig.node.json" }
8
+ ]
9
+ }