@quasar/render-ssr-error 1.0.0-beta.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/.eslintignore +3 -0
- package/.eslintrc.cjs +69 -0
- package/README.md +27 -0
- package/compiled-assets/after-injection +24 -0
- package/compiled-assets/before-injection +2 -0
- package/package.json +56 -0
- package/src/env.js +59 -0
- package/src/error-details.js +7 -0
- package/src/index.js +35 -0
- package/src/stack.js +75 -0
package/.eslintignore
ADDED
package/.eslintrc.cjs
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
|
|
2
|
+
module.exports = {
|
|
3
|
+
// https://eslint.org/docs/user-guide/configuring#configuration-cascading-and-hierarchy
|
|
4
|
+
// This option interrupts the configuration hierarchy at this file
|
|
5
|
+
// Remove this if you have an higher level ESLint config file (it usually happens into a monorepos)
|
|
6
|
+
root: true,
|
|
7
|
+
|
|
8
|
+
parserOptions: {
|
|
9
|
+
ecmaVersion: '2022' // Allows for the parsing of modern ECMAScript features
|
|
10
|
+
},
|
|
11
|
+
|
|
12
|
+
env: {
|
|
13
|
+
node: true,
|
|
14
|
+
browser: true,
|
|
15
|
+
'vue/setup-compiler-macros': true
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
// Rules order is important, please avoid shuffling them
|
|
19
|
+
extends: [
|
|
20
|
+
'eslint:recommended',
|
|
21
|
+
'plugin:vue/vue3-essential', // Priority A: Essential (Error Prevention)
|
|
22
|
+
'standard'
|
|
23
|
+
],
|
|
24
|
+
|
|
25
|
+
plugins: [
|
|
26
|
+
// https://eslint.vuejs.org/user-guide/#why-doesn-t-it-work-on-vue-files
|
|
27
|
+
// required to lint *.vue files
|
|
28
|
+
'vue'
|
|
29
|
+
],
|
|
30
|
+
|
|
31
|
+
// add your custom rules here
|
|
32
|
+
rules: {
|
|
33
|
+
'brace-style': [ 2, 'stroustrup', { allowSingleLine: true } ],
|
|
34
|
+
'prefer-const': 2,
|
|
35
|
+
'prefer-promise-reject-errors': 'off',
|
|
36
|
+
'multiline-ternary': 'off',
|
|
37
|
+
'no-prototype-builtins': 'off',
|
|
38
|
+
'no-case-declarations': 'off',
|
|
39
|
+
'generator-star-spacing': 'off',
|
|
40
|
+
'arrow-parens': 'off',
|
|
41
|
+
'object-property-newline': 'off',
|
|
42
|
+
'one-var': 'off',
|
|
43
|
+
'no-void': 'off',
|
|
44
|
+
'no-lone-blocks': 'error',
|
|
45
|
+
'no-unused-expressions': [ 'error', { allowShortCircuit: true } ],
|
|
46
|
+
'no-useless-concat': 'error',
|
|
47
|
+
'no-useless-return': 'error',
|
|
48
|
+
'no-unneeded-ternary': 'error',
|
|
49
|
+
'no-confusing-arrow': [ 'error', { allowParens: true } ],
|
|
50
|
+
'operator-linebreak': [ 'error', 'before' ],
|
|
51
|
+
|
|
52
|
+
'array-bracket-spacing': [ 'error', 'always' ],
|
|
53
|
+
'object-curly-spacing': [ 'error', 'always' ],
|
|
54
|
+
'computed-property-spacing': [ 'error', 'always' ],
|
|
55
|
+
'template-curly-spacing': [ 'error', 'always' ],
|
|
56
|
+
|
|
57
|
+
'import/first': 'off',
|
|
58
|
+
'import/named': 'error',
|
|
59
|
+
'import/namespace': 'error',
|
|
60
|
+
'import/default': 'error',
|
|
61
|
+
'import/export': 'error',
|
|
62
|
+
'import/extensions': 'off',
|
|
63
|
+
'import/no-unresolved': 'off',
|
|
64
|
+
'import/no-extraneous-dependencies': 'off',
|
|
65
|
+
|
|
66
|
+
// allow debugger during development only
|
|
67
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
|
|
68
|
+
}
|
|
69
|
+
}
|
package/README.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+

|
|
2
|
+
|
|
3
|
+
# Render SSR error for Quasar Framework
|
|
4
|
+
> **Used internally by Quasar CLI.**
|
|
5
|
+
|
|
6
|
+
<img src="https://img.shields.io/npm/v/%40quasar/render-ssr-error.svg?label=@quasar/render-ssr-error">
|
|
7
|
+
|
|
8
|
+
## Chat Support
|
|
9
|
+
|
|
10
|
+
Ask questions at the official community Discord server: [https://chat.quasar.dev](https://chat.quasar.dev)
|
|
11
|
+
|
|
12
|
+
## Community Forum
|
|
13
|
+
|
|
14
|
+
Ask questions at the official community forum: [https://forum.quasar.dev](https://forum.quasar.dev)
|
|
15
|
+
|
|
16
|
+
## Contributing
|
|
17
|
+
|
|
18
|
+
I'm excited if you want to contribute to Quasar under any form (report bugs, write a plugin, fix an issue, write a new feature). Please read the [Contributing Guide](../../CONTRIBUTING.md).
|
|
19
|
+
|
|
20
|
+
## Semver
|
|
21
|
+
Quasar is following [Semantic Versioning 2.0](https://semver.org/).
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
|
|
25
|
+
Copyright (c) 2023-present Razvan Stoenescu
|
|
26
|
+
|
|
27
|
+
[MIT License](http://en.wikipedia.org/wiki/MIT_License)
|