@eslinted/core 28.0.2 → 29.0.0-rc.1
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/factory/index.d.ts +1 -1
 - package/dist/factory/index.d.ts.map +1 -1
 - package/dist/factory/index.js +23 -46
 - package/dist/factory/index.js.map +1 -1
 - package/dist/index.d.ts +1 -1
 - package/dist/index.d.ts.map +1 -1
 - package/dist/index.input.spec.d.ts +13 -13
 - package/dist/index.input.spec.js +13 -13
 - package/dist/index.input.spec.js.map +1 -1
 - package/dist/index.spec.js +8 -9
 - package/dist/index.spec.js.map +1 -1
 - package/dist/interface/configuration/defaults/index.d.ts +6 -6
 - package/dist/interface/configuration/defaults/index.d.ts.map +1 -1
 - package/dist/interface/configuration/extensions/scopes.d.ts +3 -3
 - package/dist/interface/configuration/extensions/scopes.d.ts.map +1 -1
 - package/package.json +4 -1
 - package/src/factory/index.ts +93 -111
 - package/src/index.input.spec.ts +13 -13
 - package/src/index.spec.ts +16 -17
 - package/src/interface/configuration/defaults/index.ts +10 -5
 - package/src/interface/configuration/extensions/scopes.ts +5 -2
 - package/dist/interface/rules.d.ts +0 -6
 - package/dist/interface/rules.d.ts.map +0 -1
 - package/dist/interface/rules.js +0 -2
 - package/dist/interface/rules.js.map +0 -1
 - package/src/interface/rules.ts +0 -15
 
    
        package/dist/factory/index.d.ts
    CHANGED
    
    | 
         @@ -1,3 +1,3 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            import type Core from "../index.js";
         
     | 
| 
       2 
     | 
    
         
            -
            export default function factory<Scope extends string, Optional extends Scope, RequiredPlugin extends string, RequiredParser extends Scope, Parser extends RequiredParser | Optional>(scopes: Parameters<typeof Core<Scope, Optional, RequiredPlugin, RequiredParser, Parser>>[0], optional: Parameters<typeof Core<Scope, Optional, RequiredPlugin, RequiredParser, Parser>>[1], tree: Parameters<typeof Core<Scope, Optional, RequiredPlugin, RequiredParser, Parser>>[2], { plugins, parsers, }: Parameters<typeof Core<Scope, Optional, RequiredPlugin, RequiredParser, Parser>>[3], settings: Parameters<typeof Core<Scope, Optional, RequiredPlugin, RequiredParser, Parser>>[4], { defaults, extensions, }: Parameters<typeof Core<Scope, Optional, RequiredPlugin, RequiredParser, Parser>>[5]):  
     | 
| 
      
 2 
     | 
    
         
            +
            export default function factory<Scope extends string, Optional extends Scope, RequiredPlugin extends string, RequiredParser extends Scope, Parser extends RequiredParser | Optional>(scopes: Parameters<typeof Core<Scope, Optional, RequiredPlugin, RequiredParser, Parser>>[0], optional: Parameters<typeof Core<Scope, Optional, RequiredPlugin, RequiredParser, Parser>>[1], tree: Parameters<typeof Core<Scope, Optional, RequiredPlugin, RequiredParser, Parser>>[2], { plugins, parsers, }: Parameters<typeof Core<Scope, Optional, RequiredPlugin, RequiredParser, Parser>>[3], settings: Parameters<typeof Core<Scope, Optional, RequiredPlugin, RequiredParser, Parser>>[4], { defaults, extensions, }: Parameters<typeof Core<Scope, Optional, RequiredPlugin, RequiredParser, Parser>>[5]): import("@eslint/config-helpers").Config[];
         
     | 
| 
       3 
3 
     | 
    
         
             
            //# sourceMappingURL=index.d.ts.map
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":" 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,IAAI,MAAM,IAAI,CAAC;AAuB3B,MAAM,CAAC,OAAO,UAAU,OAAO,CAC7B,KAAK,SAAS,MAAM,EACpB,QAAQ,SAAS,KAAK,EACtB,cAAc,SAAS,MAAM,EAC7B,cAAc,SAAS,KAAK,EAC5B,MAAM,SAAS,cAAc,GAAG,QAAQ,EAExC,MAAM,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAC3F,QAAQ,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAC7F,IAAI,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EACzF,EACE,OAAO,EACP,OAAO,GACR,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EACtF,QAAQ,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAC7F,EACE,QAAQ,EACR,UAAe,GAChB,EAAE,UAAU,CAAC,OAAO,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,6CAgOvF"}
         
     | 
    
        package/dist/factory/index.js
    CHANGED
    
    | 
         @@ -1,3 +1,4 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            import { defineConfig, globalIgnores, } from "@eslint/config-helpers";
         
     | 
| 
       1 
2 
     | 
    
         
             
            export default function factory(scopes, optional, tree, { plugins, parsers, }, settings, { defaults, extensions = {}, }) {
         
     | 
| 
       2 
3 
     | 
    
         
             
                for (const scope of optional)
         
     | 
| 
       3 
4 
     | 
    
         
             
                    if (extensions[scope] !== undefined) {
         
     | 
| 
         @@ -41,7 +42,7 @@ export default function factory(scopes, optional, tree, { plugins, parsers, }, s 
     | 
|
| 
       41 
42 
     | 
    
         
             
                                });
         
     | 
| 
       42 
43 
     | 
    
         
             
                            else
         
     | 
| 
       43 
44 
     | 
    
         
             
                                defaults.rules[scope][defaults.rules[scope].length] = {
         
     | 
| 
       44 
     | 
    
         
            -
                                     
     | 
| 
      
 45 
     | 
    
         
            +
                                    name: scope.concat("/override"),
         
     | 
| 
       45 
46 
     | 
    
         
             
                                    rules,
         
     | 
| 
       46 
47 
     | 
    
         
             
                                };
         
     | 
| 
       47 
48 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -83,7 +84,10 @@ export default function factory(scopes, optional, tree, { plugins, parsers, }, s 
     | 
|
| 
       83 
84 
     | 
    
         
             
                            for (let i = 0; i < ignores.length; i++)
         
     | 
| 
       84 
85 
     | 
    
         
             
                                defaultGlobals[L + i] = ignores[i];
         
     | 
| 
       85 
86 
     | 
    
         
             
                        }
         
     | 
| 
       86 
     | 
    
         
            -
                 
     | 
| 
      
 87 
     | 
    
         
            +
                return defineConfig(globalIgnores(defaults.ignores["*"]), {
         
     | 
| 
      
 88 
     | 
    
         
            +
                    name: "plugins",
         
     | 
| 
      
 89 
     | 
    
         
            +
                    plugins,
         
     | 
| 
      
 90 
     | 
    
         
            +
                }, scopes.map(scope => {
         
     | 
| 
       87 
91 
     | 
    
         
             
                    const { files: { [scope]: files }, ignores: { [scope]: ignores = [] }, rules: { [scope]: rules }, } = defaults;
         
     | 
| 
       88 
92 
     | 
    
         
             
                    if (files === undefined
         
     | 
| 
       89 
93 
     | 
    
         
             
                        || rules === undefined
         
     | 
| 
         @@ -93,61 +97,34 @@ export default function factory(scopes, optional, tree, { plugins, parsers, }, s 
     | 
|
| 
       93 
97 
     | 
    
         
             
                            && !(scope in parsers))
         
     | 
| 
       94 
98 
     | 
    
         
             
                        return [];
         
     | 
| 
       95 
99 
     | 
    
         
             
                    else {
         
     | 
| 
       96 
     | 
    
         
            -
                        const rulesets = rules.map(({ id, rules, }) => ({
         
     | 
| 
       97 
     | 
    
         
            -
                            name: "linted/".concat(scope, "/", id),
         
     | 
| 
       98 
     | 
    
         
            -
                            files,
         
     | 
| 
       99 
     | 
    
         
            -
                            ignores,
         
     | 
| 
       100 
     | 
    
         
            -
                            rules,
         
     | 
| 
       101 
     | 
    
         
            -
                        }));
         
     | 
| 
       102 
100 
     | 
    
         
             
                        if (settings[scope] !== undefined) {
         
     | 
| 
       103 
     | 
    
         
            -
                            const { languageOptions, parserOptions, processor, language, } = settings[scope] 
     | 
| 
       104 
     | 
    
         
            -
                                name: "linted/".concat(scope),
         
     | 
| 
       105 
     | 
    
         
            -
                                files,
         
     | 
| 
       106 
     | 
    
         
            -
                                ignores,
         
     | 
| 
       107 
     | 
    
         
            -
                            };
         
     | 
| 
      
 101 
     | 
    
         
            +
                            const { languageOptions, parserOptions, processor, language, } = settings[scope];
         
     | 
| 
       108 
102 
     | 
    
         
             
                            if (languageOptions?.parser !== undefined)
         
     | 
| 
       109 
103 
     | 
    
         
             
                                languageOptions.parser = parsers[languageOptions.parser];
         
     | 
| 
       110 
104 
     | 
    
         
             
                            if (parserOptions?.parser !== undefined)
         
     | 
| 
       111 
105 
     | 
    
         
             
                                parserOptions.parser = parsers[parserOptions.parser];
         
     | 
| 
       112 
     | 
    
         
            -
                             
     | 
| 
       113 
     | 
    
         
            -
                                 
     | 
| 
       114 
     | 
    
         
            -
                                     
     | 
| 
       115 
     | 
    
         
            -
                                     
     | 
| 
      
 106 
     | 
    
         
            +
                            const definition = languageOptions === undefined
         
     | 
| 
      
 107 
     | 
    
         
            +
                                ? parserOptions === undefined
         
     | 
| 
      
 108 
     | 
    
         
            +
                                    ? {}
         
     | 
| 
      
 109 
     | 
    
         
            +
                                    : {
         
     | 
| 
       116 
110 
     | 
    
         
             
                                        languageOptions: {
         
     | 
| 
       117 
111 
     | 
    
         
             
                                            parserOptions,
         
     | 
| 
       118 
112 
     | 
    
         
             
                                        },
         
     | 
| 
       119 
     | 
    
         
            -
                                    } 
     | 
| 
       120 
     | 
    
         
            -
             
     | 
| 
       121 
     | 
    
         
            -
                            else {
         
     | 
| 
       122 
     | 
    
         
            -
                                if (parserOptions !== undefined
         
     | 
| 
       123 
     | 
    
         
            -
                                    && Object.keys(parserOptions).length !== 0)
         
     | 
| 
       124 
     | 
    
         
            -
                                    Object.assign(languageOptions, { parserOptions });
         
     | 
| 
       125 
     | 
    
         
            -
                                if (Object.keys(languageOptions).length !== 0)
         
     | 
| 
       126 
     | 
    
         
            -
                                    Object.assign(manifest, { languageOptions });
         
     | 
| 
       127 
     | 
    
         
            -
                            }
         
     | 
| 
      
 113 
     | 
    
         
            +
                                    }
         
     | 
| 
      
 114 
     | 
    
         
            +
                                : { languageOptions };
         
     | 
| 
       128 
115 
     | 
    
         
             
                            if (processor !== undefined)
         
     | 
| 
       129 
     | 
    
         
            -
                                Object.assign( 
     | 
| 
      
 116 
     | 
    
         
            +
                                Object.assign(definition, { processor });
         
     | 
| 
       130 
117 
     | 
    
         
             
                            if (language !== undefined)
         
     | 
| 
       131 
     | 
    
         
            -
                                Object.assign( 
     | 
| 
       132 
     | 
    
         
            -
                             
     | 
| 
      
 118 
     | 
    
         
            +
                                Object.assign(definition, { language });
         
     | 
| 
      
 119 
     | 
    
         
            +
                            rules[rules.length] = definition;
         
     | 
| 
       133 
120 
     | 
    
         
             
                        }
         
     | 
| 
       134 
     | 
    
         
            -
                        return  
     | 
| 
      
 121 
     | 
    
         
            +
                        return defineConfig({
         
     | 
| 
      
 122 
     | 
    
         
            +
                            name: "scope/".concat(scope),
         
     | 
| 
      
 123 
     | 
    
         
            +
                            files,
         
     | 
| 
      
 124 
     | 
    
         
            +
                            ignores,
         
     | 
| 
      
 125 
     | 
    
         
            +
                            "extends": [rules],
         
     | 
| 
      
 126 
     | 
    
         
            +
                        });
         
     | 
| 
       135 
127 
     | 
    
         
             
                    }
         
     | 
| 
       136 
     | 
    
         
            -
                });
         
     | 
| 
       137 
     | 
    
         
            -
                if (configs.length === 0)
         
     | 
| 
       138 
     | 
    
         
            -
                    return [];
         
     | 
| 
       139 
     | 
    
         
            -
                else {
         
     | 
| 
       140 
     | 
    
         
            -
                    const { length } = configs;
         
     | 
| 
       141 
     | 
    
         
            -
                    configs.length += 2;
         
     | 
| 
       142 
     | 
    
         
            -
                    configs[length] = {
         
     | 
| 
       143 
     | 
    
         
            -
                        name: "linted/*/ignores",
         
     | 
| 
       144 
     | 
    
         
            -
                        ignores: defaults.ignores["*"],
         
     | 
| 
       145 
     | 
    
         
            -
                    };
         
     | 
| 
       146 
     | 
    
         
            -
                    configs[length + 1] = {
         
     | 
| 
       147 
     | 
    
         
            -
                        name: "linted/*/plugins",
         
     | 
| 
       148 
     | 
    
         
            -
                        plugins,
         
     | 
| 
       149 
     | 
    
         
            -
                    };
         
     | 
| 
       150 
     | 
    
         
            -
                    return configs;
         
     | 
| 
       151 
     | 
    
         
            -
                }
         
     | 
| 
      
 128 
     | 
    
         
            +
                }));
         
     | 
