Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
chore: improve eslint performance on file save (#651)
白熱c5ebc2b2fcdc
diff --git a/.eslintrc.cjs b/.eslintrc.cjsindex 63e781724a..61155a1f47 100644--- a/.eslintrc.cjs+++ b/.eslintrc.cjs@@ -18,6 +18,7 @@ module.exports = {'airbnb-base', // https://www.npmjs.com/package/eslint-config-airbnb-base'airbnb-typescript/base', // https://www.npmjs.com/package/eslint-config-airbnb-typescript// "plugin:@typescript-eslint/recommended",// no need https://typescript-eslint.io/+ 'plugin:prettier/recommended','prettier',],parserOptions: {@@ -29,12 +30,6 @@ module.exports = {rules: {'no-cond-assign': 'off','no-restricted-globals': 'off',- 'prettier/prettier': [- 'error',- {- endOfLine: 'auto',- },- ],'import/prefer-default-export': 'off','import/no-extraneous-dependencies': ['error',diff --git a/.prettierrc b/.prettierrcindex ebfae51a91..5d43401e1f 100644--- a/.prettierrc+++ b/.prettierrc@@ -4,5 +4,5 @@"singleQuote": true,"tabWidth": 4,"trailingComma": "es5",- "endOfLine": "lf"+ "endOfLine": "auto"}diff --git a/package.json b/package.jsonindex 9080204879..06cfcc5bb8 100644--- a/package.json+++ b/package.json@@ -13,9 +13,9 @@"build": "turbo esbuild","build:demo": "turbo esbuild:demo","pre-commit": "lint-staged",- "lint": "eslint --cache packages/**/src/**/*.{tsx,ts}",+ "lint": "TIMING=1 eslint --cache packages/**/src/**/*.{tsx,ts}","lint:style": "stylelint **/*.less",- "lint:fix": "eslint packages/**/src/**/*.{tsx,ts} --fix",+ "lint:fix": "TIMING=1 eslint packages/**/src/**/*.{tsx,ts} --fix","dev:storybook": "storybook dev -p 6006 --no-open","build:storybook": "storybook build","dev:site": "turbo dev:docusaurus",