@vida0905/eslint-config 0.1.6 → 0.2.0

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/README.md CHANGED
@@ -8,7 +8,6 @@ Self use eslint config, extends [antfu's config](https://github.com/antfu/eslint
8
8
 
9
9
  - More stricter rules.
10
10
  - Support `pinia`.
11
- - Set `semi` to `true`
12
11
  - Disable `formatter` and `jsx`
13
12
 
14
13
  ### Setup
@@ -27,9 +26,10 @@ export default vida();
27
26
 
28
27
  in `.vscode/settings.json`, more info to [@antfu/eslint-config](https://github.com/antfu/eslint-config?tab=readme-ov-file#vs-code-support-auto-fix-on-save)
29
28
 
30
- ```json
29
+ ```jsonc
31
30
  {
32
31
  // Enable the ESlint flat config support
32
+ // (remove this if your ESLint extension above v3.0.5)
33
33
  "eslint.experimental.useFlatConfig": true,
34
34
 
35
35
  // Disable the default formatter, use eslint instead
@@ -42,6 +42,20 @@ in `.vscode/settings.json`, more info to [@antfu/eslint-config](https://github.c
42
42
  "source.organizeImports": "never"
43
43
  },
44
44
 
45
+ // Silent the stylistic rules in you IDE, but still auto fix them
46
+ "eslint.rules.customizations": [
47
+ { "rule": "style/*", "severity": "off" },
48
+ { "rule": "format/*", "severity": "off" },
49
+ { "rule": "*-indent", "severity": "off" },
50
+ { "rule": "*-spacing", "severity": "off" },
51
+ { "rule": "*-spaces", "severity": "off" },
52
+ { "rule": "*-order", "severity": "off" },
53
+ { "rule": "*-dangle", "severity": "off" },
54
+ { "rule": "*-newline", "severity": "off" },
55
+ { "rule": "*quotes", "severity": "off" },
56
+ { "rule": "*semi", "severity": "off" }
57
+ ],
58
+
45
59
  // Enable eslint for all supported languages
46
60
  "eslint.validate": [
47
61
  "javascript",
@@ -58,7 +72,12 @@ in `.vscode/settings.json`, more info to [@antfu/eslint-config](https://github.c
58
72
  "xml",
59
73
  "gql",
60
74
  "graphql",
61
- "astro"
75
+ "astro",
76
+ "css",
77
+ "less",
78
+ "scss",
79
+ "pcss",
80
+ "postcss"
62
81
  ]
63
82
  }
64
83
  ```
package/dist/index.cjs CHANGED
@@ -17,6 +17,7 @@ var __copyProps = (to, from, except, desc) => {
17
17
  }
18
18
  return to;
19
19
  };
20
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
20
21
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
22
  // If the importer is in node compatibility mode or this is not an ESM
22
23
  // file that has been converted to a CommonJS file using a Babel-
@@ -77,6 +78,7 @@ var vue = {
77
78
  };
78
79
 
79
80
  // src/index.ts
81
+ __reExport(src_exports, require("@antfu/eslint-config"), module.exports);
80
82
  function vida(options = {}, ...userConfigs) {
81
83
  const {
82
84
  pinia: enablePinia = (0, import_local_pkg.isPackageExists)("pinia")
@@ -88,9 +90,10 @@ function vida(options = {}, ...userConfigs) {
88
90
  stylistic: {
89
91
  indent: 2,
90
92
  quotes: "single",
91
- semi: true,
93
+ semi: false,
92
94
  overrides: {
93
- "style/arrow-parens": ["error", "always"]
95
+ "style/arrow-parens": ["error", "always"],
96
+ "style/brace-style": ["error", "1tbs", { allowSingleLine: true }]
94
97
  }
95
98
  },
96
99
  javascript: {
@@ -113,5 +116,6 @@ function vida(options = {}, ...userConfigs) {
113
116
  var src_default = vida;
114
117
  // Annotate the CommonJS export names for ESM import in node:
115
118
  0 && (module.exports = {
116
- vida
119
+ vida,
120
+ ...require("@antfu/eslint-config")
117
121
  });
package/dist/index.d.cts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
2
2
  import * as _antfu_eslint_config from '@antfu/eslint-config';
3
3
  import { antfu, TypedFlatConfigItem } from '@antfu/eslint-config';
4
+ export * from '@antfu/eslint-config';
4
5
 
5
6
  type AntfuOptions = Parameters<typeof antfu>[0];
6
7
  type OptionsConfig = AntfuOptions & {
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as eslint_flat_config_utils from 'eslint-flat-config-utils';
2
2
  import * as _antfu_eslint_config from '@antfu/eslint-config';
3
3
  import { antfu, TypedFlatConfigItem } from '@antfu/eslint-config';
4
+ export * from '@antfu/eslint-config';
4
5
 
5
6
  type AntfuOptions = Parameters<typeof antfu>[0];
6
7
  type OptionsConfig = AntfuOptions & {
package/dist/index.js CHANGED
@@ -42,6 +42,7 @@ var vue = {
42
42
  };
43
43
 
44
44
  // src/index.ts
45
+ export * from "@antfu/eslint-config";
45
46
  function vida(options = {}, ...userConfigs) {
46
47
  const {
47
48
  pinia: enablePinia = isPackageExists("pinia")
@@ -53,9 +54,10 @@ function vida(options = {}, ...userConfigs) {
53
54
  stylistic: {
54
55
  indent: 2,
55
56
  quotes: "single",
56
- semi: true,
57
+ semi: false,
57
58
  overrides: {
58
- "style/arrow-parens": ["error", "always"]
59
+ "style/arrow-parens": ["error", "always"],
60
+ "style/brace-style": ["error", "1tbs", { allowSingleLine: true }]
59
61
  }
60
62
  },
61
63
  javascript: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vida0905/eslint-config",
3
3
  "type": "module",
4
- "version": "0.1.6",
4
+ "version": "0.2.0",
5
5
  "packageManager": "pnpm@9.1.2",
6
6
  "description": "Vida Xie's ESLint Config",
7
7
  "author": "Vida Xie <vida_2020@163.com> (https://github.com/9romise/)",