| 
       152 
129 
     | 
    
         
             
            }
         
     | 
| 
       153 
130 
     | 
    
         
             
            //# sourceMappingURL=index.js.map
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":" 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/factory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,aAAa,GAEd,MAAM,wBAAwB,CAAC;AAwBhC,MAAM,CAAC,OAAO,UAAU,OAAO,CAO7B,MAA2F,EAC3F,QAA6F,EAC7F,IAAyF,EACzF,EACE,OAAO,EACP,OAAO,GAC6E,EACtF,QAA6F,EAC7F,EACE,QAAQ,EACR,UAAU,GAAG,EAAE,GACqE;IAEtF,KAAK,MAAM,KAAK,IAAI,QAAQ;QAC1B,IAAI,UAAU,CAAC,KAAK,CAAC,KAAK,SAAS,EAAE,CAAC;YACpC,MAAM,CAAC,MAAM,CACX,OAAO,EACP;gBACE,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,KAA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CACF,CAAC;QACJ,CAAC;IACH,CAAC,CACF,CACF,CAAC;AACJ,CAAC"}
         
     | 
    
        package/dist/index.d.ts
    CHANGED
    
    | 
         @@ -5,5 +5,5 @@ export default function <Scope extends string, Optional extends Scope, RequiredP 
     | 
|
| 
       5 
5 
     | 
    
         
             
            ]>, imports: {
         
     | 
| 
       6 
6 
     | 
    
         
             
                plugins: Record<RequiredPlugin, unknown> & Partial<Record<Optional, unknown>>;
         
     | 
| 
       7 
7 
     | 
    
         
             
                parsers: Record<RequiredParser, unknown> & Partial<Record<Optional, unknown>>;
         
     | 
| 
       8 
     | 
    
         
            -
            }, settings: Settings<Scope, Parser>, configuration: Configuration<Scope, Optional>):  
     | 
| 
      
 8 
     | 
    
         
            +
            }, settings: Settings<Scope, Parser>, configuration: Configuration<Scope, Optional>): import("@eslint/config-helpers").Config[];
         
     | 
| 
       9 
9 
     | 
    
         
             
            //# sourceMappingURL=index.d.ts.map
         
     | 
    
        package/dist/index.d.ts.map
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EACd,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,WACZ,KAAK,SAAS,MAAM,EACpB,QAAQ,SAAS,KAAK,EACtB,cAAc,SAAS,MAAM,EAC7B,cAAc,SAAS,KAAK,EAC5B,MAAM,SAAS,cAAc,GAAG,QAAQ,EAExC,MAAM,EAAE,SAAS,KAAK,EAAE,EACxB,QAAQ,EAAE,SAAS,QAAQ,EAAE,EAC7B,IAAI,EAAE,KAAK,CACT,SAAS,CAAC,KAAK,EAAE,SAAS,KAAK,EAAE,CAAC,CACnC,EACD,OAAO,EAAE;IACP,OAAO,EACH,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,GAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;IACvC,OAAO,EACH,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,GAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;CACxC,EACD,QAAQ,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,EACjC,aAAa,EAAE,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC, 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,aAAa,EACd,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,WACZ,KAAK,SAAS,MAAM,EACpB,QAAQ,SAAS,KAAK,EACtB,cAAc,SAAS,MAAM,EAC7B,cAAc,SAAS,KAAK,EAC5B,MAAM,SAAS,cAAc,GAAG,QAAQ,EAExC,MAAM,EAAE,SAAS,KAAK,EAAE,EACxB,QAAQ,EAAE,SAAS,QAAQ,EAAE,EAC7B,IAAI,EAAE,KAAK,CACT,SAAS,CAAC,KAAK,EAAE,SAAS,KAAK,EAAE,CAAC,CACnC,EACD,OAAO,EAAE;IACP,OAAO,EACH,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,GAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;IACvC,OAAO,EACH,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,GAC/B,OAAO,CAAC,MAAM,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;CACxC,EACD,QAAQ,EAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,EACjC,aAAa,EAAE,aAAa,CAAC,KAAK,EAAE,QAAQ,CAAC,6CAU9C"}
         
     | 
| 
         @@ -74,7 +74,7 @@ export declare const scopes: readonly ["js", "ts", "mocha", "svelte", "html", "j 
     | 
|
| 
       74 
74 
     | 
    
         
             
                    };
         
     | 
| 
       75 
75 
     | 
    
         
             
                    rules: {
         
     | 
| 
       76 
76 
     | 
    
         
             
                        js: ({
         
     | 
| 
       77 
     | 
    
         
            -
                             
     | 
| 
      
 77 
     | 
    
         
            +
                            name: string;
         
     | 
| 
       78 
78 
     | 
    
         
             
                            rules: {
         
     | 
| 
       79 
79 
     | 
    
         
             
                                vanilla: State;
         
     | 
| 
       80 
80 
     | 
    
         
             
                                vanilla0: State;
         
     | 
| 
         @@ -83,7 +83,7 @@ export declare const scopes: readonly ["js", "ts", "mocha", "svelte", "html", "j 
     | 
|
| 
       83 
83 
     | 
    
         
             
                                "@stylistic/style-rule"?: never;
         
     | 
| 
       84 
84 
     | 
    
         
             
                            };
         
     | 
| 
       85 
85 
     | 
    
         
             
                        } | {
         
     | 
| 
       86 
     | 
    
         
            -
                             
     | 
| 
      
 86 
     | 
    
         
            +
                            name: string;
         
     | 
| 
       87 
87 
     | 
    
         
             
                            rules: {
         
     | 
| 
       88 
88 
     | 
    
         
             
                                "@stylistic/style-rule": State;
         
     | 
| 
       89 
89 
     | 
    
         
             
                                vanilla?: never;
         
     | 
| 
         @@ -93,7 +93,7 @@ export declare const scopes: readonly ["js", "ts", "mocha", "svelte", "html", "j 
     | 
|
| 
       93 
93 
     | 
    
         
             
                            };
         
     | 
| 
       94 
94 
     | 
    
         
             
                        })[];
         
     | 
| 
       95 
95 
     | 
    
         
             
                        ts: ({
         
     | 
| 
       96 
     | 
    
         
            -
                             
     | 
| 
      
 96 
     | 
    
         
            +
                            name: string;
         
     | 
| 
       97 
97 
     | 
    
         
             
                            rules: {
         
     | 
| 
       98 
98 
     | 
    
         
             
                                vanilla0: State;
         
     | 
| 
       99 
99 
     | 
    
         
             
                                "@typescript-eslint/enums"?: never;
         
     | 
| 
         @@ -101,7 +101,7 @@ export declare const scopes: readonly ["js", "ts", "mocha", "svelte", "html", "j 
     | 
|
| 
       101 
101 
     | 
    
         
             
                                "@typescript-eslint/global"?: never;
         
     | 
| 
       102 
102 
     | 
    
         
             
                            };
         
     | 
| 
       103 
103 
     | 
    
         
             
                        } | {
         
     | 
| 
       104 
     | 
    
         
            -
                             
     | 
| 
      
 104 
     | 
    
         
            +
                            name: string;
         
     | 
| 
       105 
105 
     | 
    
         
             
                            rules: {
         
     | 
| 
       106 
106 
     | 
    
         
             
                                "@typescript-eslint/enums": State;
         
     | 
| 
       107 
107 
     | 
    
         
             
                                "@typescript-eslint/destructure-expression": State;
         
     | 
| 
         @@ -110,21 +110,21 @@ export declare const scopes: readonly ["js", "ts", "mocha", "svelte", "html", "j 
     | 
|
| 
       110 
110 
     | 
    
         
             
                            };
         
     | 
| 
       111 
111 
     | 
    
         
             
                        })[];
         
     | 
| 
       112 
112 
     | 
    
         
             
                        mocha: ({
         
     | 
| 
       113 
     | 
    
         
            -
                             
     | 
| 
      
 113 
     | 
    
         
            +
                            name: string;
         
     | 
| 
       114 
114 
     | 
    
         
             
                            rules: {
         
     | 
| 
       115 
115 
     | 
    
         
             
                                vanilla2: State;
         
     | 
| 
       116 
116 
     | 
    
         
             
                                "@typescript-eslint/global"?: never;
         
     | 
| 
       117 
117 
     | 
    
         
             
                                "mocha/test-expression"?: never;
         
     | 
| 
       118 
118 
     | 
    
         
             
                            };
         
     | 
| 
       119 
119 
     | 
    
         
             
                        } | {
         
     | 
| 
       120 
     | 
    
         
            -
                             
     | 
| 
      
 120 
     | 
    
         
            +
                            name: string;
         
     | 
| 
       121 
121 
     | 
    
         
             
                            rules: {
         
     | 
| 
       122 
122 
     | 
    
         
             
                                "@typescript-eslint/global": State;
         
     | 
| 
       123 
123 
     | 
    
         
             
                                vanilla2?: never;
         
     | 
| 
       124 
124 
     | 
    
         
             
                                "mocha/test-expression"?: never;
         
     | 
| 
       125 
125 
     | 
    
         
             
                            };
         
     | 
| 
       126 
126 
     | 
    
         
             
                        } | {
         
     | 
| 
       127 
     | 
    
         
            -
                             
     | 
| 
      
 127 
     | 
    
         
            +
                            name: string;
         
     | 
| 
       128 
128 
     | 
    
         
             
                            rules: {
         
     | 
| 
       129 
129 
     | 
    
         
             
                                "mocha/test-expression": State;
         
     | 
| 
       130 
130 
     | 
    
         
             
                                vanilla2?: never;
         
     | 
| 
         @@ -132,26 +132,26 @@ export declare const scopes: readonly ["js", "ts", "mocha", "svelte", "html", "j 
     | 
|
| 
       132 
132 
     | 
    
         
             
                            };
         
     | 
| 
       133 
133 
     | 
    
         
             
                        })[];
         
     | 
| 
       134 
134 
     | 
    
         
             
                        svelte: ({
         
     | 
| 
       135 
     | 
    
         
            -
                             
     | 
| 
      
 135 
     | 
    
         
            +
                            name: string;
         
     | 
| 
       136 
136 
     | 
    
         
             
                            rules: {
         
     | 
| 
       137 
137 
     | 
    
         
             
                                vanilla1: State;
         
     | 
| 
       138 
138 
     | 
    
         
             
                                "svelte/tags"?: never;
         
     | 
| 
       139 
139 
     | 
    
         
             
                            };
         
     | 
| 
       140 
140 
     | 
    
         
             
                        } | {
         
     | 
| 
       141 
     | 
    
         
            -
                             
     | 
| 
      
 141 
     | 
    
         
            +
                            name: string;
         
     | 
| 
       142 
142 
     | 
    
         
             
                            rules: {
         
     | 
| 
       143 
143 
     | 
    
         
             
                                "svelte/tags": State;
         
     | 
| 
       144 
144 
     | 
    
         
             
                                vanilla1?: never;
         
     | 
| 
       145 
145 
     | 
    
         
             
                            };
         
     | 
| 
       146 
146 
     | 
    
         
             
                        })[];
         
     | 
| 
       147 
147 
     | 
    
         
             
                        html: {
         
     | 
| 
       148 
     | 
    
         
            -
                             
     | 
| 
      
 148 
     | 
    
         
            +
                            name: string;
         
     | 
| 
       149 
149 
     | 
    
         
             
                            rules: {
         
     | 
| 
       150 
150 
     | 
    
         
             
                                "html/attribute": State;
         
     | 
| 
       151 
151 
     | 
    
         
             
                            };
         
     | 
| 
       152 
152 
     | 
    
         
             
                        }[];
         
     | 
| 
       153 
153 
     | 
    
         
             
                        json: {
         
     | 
| 
       154 
     | 
    
         
            -
                             
     | 
| 
      
 154 
     | 
    
         
            +
                            name: string;
         
     | 
| 
       155 
155 
     | 
    
         
             
                            rules: {
         
     | 
| 
       156 
156 
     | 
    
         
             
                                "jsonc/property-check": State;
         
     | 
| 
       157 
157 
     | 
    
         
             
                                "jsonc/comment": readonly [State.ERROR, "never"];
         
     | 
| 
         @@ -159,13 +159,13 @@ export declare const scopes: readonly ["js", "ts", "mocha", "svelte", "html", "j 
     | 
|
| 
       159 
159 
     | 
    
         
             
                            };
         
     | 
| 
       160 
160 
     | 
    
         
             
                        }[];
         
     | 
| 
       161 
161 
     | 
    
         
             
                        jsonc: {
         
     | 
| 
       162 
     | 
    
         
            -
                             
     | 
| 
      
 162 
     | 
    
         
            +
                            name: string;
         
     | 
| 
       163 
163 
     | 
    
         
             
                            rules: {
         
     | 
| 
       164 
164 
     | 
    
         
             
                                "jsonc/comment": readonly [State.ERROR, "allow"];
         
     | 
| 
       165 
165 
     | 
    
         
             
                            };
         
     | 
| 
       166 
166 
     | 
    
         
             
                        }[];
         
     | 
| 
       167 
167 
     | 
    
         
             
                        jsoncc: {
         
     | 
| 
       168 
     | 
    
         
            -
                             
     | 
| 
      
 168 
     | 
    
         
            +
                            name: string;
         
     | 
| 
       169 
169 
     | 
    
         
             
                            rules: {
         
     | 
| 
       170 
170 
     | 
    
         
             
                                "jsonc/trailing-comma": readonly [State.ERROR, "allow"];
         
     | 
| 
       171 
171 
     | 
    
         
             
                            };
         
     | 
    
        package/dist/index.input.spec.js
    CHANGED
    
    | 
         @@ -101,7 +101,7 @@ export const scopes = [ 
     | 
|
| 
       101 
101 
     | 
    
         
             
                    rules: {
         
     | 
| 
       102 
102 
     | 
    
         
             
                        js: [
         
     | 
| 
       103 
103 
     | 
    
         
             
                            {
         
     | 
| 
       104 
     | 
    
         
            -
                                 
     | 
| 
      
 104 
     | 
    
         
            +
                                name: "enable",
         
     | 
| 
       105 
105 
     | 
    
         
             
                                rules: {
         
     | 
| 
       106 
106 
     | 
    
         
             
                                    vanilla: 2,
         
     | 
| 
       107 
107 
     | 
    
         
             
                                    vanilla0: 2,
         
     | 
| 
         @@ -110,7 +110,7 @@ export const scopes = [ 
     | 
|
| 
       110 
110 
     | 
    
         
             
                                },
         
     | 
| 
       111 
111 
     | 
    
         
             
                            },
         
     | 
| 
       112 
112 
     | 
    
         
             
                            {
         
     | 
| 
       113 
     | 
    
         
            -
                                 
     | 
| 
      
 113 
     | 
    
         
            +
                                name: "enable/stylistic",
         
     | 
| 
       114 
114 
     | 
    
         
             
                                rules: {
         
     | 
| 
       115 
115 
     | 
    
         
             
                                    "@stylistic/style-rule": 2,
         
     | 
| 
       116 
116 
     | 
    
         
             
                                },
         
     | 
| 
         @@ -118,13 +118,13 @@ export const scopes = [ 
     | 
|
| 
       118 
118 
     | 
    
         
             
                        ],
         
     | 
| 
       119 
119 
     | 
    
         
             
                        ts: [
         
     | 
| 
       120 
120 
     | 
    
         
             
                            {
         
     | 
| 
       121 
     | 
    
         
            -
                                 
     | 
| 
      
 121 
     | 
    
         
            +
                                name: "disable",
         
     | 
| 
       122 
122 
     | 
    
         
             
                                rules: {
         
     | 
| 
       123 
123 
     | 
    
         
             
                                    vanilla0: 0,
         
     | 
| 
       124 
124 
     | 
    
         
             
                                },
         
     | 
| 
       125 
125 
     | 
    
         
             
                            },
         
     | 
| 
       126 
126 
     | 
    
         
             
                            {
         
     | 
| 
       127 
     | 
    
         
            -
                                 
     | 
| 
      
 127 
     | 
    
         
            +
                                name: "enable/extension",
         
     | 
| 
       128 
128 
     | 
    
         
             
                                rules: {
         
     | 
| 
       129 
129 
     | 
    
         
             
                                    "@typescript-eslint/enums": 2,
         
     | 
| 
       130 
130 
     | 
    
         
             
                                    "@typescript-eslint/destructure-expression": 2,
         
     | 
| 
         @@ -134,19 +134,19 @@ export const scopes = [ 
     | 
|
| 
       134 
134 
     | 
    
         
             
                        ],
         
     | 
| 
       135 
135 
     | 
    
         
             
                        mocha: [
         
     | 
| 
       136 
136 
     | 
    
         
             
                            {
         
     | 
| 
       137 
     | 
    
         
            -
                                 
     | 
| 
      
 137 
     | 
    
         
            +
                                name: "disable",
         
     | 
| 
       138 
138 
     | 
    
         
             
                                rules: {
         
     | 
| 
       139 
139 
     | 
    
         
             
                                    vanilla2: 0,
         
     | 
| 
       140 
140 
     | 
    
         
             
                                },
         
     | 
| 
       141 
141 
     | 
    
         
             
                            },
         
     | 
| 
       142 
142 
     | 
    
         
             
                            {
         
     | 
| 
       143 
     | 
    
         
            -
                                 
     | 
| 
      
 143 
     | 
    
         
            +
                                name: "disable/ts",
         
     | 
| 
       144 
144 
     | 
    
         
             
                                rules: {
         
     | 
| 
       145 
145 
     | 
    
         
             
                                    "@typescript-eslint/global": 2,
         
     | 
| 
       146 
146 
     | 
    
         
             
                                },
         
     | 
| 
       147 
147 
     | 
    
         
             
                            },
         
     | 
| 
       148 
148 
     | 
    
         
             
                            {
         
     | 
| 
       149 
     | 
    
         
            -
                                 
     | 
| 
      
 149 
     | 
    
         
            +
                                name: "enable",
         
     | 
| 
       150 
150 
     | 
    
         
             
                                rules: {
         
     | 
| 
       151 
151 
     | 
    
         
             
                                    "mocha/test-expression": 2,
         
     | 
| 
       152 
152 
     | 
    
         
             
                                },
         
     | 
| 
         @@ -154,13 +154,13 @@ export const scopes = [ 
     | 
|
| 
       154 
154 
     | 
    
         
             
                        ],
         
     | 
| 
       155 
155 
     | 
    
         
             
                        svelte: [
         
     | 
| 
       156 
156 
     | 
    
         
             
                            {
         
     | 
| 
       157 
     | 
    
         
            -
                                 
     | 
| 
      
 157 
     | 
    
         
            +
                                name: "disable",
         
     | 
| 
       158 
158 
     | 
    
         
             
                                rules: {
         
     | 
| 
       159 
159 
     | 
    
         
             
                                    vanilla1: 0,
         
     | 
| 
       160 
160 
     | 
    
         
             
                                },
         
     | 
| 
       161 
161 
     | 
    
         
             
                            },
         
     | 
| 
       162 
162 
     | 
    
         
             
                            {
         
     | 
| 
       163 
     | 
    
         
            -
                                 
     | 
| 
      
 163 
     | 
    
         
            +
                                name: "enable-extension",
         
     | 
| 
       164 
164 
     | 
    
         
             
                                rules: {
         
     | 
| 
       165 
165 
     | 
    
         
             
                                    "svelte/tags": 2,
         
     | 
| 
       166 
166 
     | 
    
         
             
                                },
         
     | 
| 
         @@ -168,7 +168,7 @@ export const scopes = [ 
     | 
|
| 
       168 
168 
     | 
    
         
             
                        ],
         
     | 
| 
       169 
169 
     | 
    
         
             
                        html: [
         
     | 
| 
       170 
170 
     | 
    
         
             
                            {
         
     | 
| 
       171 
     | 
    
         
            -
                                 
     | 
| 
      
 171 
     | 
    
         
            +
                                name: "enable",
         
     | 
| 
       172 
172 
     | 
    
         
             
                                rules: {
         
     | 
| 
       173 
173 
     | 
    
         
             
                                    "html/attribute": 2,
         
     | 
| 
       174 
174 
     | 
    
         
             
                                },
         
     | 
| 
         @@ -176,7 +176,7 @@ export const scopes = [ 
     | 
|
| 
       176 
176 
     | 
    
         
             
                        ],
         
     | 
| 
       177 
177 
     | 
    
         
             
                        json: [
         
     | 
| 
       178 
178 
     | 
    
         
             
                            {
         
     | 
| 
       179 
     | 
    
         
            -
                                 
     | 
| 
      
 179 
     | 
    
         
            +
                                name: "enable",
         
     | 
| 
       180 
180 
     | 
    
         
             
                                rules: {
         
     | 
| 
       181 
181 
     | 
    
         
             
                                    "jsonc/property-check": 2,
         
     | 
| 
       182 
182 
     | 
    
         
             
                                    "jsonc/comment": [
         
     | 
| 
         @@ -192,7 +192,7 @@ export const scopes = [ 
     | 
|
| 
       192 
192 
     | 
    
         
             
                        ],
         
     | 
| 
       193 
193 
     | 
    
         
             
                        jsonc: [
         
     | 
| 
       194 
194 
     | 
    
         
             
                            {
         
     | 
| 
       195 
     | 
    
         
            -
                                 
     | 
| 
      
 195 
     | 
    
         
            +
                                name: "override-comment",
         
     | 
| 
       196 
196 
     | 
    
         
             
                                rules: {
         
     | 
| 
       197 
197 
     | 
    
         
             
                                    "jsonc/comment": [
         
     | 
| 
       198 
198 
     | 
    
         
             
                                        2,
         
     | 
| 
         @@ -203,7 +203,7 @@ export const scopes = [ 
     | 
|
| 
       203 
203 
     | 
    
         
             
                        ],
         
     | 
| 
       204 
204 
     | 
    
         
             
                        jsoncc: [
         
     | 
| 
       205 
205 
     | 
    
         
             
                            {
         
     | 
| 
       206 
     | 
    
         
            -
                                 
     | 
| 
      
 206 
     | 
    
         
            +
                                name: "override-comma",
         
     | 
| 
       207 
207 
     | 
    
         
             
                                rules: {
         
     | 
| 
       208 
208 
     | 
    
         
             
                                    "jsonc/trailing-comma": [
         
     | 
| 
       209 
209 
     | 
    
         
             
                                        2,
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"index.input.spec.js","sourceRoot":"","sources":["../src/index.input.spec.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,GAAG,aAAa,EAC5B,MAAM,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,eAAe,KAAK,EAAE,CAAC;AAEnD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;CACA,EACV,QAAQ,GAAG,CAAC,QAAQ,CAAU,EAC9B,IAAI,GAAG;IACL;QACE,QAAQ;QACR,CAAC,OAAO,CAAC;KACD;IACV;QACE,OAAO;QACP,CAAC,MAAM,CAAC;KACA;IACV;QACE,OAAO;QACP,CAAC,IAAI,CAAC;KACE;IACV;QACE,QAAQ;QACR,CAAC,IAAI,CAAC;KACE;IACV;QACE,IAAI;QACJ,CAAC,IAAI,CAAC;KACE;CACX,EACD,OAAO,GAAG;IACR,OAAO,EAAE;QACP,YAAY,EAAE,MAAM;QACpB,oBAAoB,EAAE,MAAM;QAC5B,KAAK,EAAE,MAAM;QACb,eAAe,EAAE,MAAM;QACvB,aAAa,EAAE,MAAM;QACrB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,MAAM;KACd;IACD,OAAO,EAAE;QACP,EAAE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C7B,KAAK,EAAE,CAAC,sBAAsB,CAAC;YAC/B,MAAM,EAAE,CAAC,4BAA4B,CAAC;SACvC;QACD,KAAK,EAAE;YACL,EAAE,EAAE;gBACF;oBACE, 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"index.input.spec.js","sourceRoot":"","sources":["../src/index.input.spec.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,GAAG,aAAa,EAC5B,MAAM,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,eAAe,KAAK,EAAE,CAAC;AAEnD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,IAAI;IACJ,IAAI;IACJ,OAAO;IACP,QAAQ;IACR,MAAM;IACN,MAAM;IACN,OAAO;IACP,QAAQ;CACA,EACV,QAAQ,GAAG,CAAC,QAAQ,CAAU,EAC9B,IAAI,GAAG;IACL;QACE,QAAQ;QACR,CAAC,OAAO,CAAC;KACD;IACV;QACE,OAAO;QACP,CAAC,MAAM,CAAC;KACA;IACV;QACE,OAAO;QACP,CAAC,IAAI,CAAC;KACE;IACV;QACE,QAAQ;QACR,CAAC,IAAI,CAAC;KACE;IACV;QACE,IAAI;QACJ,CAAC,IAAI,CAAC;KACE;CACX,EACD,OAAO,GAAG;IACR,OAAO,EAAE;QACP,YAAY,EAAE,MAAM;QACpB,oBAAoB,EAAE,MAAM;QAC5B,KAAK,EAAE,MAAM;QACb,eAAe,EAAE,MAAM;QACvB,aAAa,EAAE,MAAM;QACrB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,MAAM;KACd;IACD,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC,IAAI,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;KACrB;CACF,EACD,QAAQ,GAAG;IACT,EAAE,EAAE;QACF,eAAe,EAAE;YACf,MAAM,EAAE,IAAa;SACtB;KACF;IACD,MAAM,EAAE;QACN,eAAe,EAAE;YACf,MAAM,EAAE,QAA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,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,gBAAgB;oBACtB,KAAK,EAAE;wBACL,sBAAsB,EAAE;;4BAEtB,OAAO;yBACC;qBACX;iBACF;aACF;SACF;KACF;IACD,UAAU,EAAE,EAAE;CACf,CAAC"}
         
     | 
    
        package/dist/index.spec.js
    CHANGED
    
    | 
         @@ -33,15 +33,14 @@ describe("Core", function () { 
     | 
|
| 
       33 
33 
     | 
    
         
             
                    });
         
     | 
| 
       34 
34 
     | 
    
         
             
                });
         
     | 
| 
       35 
35 
     | 
    
         
             
                describe("configs", function () {
         
     | 
| 
       36 
     | 
    
         
            -
                     
     | 
| 
       37 
     | 
    
         
            -
             
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
     | 
    
         
            -
                            . 
     | 
| 
       40 
     | 
    
         
            -
                            . 
     | 
| 
       41 
     | 
    
         
            -
             
     | 
| 
       42 
     | 
    
         
            -
                             
     | 
| 
       43 
     | 
    
         
            -
                            . 
     | 
| 
       44 
     | 
    
         
            -
                            .an("array");
         
     | 
| 
      
 36 
     | 
    
         
            +
                    it("has plugins", function () {
         
     | 
| 
      
 37 
     | 
    
         
            +
                        configs
         
     | 
| 
      
 38 
     | 
    
         
            +
                            .should
         
     | 
| 
      
 39 
     | 
    
         
            +
                            .satisfy((configs) => configs
         
     | 
| 
      
 40 
     | 
    
         
            +
                            .some(config => typeof config === "object"
         
     | 
| 
      
 41 
     | 
    
         
            +
                            && config !== null
         
     | 
| 
      
 42 
     | 
    
         
            +
                            && "plugins" in config
         
     | 
| 
      
 43 
     | 
    
         
            +
                            && typeof config.plugins === "object"));
         
     | 
| 
       45 
44 
     | 
    
         
             
                    });
         
     | 
| 
       46 
45 
     | 
    
         
             
                });
         
     | 
| 
       47 
46 
     | 
    
         
             
            });
         
     | 
    
        package/dist/index.spec.js.map
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,IAAI,MAAM,GAAG,CAAC;AACrB,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,aAAa,GACd,MAAM,oBAAoB,CAAC;AAE5B,MAAM,OAAO,GAAG,IAAI,CAClB,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,aAAa,CACd,CAAC;AAEF,QAAQ,CACN,MAAM,EACN;IACE,QAAQ,CACN,OAAO,EACP;QACE,EAAE,CACA,eAAe,EACf;YACE,IAAI;iBACD,MAAM,CAAC,EAAE;iBACT,CAAC,CAAC,UAAU,CAAC,CAAC;QACnB,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;IACF,QAAQ,CACN,QAAQ,EACR;QACE,EAAE,CACA,sBAAsB,EACtB;YACE,OAAO;iBACJ,MAAM,CAAC,EAAE;iBACT,EAAE,CAAC,OAAO,CAAC;iBACX,GAAG,CAAC,KAAK,CAAC;QACf,CAAC,CACF,CAAC;QACF,EAAE,CACA,+BAA+B,MAAM,CAAC,MAAM,aAAa,MAAM,CAAC,MAAM,GAAG,CAAC,cAAc,OAAO,CAAC,MAAM,GAAG,EACzG;YACE,OAAO;iBACJ,MAAM,CAAC,IAAI;iBACX,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACvC,CAAC,CACF,CAAC;QACF,EAAE,CACA,qCAAqC,EACrC;YACE,OAAO;iBACJ,MAAM;iBACN,OAAO, 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../src/index.spec.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,IAAI,MAAM,GAAG,CAAC;AACrB,OAAO,EACL,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,QAAQ,EACR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O;iBAC5B,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,MAAM,KAAK,QAAQ;mBACrC,MAAM,KAAK,IAAI;mBACf,SAAS,IAAI,MAAM;mBACnB,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,CAAC,CAC3C,CAAC;QACN,CAAC,CACF,CAAC;IACJ,CAAC,CACF,CAAC;AACJ,CAAC,CACF,CAAC"}
         
     | 
| 
         @@ -1,10 +1,10 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import type {  
     | 
| 
      
 1 
     | 
    
         
            +
            import type { RuleConfig } from "@eslint/config-helpers";
         
     | 
| 
       2 
2 
     | 
    
         
             
            export interface Defaults<Scope extends string> {
         
     | 
| 
       3 
3 
     | 
    
         
             
                files: Partial<Record<Scope, string[]>>;
         
     | 
| 
       4 
4 
     | 
    
         
             
                ignores: Record<"*", string[]> & Partial<Record<Scope, string[]>>;
         
     | 
| 
       5 
     | 
    
         
            -
                rules: Partial<Record<Scope, {
         
     | 
| 
       6 
     | 
    
         
            -
                     
     | 
| 
       7 
     | 
    
         
            -
                    rules:  
     | 
| 
       8 
     | 
    
         
            -
                } 
     | 
| 
      
 5 
     | 
    
         
            +
                rules: Partial<Record<Scope, Array<{
         
     | 
| 
      
 6 
     | 
    
         
            +
                    name: string;
         
     | 
| 
      
 7 
     | 
    
         
            +
                    rules: Record<string, Readonly<RuleConfig>>;
         
     | 
| 
      
 8 
     | 
    
         
            +
                }>>>;
         
     | 
| 
       9 
9 
     | 
    
         
             
            }
         
     | 
| 
       10 
     | 
    
         
            -
            //# sourceMappingURL=index.d.ts.map
         
     | 
| 
      
 10 
     | 
    
         
            +
            //# sourceMappingURL=index.d.ts.map
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/configuration/defaults/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE, 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interface/configuration/defaults/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,WAAW,QAAQ,CAAC,KAAK,SAAS,MAAM;IAC5C,KAAK,EAAE,OAAO,CACZ,MAAM,CACJ,KAAK,EACL,MAAM,EAAE,CACT,CACF,CAAC;IACF,OAAO,EACH,MAAM,CACN,GAAG,EACH,MAAM,EAAE,CACT,GACC,OAAO,CACP,MAAM,CACJ,KAAK,EACL,MAAM,EAAE,CACT,CACF,CAAC;IACJ,KAAK,EAAE,OAAO,CACZ,MAAM,CACJ,KAAK,EACL,KAAK,CACH;QACE,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CACX,MAAM,EACN,QAAQ,CAAC,UAAU,CAAC,CACrB,CAAC;KACH,CACF,CACF,CACF,CAAC;CACH"}
         
     | 
| 
         @@ -1,10 +1,10 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import type {  
     | 
| 
      
 1 
     | 
    
         
            +
            import type { RuleConfig } from "@eslint/config-helpers";
         
     | 
| 
       2 
2 
     | 
    
         
             
            export type ScopeExtensions<Scope extends string, Optional extends Scope> = Record<Scope, {
         
     | 
| 
       3 
3 
     | 
    
         
             
                files?: string[];
         
     | 
| 
       4 
4 
     | 
    
         
             
                ignores?: string[];
         
     | 
| 
       5 
     | 
    
         
            -
                rules?:  
     | 
| 
      
 5 
     | 
    
         
            +
                rules?: Record<string, Readonly<RuleConfig>>;
         
     | 
| 
       6 
6 
     | 
    
         
             
            }> & Record<Optional, {
         
     | 
| 
       7 
7 
     | 
    
         
             
                plugin: unknown;
         
     | 
| 
       8 
8 
     | 
    
         
             
                parser: unknown;
         
     | 
| 
       9 
9 
     | 
    
         
             
            }>;
         
     | 
| 
       10 
     | 
    
         
            -
            //# sourceMappingURL=scopes.d.ts.map
         
     | 
| 
      
 10 
     | 
    
         
            +
            //# sourceMappingURL=scopes.d.ts.map
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../../src/interface/configuration/extensions/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE, 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../../src/interface/configuration/extensions/scopes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,MAAM,eAAe,CACzB,KAAK,SAAS,MAAM,EACpB,QAAQ,SAAS,KAAK,IAEpB,MAAM,CACR,KAAK,EACL;IACE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CACZ,MAAM,EACN,QAAQ,CAAC,UAAU,CAAC,CACrB,CAAC;CACH,CACF,GACC,MAAM,CACN,QAAQ,EACR;IACE,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;CACjB,CACF,CAAC"}
         
     | 
    
        package/package.json
    CHANGED
    
    | 
         @@ -3,7 +3,7 @@ 
     | 
|
| 
       3 
3 
     | 
    
         
             
              "$schema": "https://json.schemastore.org/package",
         
     | 
| 
       4 
4 
     | 
    
         
             
              "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
         
     | 
| 
       5 
5 
     | 
    
         
             
              "name": "@eslinted/core",
         
     | 
| 
       6 
     | 
    
         
            -
              "version": " 
     | 
| 
      
 6 
     | 
    
         
            +
              "version": "29.0.0-rc.1",
         
     | 
| 
       7 
7 
     | 
    
         
             
              "repository": "github:jimmy-zhening-luo/linted-core",
         
     | 
| 
       8 
8 
     | 
    
         
             
              "description": "Internal core for npm package `linted`, responsible for producing an array of fully-formed ESLint configurations according to `linted` spec.",
         
     | 
| 
       9 
9 
     | 
    
         
             
              "keywords": [],
         
     | 
| 
         @@ -16,6 +16,9 @@ 
     | 
|
| 
       16 
16 
     | 
    
         
             
              },
         
     | 
| 
       17 
17 
     | 
    
         
             
              "type": "module",
         
     | 
| 
       18 
18 
     | 
    
         
             
              "peerDependenciesMeta": {},
         
     | 
| 
      
 19 
     | 
    
         
            +
              "dependencies": {
         
     | 
| 
      
 20 
     | 
    
         
            +
                "@eslint/config-helpers": "^0.4.1"
         
     | 
| 
      
 21 
     | 
    
         
            +
              },
         
     | 
| 
       19 
22 
     | 
    
         
             
              "devDependencies": {
         
     | 
| 
       20 
23 
     | 
    
         
             
                "@types/chai": "^5.2.2",
         
     | 
| 
       21 
24 
     | 
    
         
             
                "@types/mocha": "^10.0.10",
         
     | 
    
        package/src/factory/index.ts
    CHANGED
    
    | 
         @@ -1,5 +1,31 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            import {
         
     | 
| 
      
 2 
     | 
    
         
            +
              defineConfig,
         
     | 
| 
      
 3 
     | 
    
         
            +
              globalIgnores,
         
     | 
| 
      
 4 
     | 
    
         
            +
              type RuleConfig,
         
     | 
| 
      
 5 
     | 
    
         
            +
            } from "@eslint/config-helpers";
         
     | 
| 
       1 
6 
     | 
    
         
             
            import type Core from "..";
         
     | 
| 
       2 
7 
     | 
    
         | 
| 
      
 8 
     | 
    
         
            +
            type MutableRules<RuleArray> = RuleArray extends Array<
         
     | 
| 
      
 9 
     | 
    
         
            +
              infer Rules extends {
         
     | 
| 
      
 10 
     | 
    
         
            +
                name: string;
         
     | 
| 
      
 11 
     | 
    
         
            +
                rules: Record<
         
     | 
| 
      
 12 
     | 
    
         
            +
                  string,
         
     | 
| 
      
 13 
     | 
    
         
            +
                  Readonly<RuleConfig>
         
     | 
| 
      
 14 
     | 
    
         
            +
                >;
         
     | 
| 
      
 15 
     | 
    
         
            +
              }
         
     | 
| 
      
 16 
     | 
    
         
            +
            >
         
     | 
| 
      
 17 
     | 
    
         
            +
              ? {
         
     | 
| 
      
 18 
     | 
    
         
            +
                  name: Rules["name"];
         
     | 
| 
      
 19 
     | 
    
         
            +
                  rules: {
         
     | 
| 
      
 20 
     | 
    
         
            +
                    [Rule in keyof Rules["rules"]]: Mutable<Rules["rules"][Rule
         
     | 
| 
      
 21 
     | 
    
         
            +
                    ]>
         
     | 
| 
      
 22 
     | 
    
         
            +
                  };
         
     | 
| 
      
 23 
     | 
    
         
            +
                }[]
         
     | 
| 
      
 24 
     | 
    
         
            +
              : RuleArray;
         
     | 
| 
      
 25 
     | 
    
         
            +
            type Mutable<V> = V extends object
         
     | 
| 
      
 26 
     | 
    
         
            +
              ? { -readonly [I in keyof V]: V[I] }
         
     | 
| 
      
 27 
     | 
    
         
            +
              : V;
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
       3 
29 
     | 
    
         
             
            export default function factory<
         
     | 
| 
       4 
30 
     | 
    
         
             
              Scope extends string,
         
     | 
| 
       5 
31 
     | 
    
         
             
              Optional extends Scope,
         
     | 
| 
         @@ -96,7 +122,7 @@ export default function factory< 
     | 
|
| 
       96 
122 
     | 
    
         
             
                      defaults.rules[scope][
         
     | 
| 
       97 
123 
     | 
    
         
             
                        defaults.rules[scope].length
         
     | 
| 
       98 
124 
     | 
    
         
             
                      ] = {
         
     | 
| 
       99 
     | 
    
         
            -
                         
     | 
| 
      
 125 
     | 
    
         
            +
                        name: scope.concat("/override"),
         
     | 
| 
       100 
126 
     | 
    
         
             
                        rules,
         
     | 
| 
       101 
127 
     | 
    
         
             
                      };
         
     | 
| 
       102 
128 
     | 
    
         
             
                }
         
     | 
| 
         @@ -167,123 +193,79 @@ export default function factory< 
     | 
|
| 
       167 
193 
     | 
    
         
             
                        defaultGlobals[L + i] = ignores[i]!;
         
     | 
| 
       168 
194 
     | 
    
         
             
                    }
         
     | 
| 
       169 
195 
     | 
    
         | 
| 
       170 
     | 
    
         
            -
               
     | 
| 
       171 
     | 
    
         
            -
                 
     | 
| 
       172 
     | 
    
         
            -
             
     | 
| 
       173 
     | 
    
         
            -
             
     | 
| 
       174 
     | 
    
         
            -
             
     | 
| 
       175 
     | 
    
         
            -
             
     | 
| 
       176 
     | 
    
         
            -
             
     | 
| 
       177 
     | 
    
         
            -
             
     | 
| 
       178 
     | 
    
         
            -
             
     | 
| 
       179 
     | 
    
         
            -
             
     | 
| 
       180 
     | 
    
         
            -
             
     | 
| 
       181 
     | 
    
         
            -
             
     | 
| 
       182 
     | 
    
         
            -
                     
     | 
| 
       183 
     | 
    
         
            -
             
     | 
| 
       184 
     | 
    
         
            -
                     
     | 
| 
       185 
     | 
    
         
            -
             
     | 
| 
       186 
     | 
    
         
            -
             
     | 
| 
       187 
     | 
    
         
            -
             
     | 
| 
       188 
     | 
    
         
            -
             
     | 
| 
       189 
     | 
    
         
            -
                      (
         
     | 
| 
       190 
     | 
    
         
            -
             
     | 
| 
       191 
     | 
    
         
            -
             
     | 
| 
       192 
     | 
    
         
            -
             
     | 
| 
       193 
     | 
    
         
            -
             
     | 
| 
       194 
     | 
    
         
            -
                      )  
     | 
| 
       195 
     | 
    
         
            -
                         
     | 
| 
       196 
     | 
    
         
            -
             
     | 
| 
       197 
     | 
    
         
            -
             
     | 
| 
       198 
     | 
    
         
            -
             
     | 
| 
       199 
     | 
    
         
            -
             
     | 
| 
       200 
     | 
    
         
            -
             
     | 
| 
       201 
     | 
    
         
            -
             
     | 
| 
       202 
     | 
    
         
            -
             
     | 
| 
       203 
     | 
    
         
            -
             
     | 
| 
       204 
     | 
    
         
            -
             
     | 
| 
       205 
     | 
    
         
            -
                        parserOptions 
     | 
| 
       206 
     | 
    
         
            -
             
     | 
| 
       207 
     | 
    
         
            -
             
     | 
| 
       208 
     | 
    
         
            -
             
     | 
| 
       209 
     | 
    
         
            -
             
     | 
| 
       210 
     | 
    
         
            -
             
     | 
| 
       211 
     | 
    
         
            -
             
     | 
| 
       212 
     | 
    
         
            -
             
     | 
| 
       213 
     | 
    
         
            -
             
     | 
| 
       214 
     | 
    
         
            -
             
     | 
| 
       215 
     | 
    
         
            -
             
     | 
| 
       216 
     | 
    
         
            -
             
     | 
| 
       217 
     | 
    
         
            -
             
     | 
| 
       218 
     | 
    
         
            -
             
     | 
| 
       219 
     | 
    
         
            -
                        parserOptions.parser = parsers[parserOptions.parser] as Parser;
         
     | 
| 
       220 
     | 
    
         
            -
             
     | 
| 
       221 
     | 
    
         
            -
                      if (languageOptions === undefined) {
         
     | 
| 
       222 
     | 
    
         
            -
                        if (
         
     | 
| 
       223 
     | 
    
         
            -
                          parserOptions !== undefined
         
     | 
| 
       224 
     | 
    
         
            -
                          && Object.keys(parserOptions).length !== 0
         
     | 
| 
       225 
     | 
    
         
            -
                        )
         
     | 
| 
       226 
     | 
    
         
            -
                          Object.assign(
         
     | 
| 
       227 
     | 
    
         
            -
                            manifest,
         
     | 
| 
       228 
     | 
    
         
            -
                            {
         
     | 
| 
       229 
     | 
    
         
            -
                              languageOptions: {
         
     | 
| 
       230 
     | 
    
         
            -
                                parserOptions,
         
     | 
| 
       231 
     | 
    
         
            -
                              },
         
     | 
| 
       232 
     | 
    
         
            -
                            },
         
     | 
| 
       233 
     | 
    
         
            -
                          );
         
     | 
| 
       234 
     | 
    
         
            -
                      }
         
     | 
| 
       235 
     | 
    
         
            -
                      else {
         
     | 
| 
       236 
     | 
    
         
            -
                        if (
         
     | 
| 
       237 
     | 
    
         
            -
                          parserOptions !== undefined
         
     | 
| 
       238 
     | 
    
         
            -
                          && Object.keys(parserOptions).length !== 0
         
     | 
| 
       239 
     | 
    
         
            -
                        )
         
     | 
| 
      
 196 
     | 
    
         
            +
              return defineConfig(
         
     | 
| 
      
 197 
     | 
    
         
            +
                globalIgnores(defaults.ignores["*"]),
         
     | 
| 
      
 198 
     | 
    
         
            +
                {
         
     | 
| 
      
 199 
     | 
    
         
            +
                  name: "plugins",
         
     | 
| 
      
 200 
     | 
    
         
            +
                  plugins,
         
     | 
| 
      
 201 
     | 
    
         
            +
                },
         
     | 
| 
      
 202 
     | 
    
         
            +
                scopes.map(
         
     | 
| 
      
 203 
     | 
    
         
            +
                  scope => {
         
     | 
| 
      
 204 
     | 
    
         
            +
                    const {
         
     | 
| 
      
 205 
     | 
    
         
            +
                      files: { [scope]: files },
         
     | 
| 
      
 206 
     | 
    
         
            +
                      ignores: { [scope]: ignores = [] },
         
     | 
| 
      
 207 
     | 
    
         
            +
                      rules: { [scope]: rules },
         
     | 
| 
      
 208 
     | 
    
         
            +
                    } = defaults;
         
     | 
| 
      
 209 
     | 
    
         
            +
             
     | 
| 
      
 210 
     | 
    
         
            +
                    if (
         
     | 
| 
      
 211 
     | 
    
         
            +
                      files === undefined
         
     | 
| 
      
 212 
     | 
    
         
            +
                      || rules === undefined
         
     | 
| 
      
 213 
     | 
    
         
            +
                      || files.length === 0
         
     | 
| 
      
 214 
     | 
    
         
            +
                      || rules.length === 0
         
     | 
| 
      
 215 
     | 
    
         
            +
                      || Optional.has(scope)
         
     | 
| 
      
 216 
     | 
    
         
            +
                      && !(scope in parsers)
         
     | 
| 
      
 217 
     | 
    
         
            +
                    )
         
     | 
| 
      
 218 
     | 
    
         
            +
                      return [];
         
     | 
| 
      
 219 
     | 
    
         
            +
                    else {
         
     | 
| 
      
 220 
     | 
    
         
            +
                      if (settings[scope] !== undefined) {
         
     | 
| 
      
 221 
     | 
    
         
            +
                        const {
         
     | 
| 
      
 222 
     | 
    
         
            +
                          languageOptions,
         
     | 
| 
      
 223 
     | 
    
         
            +
                          parserOptions,
         
     | 
| 
      
 224 
     | 
    
         
            +
                          processor,
         
     | 
| 
      
 225 
     | 
    
         
            +
                          language,
         
     | 
| 
      
 226 
     | 
    
         
            +
                        } = settings[scope];
         
     | 
| 
      
 227 
     | 
    
         
            +
             
     | 
| 
      
 228 
     | 
    
         
            +
                        if (languageOptions?.parser !== undefined)
         
     | 
| 
      
 229 
     | 
    
         
            +
                          languageOptions.parser = parsers[languageOptions.parser] as Parser;
         
     | 
| 
      
 230 
     | 
    
         
            +
             
     | 
| 
      
 231 
     | 
    
         
            +
                        if (parserOptions?.parser !== undefined)
         
     | 
| 
      
 232 
     | 
    
         
            +
                          parserOptions.parser = parsers[parserOptions.parser] as Parser;
         
     | 
| 
      
 233 
     | 
    
         
            +
             
     | 
| 
      
 234 
     | 
    
         
            +
                        const definition = languageOptions === undefined
         
     | 
| 
      
 235 
     | 
    
         
            +
                          ? parserOptions === undefined
         
     | 
| 
      
 236 
     | 
    
         
            +
                            ? {}
         
     | 
| 
      
 237 
     | 
    
         
            +
                            : {
         
     | 
| 
      
 238 
     | 
    
         
            +
                                languageOptions: {
         
     | 
| 
      
 239 
     | 
    
         
            +
                                  parserOptions,
         
     | 
| 
      
 240 
     | 
    
         
            +
                                },
         
     | 
| 
      
 241 
     | 
    
         
            +
                              }
         
     | 
| 
      
 242 
     | 
    
         
            +
                          : { languageOptions };
         
     | 
| 
      
 243 
     | 
    
         
            +
             
     | 
| 
      
 244 
     | 
    
         
            +
                        if (processor !== undefined)
         
     | 
| 
       240 
245 
     | 
    
         
             
                          Object.assign(
         
     | 
| 
       241 
     | 
    
         
            -
                             
     | 
| 
       242 
     | 
    
         
            -
                            {  
     | 
| 
      
 246 
     | 
    
         
            +
                            definition,
         
     | 
| 
      
 247 
     | 
    
         
            +
                            { processor },
         
     | 
| 
       243 
248 
     | 
    
         
             
                          );
         
     | 
| 
       244 
249 
     | 
    
         | 
| 
       245 
     | 
    
         
            -
                        if ( 
     | 
| 
      
 250 
     | 
    
         
            +
                        if (language !== undefined)
         
     | 
| 
       246 
251 
     | 
    
         
             
                          Object.assign(
         
     | 
| 
       247 
     | 
    
         
            -
                             
     | 
| 
       248 
     | 
    
         
            -
                            {  
     | 
| 
      
 252 
     | 
    
         
            +
                            definition,
         
     | 
| 
      
 253 
     | 
    
         
            +
                            { language },
         
     | 
| 
       249 
254 
     | 
    
         
             
                          );
         
     | 
| 
       250 
     | 
    
         
            -
                      }
         
     | 
| 
       251 
255 
     | 
    
         | 
| 
       252 
     | 
    
         
            -
             
     | 
| 
       253 
     | 
    
         
            -
             
     | 
| 
       254 
     | 
    
         
            -
                          manifest,
         
     | 
| 
       255 
     | 
    
         
            -
                          { processor },
         
     | 
| 
       256 
     | 
    
         
            -
                        );
         
     | 
| 
       257 
     | 
    
         
            -
             
     | 
| 
       258 
     | 
    
         
            -
                      if (language !== undefined)
         
     | 
| 
       259 
     | 
    
         
            -
                        Object.assign(
         
     | 
| 
       260 
     | 
    
         
            -
                          manifest,
         
     | 
| 
       261 
     | 
    
         
            -
                          { language },
         
     | 
| 
       262 
     | 
    
         
            -
                        );
         
     | 
| 
      
 256 
     | 
    
         
            +
                        (rules as unknown[])[rules.length] = definition;
         
     | 
| 
      
 257 
     | 
    
         
            +
                      }
         
     | 
| 
       263 
258 
     | 
    
         | 
| 
       264 
     | 
    
         
            -
                       
     | 
| 
      
 259 
     | 
    
         
            +
                      return defineConfig(
         
     | 
| 
      
 260 
     | 
    
         
            +
                        {
         
     | 
| 
      
 261 
     | 
    
         
            +
                          name: "scope/".concat(scope),
         
     | 
| 
      
 262 
     | 
    
         
            +
                          files,
         
     | 
| 
      
 263 
     | 
    
         
            +
                          ignores,
         
     | 
| 
      
 264 
     | 
    
         
            +
                          "extends": [rules as MutableRules<typeof rules>],
         
     | 
| 
      
 265 
     | 
    
         
            +
                        },
         
     | 
| 
      
 266 
     | 
    
         
            +
                      );
         
     | 
| 
       265 
267 
     | 
    
         
             
                    }
         
     | 
| 
       266 
     | 
    
         
            -
             
     | 
| 
       267 
     | 
    
         
            -
             
     | 
| 
       268 
     | 
    
         
            -
                  }
         
     | 
| 
       269 
     | 
    
         
            -
                },
         
     | 
| 
      
 268 
     | 
    
         
            +
                  },
         
     | 
| 
      
 269 
     | 
    
         
            +
                ),
         
     | 
| 
       270 
270 
     | 
    
         
             
              );
         
     | 
| 
       271 
     | 
    
         
            -
             
     | 
| 
       272 
     | 
    
         
            -
              if (configs.length === 0)
         
     | 
| 
       273 
     | 
    
         
            -
                return [];
         
     | 
| 
       274 
     | 
    
         
            -
              else {
         
     | 
| 
       275 
     | 
    
         
            -
                const { length } = configs;
         
     | 
| 
       276 
     | 
    
         
            -
             
     | 
| 
       277 
     | 
    
         
            -
                configs.length += 2;
         
     | 
| 
       278 
     | 
    
         
            -
                configs[length] = {
         
     | 
| 
       279 
     | 
    
         
            -
                  name: "linted/*/ignores",
         
     | 
| 
       280 
     | 
    
         
            -
                  ignores: defaults.ignores["*"],
         
     | 
| 
       281 
     | 
    
         
            -
                };
         
     | 
| 
       282 
     | 
    
         
            -
                configs[length + 1] = {
         
     | 
| 
       283 
     | 
    
         
            -
                  name: "linted/*/plugins",
         
     | 
| 
       284 
     | 
    
         
            -
                  plugins,
         
     | 
| 
       285 
     | 
    
         
            -
                };
         
     | 
| 
       286 
     | 
    
         
            -
             
     | 
| 
       287 
     | 
    
         
            -
                return configs;
         
     | 
| 
       288 
     | 
    
         
            -
              }
         
     | 
| 
       289 
271 
     | 
    
         
             
            }
         
     | 
    
        package/src/index.input.spec.ts
    CHANGED
    
    | 
         @@ -113,7 +113,7 @@ configuration = { 
     | 
|
| 
       113 
113 
     | 
    
         
             
                rules: {
         
     | 
| 
       114 
114 
     | 
    
         
             
                  js: [
         
     | 
| 
       115 
115 
     | 
    
         
             
                    {
         
     | 
| 
       116 
     | 
    
         
            -
                       
     | 
| 
      
 116 
     | 
    
         
            +
                      name: "enable",
         
     | 
| 
       117 
117 
     | 
    
         
             
                      rules: {
         
     | 
| 
       118 
118 
     | 
    
         
             
                        vanilla: State.ERROR,
         
     | 
| 
       119 
119 
     | 
    
         
             
                        vanilla0: State.ERROR,
         
     | 
| 
         @@ -122,7 +122,7 @@ configuration = { 
     | 
|
| 
       122 
122 
     | 
    
         
             
                      },
         
     | 
| 
       123 
123 
     | 
    
         
             
                    },
         
     | 
| 
       124 
124 
     | 
    
         
             
                    {
         
     | 
| 
       125 
     | 
    
         
            -
                       
     | 
| 
      
 125 
     | 
    
         
            +
                      name: "enable/stylistic",
         
     | 
| 
       126 
126 
     | 
    
         
             
                      rules: {
         
     | 
| 
       127 
127 
     | 
    
         
             
                        "@stylistic/style-rule": State.ERROR,
         
     | 
| 
       128 
128 
     | 
    
         
             
                      },
         
     | 
| 
         @@ -130,13 +130,13 @@ configuration = { 
     | 
|
| 
       130 
130 
     | 
    
         
             
                  ],
         
     | 
| 
       131 
131 
     | 
    
         
             
                  ts: [
         
     | 
| 
       132 
132 
     | 
    
         
             
                    {
         
     | 
| 
       133 
     | 
    
         
            -
                       
     | 
| 
      
 133 
     | 
    
         
            +
                      name: "disable",
         
     | 
| 
       134 
134 
     | 
    
         
             
                      rules: {
         
     | 
| 
       135 
135 
     | 
    
         
             
                        vanilla0: State.OFF,
         
     | 
| 
       136 
136 
     | 
    
         
             
                      },
         
     | 
| 
       137 
137 
     | 
    
         
             
                    },
         
     | 
| 
       138 
138 
     | 
    
         
             
                    {
         
     | 
| 
       139 
     | 
    
         
            -
                       
     | 
| 
      
 139 
     | 
    
         
            +
                      name: "enable/extension",
         
     | 
| 
       140 
140 
     | 
    
         
             
                      rules: {
         
     | 
| 
       141 
141 
     | 
    
         
             
                        "@typescript-eslint/enums": State.ERROR,
         
     | 
| 
       142 
142 
     | 
    
         
             
                        "@typescript-eslint/destructure-expression": State.ERROR,
         
     | 
| 
         @@ -146,19 +146,19 @@ configuration = { 
     | 
|
| 
       146 
146 
     | 
    
         
             
                  ],
         
     | 
| 
       147 
147 
     | 
    
         
             
                  mocha: [
         
     | 
| 
       148 
148 
     | 
    
         
             
                    {
         
     | 
| 
       149 
     | 
    
         
            -
                       
     | 
| 
      
 149 
     | 
    
         
            +
                      name: "disable",
         
     | 
| 
       150 
150 
     | 
    
         
             
                      rules: {
         
     | 
| 
       151 
151 
     | 
    
         
             
                        vanilla2: State.OFF,
         
     | 
| 
       152 
152 
     | 
    
         
             
                      },
         
     | 
| 
       153 
153 
     | 
    
         
             
                    },
         
     | 
| 
       154 
154 
     | 
    
         
             
                    {
         
     | 
| 
       155 
     | 
    
         
            -
                       
     | 
| 
      
 155 
     | 
    
         
            +
                      name: "disable/ts",
         
     | 
| 
       156 
156 
     | 
    
         
             
                      rules: {
         
     | 
| 
       157 
157 
     | 
    
         
             
                        "@typescript-eslint/global": State.ERROR,
         
     | 
| 
       158 
158 
     | 
    
         
             
                      },
         
     | 
| 
       159 
159 
     | 
    
         
             
                    },
         
     | 
| 
       160 
160 
     | 
    
         
             
                    {
         
     | 
| 
       161 
     | 
    
         
            -
                       
     | 
| 
      
 161 
     | 
    
         
            +
                      name: "enable",
         
     | 
| 
       162 
162 
     | 
    
         
             
                      rules: {
         
     | 
| 
       163 
163 
     | 
    
         
             
                        "mocha/test-expression": State.ERROR,
         
     | 
| 
       164 
164 
     | 
    
         
             
                      },
         
     | 
| 
         @@ -166,13 +166,13 @@ configuration = { 
     | 
|
| 
       166 
166 
     | 
    
         
             
                  ],
         
     | 
| 
       167 
167 
     | 
    
         
             
                  svelte: [
         
     | 
| 
       168 
168 
     | 
    
         
             
                    {
         
     | 
| 
       169 
     | 
    
         
            -
                       
     | 
| 
      
 169 
     | 
    
         
            +
                      name: "disable",
         
     | 
| 
       170 
170 
     | 
    
         
             
                      rules: {
         
     | 
| 
       171 
171 
     | 
    
         
             
                        vanilla1: State.OFF,
         
     | 
| 
       172 
172 
     | 
    
         
             
                      },
         
     | 
| 
       173 
173 
     | 
    
         
             
                    },
         
     | 
| 
       174 
174 
     | 
    
         
             
                    {
         
     | 
| 
       175 
     | 
    
         
            -
                       
     | 
| 
      
 175 
     | 
    
         
            +
                      name: "enable-extension",
         
     | 
| 
       176 
176 
     | 
    
         
             
                      rules: {
         
     | 
| 
       177 
177 
     | 
    
         
             
                        "svelte/tags": State.ERROR,
         
     | 
| 
       178 
178 
     | 
    
         
             
                      },
         
     | 
| 
         @@ -180,7 +180,7 @@ configuration = { 
     | 
|
| 
       180 
180 
     | 
    
         
             
                  ],
         
     | 
| 
       181 
181 
     | 
    
         
             
                  html: [
         
     | 
| 
       182 
182 
     | 
    
         
             
                    {
         
     | 
| 
       183 
     | 
    
         
            -
                       
     | 
| 
      
 183 
     | 
    
         
            +
                      name: "enable",
         
     | 
| 
       184 
184 
     | 
    
         
             
                      rules: {
         
     | 
| 
       185 
185 
     | 
    
         
             
                        "html/attribute": State.ERROR,
         
     | 
| 
       186 
186 
     | 
    
         
             
                      },
         
     | 
| 
         @@ -188,7 +188,7 @@ configuration = { 
     | 
|
| 
       188 
188 
     | 
    
         
             
                  ],
         
     | 
| 
       189 
189 
     | 
    
         
             
                  json: [
         
     | 
| 
       190 
190 
     | 
    
         
             
                    {
         
     | 
| 
       191 
     | 
    
         
            -
                       
     | 
| 
      
 191 
     | 
    
         
            +
                      name: "enable",
         
     | 
| 
       192 
192 
     | 
    
         
             
                      rules: {
         
     | 
| 
       193 
193 
     | 
    
         
             
                        "jsonc/property-check": State.ERROR,
         
     | 
| 
       194 
194 
     | 
    
         
             
                        "jsonc/comment": [
         
     | 
| 
         @@ -204,7 +204,7 @@ configuration = { 
     | 
|
| 
       204 
204 
     | 
    
         
             
                  ],
         
     | 
| 
       205 
205 
     | 
    
         
             
                  jsonc: [
         
     | 
| 
       206 
206 
     | 
    
         
             
                    {
         
     | 
| 
       207 
     | 
    
         
            -
                       
     | 
| 
      
 207 
     | 
    
         
            +
                      name: "override-comment",
         
     | 
| 
       208 
208 
     | 
    
         
             
                      rules: {
         
     | 
| 
       209 
209 
     | 
    
         
             
                        "jsonc/comment": [
         
     | 
| 
       210 
210 
     | 
    
         
             
                          State.ERROR,
         
     | 
| 
         @@ -215,7 +215,7 @@ configuration = { 
     | 
|
| 
       215 
215 
     | 
    
         
             
                  ],
         
     | 
| 
       216 
216 
     | 
    
         
             
                  jsoncc: [
         
     | 
| 
       217 
217 
     | 
    
         
             
                    {
         
     | 
| 
       218 
     | 
    
         
            -
                       
     | 
| 
      
 218 
     | 
    
         
            +
                      name: "override-comma",
         
     | 
| 
       219 
219 
     | 
    
         
             
                      rules: {
         
     | 
| 
       220 
220 
     | 
    
         
             
                        "jsonc/trailing-comma": [
         
     | 
| 
       221 
221 
     | 
    
         
             
                          State.ERROR,
         
     | 
    
        package/src/index.spec.ts
    CHANGED
    
    | 
         @@ -59,11 +59,13 @@ describe( 
     | 
|
| 
       59 
59 
     | 
    
         
             
                      function () {
         
     | 
| 
       60 
60 
     | 
    
         
             
                        configs
         
     | 
| 
       61 
61 
     | 
    
         
             
                          .should
         
     | 
| 
       62 
     | 
    
         
            -
                          .satisfy( 
     | 
| 
       63 
     | 
    
         
            -
                             
     | 
| 
       64 
     | 
    
         
            -
                               
     | 
| 
       65 
     | 
    
         
            -
             
     | 
| 
       66 
     | 
    
         
            -
             
     | 
| 
      
 62 
     | 
    
         
            +
                          .satisfy(
         
     | 
| 
      
 63 
     | 
    
         
            +
                            (configs: unknown[]) => configs
         
     | 
| 
      
 64 
     | 
    
         
            +
                              .every(config => typeof config === "object"
         
     | 
| 
      
 65 
     | 
    
         
            +
                                && config !== null
         
     | 
| 
      
 66 
     | 
    
         
            +
                                && "name" in config
         
     | 
| 
      
 67 
     | 
    
         
            +
                                && typeof config.name === "string"),
         
     | 
| 
      
 68 
     | 
    
         
            +
                          );
         
     | 
| 
       67 
69 
     | 
    
         
             
                      },
         
     | 
| 
       68 
70 
     | 
    
         
             
                    );
         
     | 
| 
       69 
71 
     | 
    
         
             
                  },
         
     | 
| 
         @@ -71,21 +73,18 @@ describe( 
     | 
|
| 
       71 
73 
     | 
    
         
             
                describe(
         
     | 
| 
       72 
74 
     | 
    
         
             
                  "configs",
         
     | 
| 
       73 
75 
     | 
    
         
             
                  function () {
         
     | 
| 
       74 
     | 
    
         
            -
                    const global = configs.at(-2) as [object, object];
         
     | 
| 
       75 
     | 
    
         
            -
             
     | 
| 
       76 
76 
     | 
    
         
             
                    it(
         
     | 
| 
       77 
     | 
    
         
            -
                      " 
     | 
| 
      
 77 
     | 
    
         
            +
                      "has plugins",
         
     | 
| 
       78 
78 
     | 
    
         
             
                      function () {
         
     | 
| 
       79 
     | 
    
         
            -
                         
     | 
| 
       80 
     | 
    
         
            -
                          .should 
     | 
| 
       81 
     | 
    
         
            -
                          . 
     | 
| 
       82 
     | 
    
         
            -
                             
     | 
| 
       83 
     | 
    
         
            -
             
     | 
| 
      
 79 
     | 
    
         
            +
                        configs
         
     | 
| 
      
 80 
     | 
    
         
            +
                          .should
         
     | 
| 
      
 81 
     | 
    
         
            +
                          .satisfy(
         
     | 
| 
      
 82 
     | 
    
         
            +
                            (configs: unknown[]) => configs
         
     | 
| 
      
 83 
     | 
    
         
            +
                              .some(config => typeof config === "object"
         
     | 
| 
      
 84 
     | 
    
         
            +
                                && config !== null
         
     | 
| 
      
 85 
     | 
    
         
            +
                                && "plugins" in config
         
     | 
| 
      
 86 
     | 
    
         
            +
                                && typeof config.plugins === "object"),
         
     | 
| 
       84 
87 
     | 
    
         
             
                          );
         
     | 
| 
       85 
     | 
    
         
            -
                        global
         
     | 
| 
       86 
     | 
    
         
            -
                          .should.have
         
     | 
| 
       87 
     | 
    
         
            -
                          .property("ignores")
         
     | 
| 
       88 
     | 
    
         
            -
                          .an("array");
         
     | 
| 
       89 
88 
     | 
    
         
             
                      },
         
     | 
| 
       90 
89 
     | 
    
         
             
                    );
         
     | 
| 
       91 
90 
     | 
    
         
             
                  },
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import type {  
     | 
| 
      
 1 
     | 
    
         
            +
            import type { RuleConfig } from "@eslint/config-helpers";
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            export interface Defaults<Scope extends string> {
         
     | 
| 
       4 
4 
     | 
    
         
             
              files: Partial<
         
     | 
| 
         @@ -21,10 +21,15 @@ export interface Defaults<Scope extends string> { 
     | 
|
| 
       21 
21 
     | 
    
         
             
              rules: Partial<
         
     | 
| 
       22 
22 
     | 
    
         
             
                Record<
         
     | 
| 
       23 
23 
     | 
    
         
             
                  Scope,
         
     | 
| 
       24 
     | 
    
         
            -
                   
     | 
| 
       25 
     | 
    
         
            -
                     
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
      
 24 
     | 
    
         
            +
                  Array<
         
     | 
| 
      
 25 
     | 
    
         
            +
                    {
         
     | 
| 
      
 26 
     | 
    
         
            +
                      name: string;
         
     | 
| 
      
 27 
     | 
    
         
            +
                      rules: Record<
         
     | 
| 
      
 28 
     | 
    
         
            +
                        string,
         
     | 
| 
      
 29 
     | 
    
         
            +
                        Readonly<RuleConfig>
         
     | 
| 
      
 30 
     | 
    
         
            +
                      >;
         
     | 
| 
      
 31 
     | 
    
         
            +
                    }
         
     | 
| 
      
 32 
     | 
    
         
            +
                  >
         
     | 
| 
       28 
33 
     | 
    
         
             
                >
         
     | 
| 
       29 
34 
     | 
    
         
             
              >;
         
     | 
| 
       30 
35 
     | 
    
         
             
            }
         
     | 
| 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import type {  
     | 
| 
      
 1 
     | 
    
         
            +
            import type { RuleConfig } from "@eslint/config-helpers";
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
            export type ScopeExtensions<
         
     | 
| 
       4 
4 
     | 
    
         
             
              Scope extends string,
         
     | 
| 
         @@ -9,7 +9,10 @@ export type ScopeExtensions< 
     | 
|
| 
       9 
9 
     | 
    
         
             
              {
         
     | 
| 
       10 
10 
     | 
    
         
             
                files?: string[];
         
     | 
| 
       11 
11 
     | 
    
         
             
                ignores?: string[];
         
     | 
| 
       12 
     | 
    
         
            -
                rules?:  
     | 
| 
      
 12 
     | 
    
         
            +
                rules?: Record<
         
     | 
| 
      
 13 
     | 
    
         
            +
                  string,
         
     | 
| 
      
 14 
     | 
    
         
            +
                  Readonly<RuleConfig>
         
     | 
| 
      
 15 
     | 
    
         
            +
                >;
         
     | 
| 
       13 
16 
     | 
    
         
             
              }
         
     | 
| 
       14 
17 
     | 
    
         
             
            >
         
     | 
| 
       15 
18 
     | 
    
         
             
            & Record<
         
     | 
| 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../src/interface/rules.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,KAAK,GAAG,MAAM,CACxB,MAAM,EACJ,KAAK,GACL,SAAS;IACT,KAAK;IACL,GAAG,OAAO,EAAE;CACb,CACF,CAAC;AACF,MAAM,MAAM,KAAK,GACb,CAAC,GACD,CAAC,GACD,CAAC,GACD,KAAK,GACL,MAAM,GACN,OAAO,CAAC"}
         
     | 
    
        package/dist/interface/rules.js
    DELETED
    
    
| 
         @@ -1 +0,0 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../src/interface/rules.ts"],"names":[],"mappings":""}
         
     |