@kazupon/eslint-config 0.22.0 → 0.23.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
@@ -121,7 +121,7 @@ Add the following settings to your `.vscode/settings.json`:
121
121
  The following built-in preset configurations are supported:
122
122
 
123
123
  | Configuration | Powered by eslint plugin or package | Need to install eslint plugin or package? |
124
- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- | --- |
124
+ | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------- |
125
125
  | `javascript` | [`@eslint/js`](https://www.npmjs.com/package/@eslint/js) | no (built-in) |
126
126
  | `comments` | [`@eslint-community/eslint-plugin-eslint-comments`](https://www.npmjs.com/package/@eslint-community/eslint-plugin-eslint-comments) | no (built-in) |
127
127
  | `typescript` | [`typescript-eslint`](https://www.npmjs.com/package/typescript-eslint) | yes |
@@ -139,7 +139,7 @@ The following built-in preset configurations are supported:
139
139
  | `yml` | [`eslint-plugin-yml`](https://www.npmjs.com/package/eslint-plugin-yml) | yes |
140
140
  | `toml` | [`eslint-plugin-toml`](https://www.npmjs.com/package/eslint-plugin-toml) | yes |
141
141
  | `markdown` | [`@eslint/markdown`](https://www.npmjs.com/package/@eslint/markdown) | yes |
142
- | `css` | [`@eslint/css`](https://www.npmjs.com/package/@eslint/css) | yes | k |
142
+ | `css` | [`@eslint/css`](https://www.npmjs.com/package/@eslint/css) | yes |
143
143
 
144
144
  You can use `import` syntax:
145
145
 
package/dist/index.d.ts CHANGED
@@ -102,6 +102,11 @@ interface CssRules {
102
102
  * @see https://github.com/eslint/css/blob/main/docs/rules/no-invalid-properties.md
103
103
  */
104
104
  'css/no-invalid-properties'?: Linter.RuleEntry<[]>;
105
+ /**
106
+ * Enforce the use of logical properties
107
+ * @see https://github.com/eslint/css/blob/main/docs/rules/prefer-logical-properties.md
108
+ */
109
+ 'css/prefer-logical-properties'?: Linter.RuleEntry<CssPreferLogicalProperties>;
105
110
  /**
106
111
  * Enforce the use of baseline features
107
112
  */
@@ -112,9 +117,15 @@ interface CssRules {
112
117
  */
113
118
  'css/use-layers'?: Linter.RuleEntry<CssUseLayers>;
114
119
  }
120
+ type CssPreferLogicalProperties = [] | [
121
+ {
122
+ allowProperties?: string[];
123
+ allowUnits?: string[];
124
+ }
125
+ ];
115
126
  type CssRequireBaseline = [] | [
116
127
  {
117
- available?: ("widely" | "newly");
128
+ available?: (("widely" | "newly") | number);
118
129
  }
119
130
  ];
120
131
  type CssUseLayers = [] | [
package/dist/index.js CHANGED
@@ -464,11 +464,12 @@ async function toml(options = {}) {
464
464
  async function typescript(options = {}) {
465
465
  const { rules: overrideRules = {}, extraFileExtensions = [], parserOptions = { project: true } } = options;
466
466
  const ts = await loadPlugin("typescript-eslint");
467
- const files = options.files ?? [
467
+ const baseFiles = [
468
468
  GLOB_TS,
469
469
  GLOB_TSX,
470
470
  ...extraFileExtensions.map((ext) => `**/*${ext}`)
471
471
  ];
472
+ const files = [...options.files ?? [], ...baseFiles];
472
473
  return [
473
474
  ...ts.configs.recommendedTypeChecked,
474
475
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kazupon/eslint-config",
3
3
  "description": "ESLint config for @kazupon",
4
- "version": "0.22.0",
4
+ "version": "0.23.0",
5
5
  "author": {
6
6
  "email": "kawakazu80@gmail.com",
7
7
  "name": "kazuya kawaguchi"
@@ -51,7 +51,7 @@
51
51
  "dependencies": {
52
52
  "@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
53
53
  "@eslint/js": "^9.21.0",
54
- "@kazupon/jts-utils": "^0.5.0",
54
+ "@kazupon/jts-utils": "^0.6.0",
55
55
  "eslint-flat-config-utils": "^2.0.1",
56
56
  "globals": "^16.0.0"
57
57
  },
@@ -157,7 +157,7 @@
157
157
  }
158
158
  },
159
159
  "devDependencies": {
160
- "@eslint/css": "^0.4.0",
160
+ "@eslint/css": "^0.5.0",
161
161
  "@eslint/markdown": "^6.2.2",
162
162
  "@kazupon/prettier-config": "^0.1.1",
163
163
  "@types/eslint": "^9.6.1",