@storm-software/eslint 0.123.2 → 0.124.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/dist/preset.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Linter } from 'eslint';
|
|
2
2
|
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
3
|
-
import { O as OptionsConfig, R as RuleOptions, T as TypedFlatConfigItem, A as Awaitable, C as ConfigNames } from './types-
|
|
3
|
+
import { O as OptionsConfig, R as RuleOptions, T as TypedFlatConfigItem, A as Awaitable, C as ConfigNames } from './types-CHy285SF.js';
|
|
4
4
|
import '@nx/eslint-plugin/src/utils/runtime-lint-utils';
|
|
5
5
|
import '@stylistic/eslint-plugin';
|
|
6
6
|
import '@typescript-eslint/parser';
|
package/dist/preset.js
CHANGED
|
@@ -166,8 +166,8 @@ __name(disables, "disables");
|
|
|
166
166
|
var StylisticConfigDefaults = {
|
|
167
167
|
indent: 2,
|
|
168
168
|
jsx: true,
|
|
169
|
-
quotes: "
|
|
170
|
-
semi:
|
|
169
|
+
quotes: "double",
|
|
170
|
+
semi: true
|
|
171
171
|
};
|
|
172
172
|
async function stylistic(options = {}) {
|
|
173
173
|
const { indent, jsx: jsx2, overrides = {}, quotes, semi } = {
|
|
@@ -190,6 +190,7 @@ async function stylistic(options = {}) {
|
|
|
190
190
|
},
|
|
191
191
|
rules: {
|
|
192
192
|
...config.rules,
|
|
193
|
+
"lines-around-comment": "off",
|
|
193
194
|
...overrides
|
|
194
195
|
}
|
|
195
196
|
}
|
|
@@ -787,7 +788,7 @@ async function javascript(options = {}) {
|
|
|
787
788
|
},
|
|
788
789
|
{
|
|
789
790
|
// Banner
|
|
790
|
-
...banner_plugin_default.configs["recommended"],
|
|
791
|
+
...banner_plugin_default.configs?.["recommended"],
|
|
791
792
|
name: "storm/javascript/banner",
|
|
792
793
|
plugins: {
|
|
793
794
|
banner: banner_plugin_default
|
|
@@ -3436,7 +3437,7 @@ async function cspell(options = {}) {
|
|
|
3436
3437
|
const { configFile = "./.vscode/cspell.json" } = options;
|
|
3437
3438
|
return [
|
|
3438
3439
|
{
|
|
3439
|
-
name: "storm/cspell",
|
|
3440
|
+
name: "storm/cspell/rules",
|
|
3440
3441
|
...cspellConfig,
|
|
3441
3442
|
rules: {
|
|
3442
3443
|
...cspellConfig.rules,
|
|
@@ -14457,8 +14457,7 @@ interface OptionsTypeScriptWithTypes {
|
|
|
14457
14457
|
*/
|
|
14458
14458
|
overridesTypeAware?: TypedFlatConfigItem["rules"];
|
|
14459
14459
|
}
|
|
14460
|
-
|
|
14461
|
-
}
|
|
14460
|
+
type StylisticConfig = Pick<StylisticCustomizeOptions, "indent" | "quotes" | "jsx" | "semi">;
|
|
14462
14461
|
interface OptionsOverrides {
|
|
14463
14462
|
overrides?: TypedFlatConfigItem["rules"];
|
|
14464
14463
|
}
|
package/dist/utils/combine.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Awaitable } from 'eslint-flat-config-utils';
|
|
2
|
-
import { T as TypedFlatConfigItem } from '../types-
|
|
2
|
+
import { T as TypedFlatConfigItem } from '../types-CHy285SF.js';
|
|
3
3
|
import '@nx/eslint-plugin/src/utils/runtime-lint-utils';
|
|
4
4
|
import '@stylistic/eslint-plugin';
|
|
5
5
|
import '@typescript-eslint/parser';
|
package/package.json
CHANGED