@lark-apaas/fullstack-cli 1.1.71 → 1.1.72-alpha.20261114063639
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/package.json
CHANGED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
const tseslint = require('typescript-eslint');
|
|
2
|
+
const { eslintPresetsOfSimple } = require('@lark-apaas/fullstack-presets');
|
|
3
|
+
|
|
4
|
+
module.exports = tseslint.config(
|
|
5
|
+
{
|
|
6
|
+
ignores: [
|
|
7
|
+
'dist',
|
|
8
|
+
'dist-server',
|
|
9
|
+
'node_modules',
|
|
10
|
+
'source_package',
|
|
11
|
+
'coverage/**',
|
|
12
|
+
'logs/**',
|
|
13
|
+
'tmp/**',
|
|
14
|
+
'temp/**',
|
|
15
|
+
'.playwright-cli/**',
|
|
16
|
+
'.agent/**',
|
|
17
|
+
'client/src/api/gen',
|
|
18
|
+
'**/*.d.ts',
|
|
19
|
+
'**/*.js.map',
|
|
20
|
+
],
|
|
21
|
+
},
|
|
22
|
+
// Client configuration
|
|
23
|
+
{
|
|
24
|
+
files: ['client/**/*.{ts,tsx}', 'shared/**/*.{ts,tsx}'],
|
|
25
|
+
extends: [
|
|
26
|
+
...eslintPresetsOfSimple.client,
|
|
27
|
+
],
|
|
28
|
+
languageOptions: {
|
|
29
|
+
parserOptions: {
|
|
30
|
+
project: './tsconfig.app.json',
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
settings: {
|
|
34
|
+
'import/resolver': {
|
|
35
|
+
alias: {
|
|
36
|
+
map: [
|
|
37
|
+
['@', './client/src'],
|
|
38
|
+
['@client', './client'],
|
|
39
|
+
['@shared', './shared'],
|
|
40
|
+
],
|
|
41
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
// Server configuration
|
|
47
|
+
{
|
|
48
|
+
files: ['server/**/*.{ts,tsx}', 'shared/**/*.{ts,tsx}'],
|
|
49
|
+
extends: [
|
|
50
|
+
...eslintPresetsOfSimple.server,
|
|
51
|
+
],
|
|
52
|
+
languageOptions: {
|
|
53
|
+
parserOptions: {
|
|
54
|
+
project: './tsconfig.node.json',
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
settings: {
|
|
58
|
+
'import/resolver': {
|
|
59
|
+
alias: {
|
|
60
|
+
map: [['@server', './server'], ['@shared', './shared']],
|
|
61
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
62
|
+
},
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Shared with the NestJS template integration (owned by apaas/miaoda-coding).
|
|
2
|
+
import recommended from '@lark-apaas/fullstack-presets/lib/simple/recommend/oxlint/index.js';
|
|
3
|
+
import compatibility from '@lark-apaas/fullstack-presets/lib/oxlint/compat-config.js';
|
|
4
|
+
|
|
5
|
+
export default compatibility.withDirectiveCompatibility(
|
|
6
|
+
recommended.oxlintConfig
|
|
7
|
+
);
|