mirror of
https://github.com/idrawjs/idraw
synced 2026-05-23 01:28:31 +00:00
Merge pull request #369 from idrawjs/dev-v0.4
chore: improve prettier and eslint config
This commit is contained in:
commit
2ca8a90765
4 changed files with 315 additions and 309 deletions
|
|
@ -4,7 +4,7 @@
|
|||
"endOfLine": "auto",
|
||||
"singleQuote": true,
|
||||
"semi": true,
|
||||
"trailingComma": "none",
|
||||
"trailingComma": "es5",
|
||||
"bracketSpacing": true,
|
||||
"printWidth": 160
|
||||
"printWidth": 120
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,30 +16,34 @@ export default [
|
|||
files: ['scripts/**/*.ts', 'babel.config.js', 'jest.*.js', 'jest.*.*.js'],
|
||||
rules: {
|
||||
// 'no-console': 'error'
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
// files: ['src/**/*.{js,mjs,cjs,ts,jsx,tsx}'],
|
||||
files: ['packages/*/src/**/*.ts'],
|
||||
files: [
|
||||
'packages/types/src/**/*.ts',
|
||||
'packages/util/src/**/*.ts',
|
||||
'packages/renderer/src/**/*.ts',
|
||||
'packages/core/src/**/*.ts',
|
||||
'packages/idraw/src/**/*.ts',
|
||||
],
|
||||
languageOptions: {
|
||||
globals: globals.browser,
|
||||
parser: tsParser,
|
||||
ecmaVersion: 'latest',
|
||||
sourceType: 'module',
|
||||
parserOptions: {}
|
||||
parserOptions: {},
|
||||
},
|
||||
plugins: {
|
||||
'@typescript-eslint': typescriptEslint
|
||||
'@typescript-eslint': typescriptEslint,
|
||||
},
|
||||
ignores: ['node_modules'],
|
||||
// ignores: ['node_modules'],
|
||||
rules: {
|
||||
semi: 'error',
|
||||
'no-console': 'error',
|
||||
'comma-dangle': ['always-multiline'],
|
||||
'@typescript-eslint/rule-name': 0,
|
||||
'@typescript-eslint/no-explicit-any': 0,
|
||||
'@typescript-eslint/explicit-module-boundary-types': 0,
|
||||
'@typescript-eslint/no-unnecessary-type-constraint': 0
|
||||
}
|
||||
}
|
||||
'@typescript-eslint/no-unnecessary-type-constraint': 0,
|
||||
},
|
||||
},
|
||||
];
|
||||
|
|
|
|||
22
package.json
22
package.json
|
|
@ -35,16 +35,16 @@
|
|||
"@babel/preset-typescript": "^7.27.1",
|
||||
"@eslint/js": "^9.35.0",
|
||||
"@rollup/plugin-json": "^6.1.0",
|
||||
"@types/glob": "^8.1.0",
|
||||
"@types/glob": "^9.0.0",
|
||||
"@types/jest": "^30.0.0",
|
||||
"@types/koa-compose": "^3.2.8",
|
||||
"@types/node": "^24.3.1",
|
||||
"@types/node": "^24.3.3",
|
||||
"@types/serve-handler": "^6.1.4",
|
||||
"@typescript-eslint/eslint-plugin": "^8.42.0",
|
||||
"@typescript-eslint/parser": "^8.42.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.43.0",
|
||||
"@typescript-eslint/parser": "^8.43.0",
|
||||
"@vitejs/plugin-react": "^5.0.2",
|
||||
"babel-jest": "^30.1.2",
|
||||
"chalk": "^5.6.0",
|
||||
"chalk": "^5.6.2",
|
||||
"dotenv": "^17.2.2",
|
||||
"enquirer": "^2.4.1",
|
||||
"esbuild": "^0.25.9",
|
||||
|
|
@ -54,7 +54,7 @@
|
|||
"execa": "^9.6.0",
|
||||
"fs-extra": "^11.3.1",
|
||||
"glob": "^11.0.3",
|
||||
"globals": "^16.3.0",
|
||||
"globals": "^16.4.0",
|
||||
"http-server": "^14.1.1",
|
||||
"husky": "^9.1.7",
|
||||
"jest": "^30.1.3",
|
||||
|
|
@ -65,18 +65,18 @@
|
|||
"less": "^4.4.1",
|
||||
"pixelmatch": "^7.1.0",
|
||||
"pngjs": "^7.0.0",
|
||||
"puppeteer": "^24.19.0",
|
||||
"rollup": "^4.50.0",
|
||||
"puppeteer": "^24.20.0",
|
||||
"rollup": "^4.50.1",
|
||||
"rollup-plugin-dts": "^6.2.3",
|
||||
"rollup-plugin-esbuild": "^6.2.1",
|
||||
"serve-handler": "^6.1.6",
|
||||
"terser": "^5.44.0",
|
||||
"ts-morph": "^26.0.0",
|
||||
"ts-morph": "^27.0.0",
|
||||
"ts-node": "^10.9.2",
|
||||
"tslib": "^2.8.1",
|
||||
"typescript": "^5.9.2",
|
||||
"typescript-eslint": "^8.42.0",
|
||||
"vite": "^7.1.4"
|
||||
"typescript-eslint": "^8.43.0",
|
||||
"vite": "^7.1.5"
|
||||
},
|
||||
"engines": {
|
||||
"pnpm": ">=10",
|
||||
|
|
|
|||
574
pnpm-lock.yaml
574
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue