@blueking/bkui-lint 0.1.7 → 0.1.9
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/eslint.mjs +6 -6
- package/package.json +1 -1
- package/prettier.mjs +8 -0
package/eslint.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import eslintConfigPrettier from 'eslint-config-prettier';
|
|
|
3
3
|
import tencentEslintLegacyRules from 'eslint-config-tencent/ts';
|
|
4
4
|
import codecc from 'eslint-plugin-codecc';
|
|
5
5
|
import perfectionist from 'eslint-plugin-perfectionist';
|
|
6
|
-
import prettier from 'eslint-plugin-prettier';
|
|
6
|
+
// import prettier from 'eslint-plugin-prettier';
|
|
7
7
|
import eslintVuePlugin from 'eslint-plugin-vue';
|
|
8
8
|
import tsEslint from 'typescript-eslint';
|
|
9
9
|
|
|
@@ -147,10 +147,10 @@ export default [
|
|
|
147
147
|
{
|
|
148
148
|
ignores: ['node_modules', 'dist', '*.json'],
|
|
149
149
|
},
|
|
150
|
-
{
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
},
|
|
150
|
+
// {
|
|
151
|
+
// plugins: { prettier },
|
|
152
|
+
// rules: { ...prettier.configs.recommended.rules },
|
|
153
|
+
// },
|
|
154
154
|
...createVueEslintConfig(),
|
|
155
155
|
{
|
|
156
156
|
files: ['*.js', '**/*.js', '*.ts', '**/*.ts'],
|
|
@@ -364,7 +364,7 @@ export default [
|
|
|
364
364
|
parserOptions: {
|
|
365
365
|
ecmaFeatures: { jsx: true, legacyDecorators: true },
|
|
366
366
|
ecmaVersion: 'latest',
|
|
367
|
-
|
|
367
|
+
projectService: true,
|
|
368
368
|
},
|
|
369
369
|
},
|
|
370
370
|
plugins: {
|
package/package.json
CHANGED
package/prettier.mjs
CHANGED
|
@@ -37,4 +37,12 @@ export default {
|
|
|
37
37
|
useTabs: false,
|
|
38
38
|
vueIndentScriptAndStyle: true,
|
|
39
39
|
jsxBracketSameLine: false,
|
|
40
|
+
bracketSpacing: true,
|
|
41
|
+
endOfLine: 'lf',
|
|
42
|
+
htmlWhitespaceSensitivity: 'css',
|
|
43
|
+
insertPragma: false,
|
|
44
|
+
proseWrap: 'preserve',
|
|
45
|
+
requirePragma: false,
|
|
46
|
+
embeddedLanguageFormatting: 'auto',
|
|
47
|
+
experimentalTernaries: false,
|
|
40
48
|
};
|