linted 32.9.1 → 32.9.2-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/.github/workflows/RELEASE.yml +38 -38
 - package/.markdownlint.jsonc +97 -97
 - package/.mocharc.yml +11 -11
 - package/LICENSE +20 -20
 - package/README.md +351 -351
 - package/dist/imports/index.d.ts.map +1 -1
 - package/dist/imports/plugins.d.ts.map +1 -1
 - package/eslint.config.js +3 -3
 - package/package.json +101 -101
 - package/src/imports/index.ts +7 -7
 - package/src/imports/parsers.ts +9 -9
 - package/src/imports/plugins.ts +23 -23
 - package/src/index.spec.ts +37 -37
 - package/src/index.ts +25 -25
 - package/src/scope/index.spec.ts +136 -136
 - package/src/scope/index.ts +14 -14
 - package/src/scope/tree.spec.ts +124 -124
 - package/src/scope/tree.ts +22 -22
 - package/src/settings/css.ts +8 -8
 - package/src/settings/html.ts +10 -10
 - package/src/settings/index.ts +15 -15
 - package/src/settings/json.ts +6 -6
 - package/src/settings/svelte.ts +10 -10
 - package/src/settings/ts.ts +31 -31
 - package/src/settings/yml.ts +6 -6
 - package/tsconfig.json +56 -56
 - package/typings/chai.d.ts +6 -6
 
    
        package/src/scope/index.spec.ts
    CHANGED
    
    | 
         @@ -1,136 +1,136 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import "chai/register-should.js";
         
     | 
| 
       2 
     | 
    
         
            -
            import { scopes } from ".";
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            describe(
         
     | 
| 
       5 
     | 
    
         
            -
              "Scopes",
         
     | 
| 
       6 
     | 
    
         
            -
              function () {
         
     | 
| 
       7 
     | 
    
         
            -
                describe(
         
     | 
| 
       8 
     | 
    
         
            -
                  "shape",
         
     | 
| 
       9 
     | 
    
         
            -
                  function () {
         
     | 
| 
       10 
     | 
    
         
            -
                    it(
         
     | 
| 
       11 
     | 
    
         
            -
                      "is a non-empty array",
         
     | 
| 
       12 
     | 
    
         
            -
                      function () {
         
     | 
| 
       13 
     | 
    
         
            -
                        scopes
         
     | 
| 
       14 
     | 
    
         
            -
                          .should.be
         
     | 
| 
       15 
     | 
    
         
            -
                          .an("array")
         
     | 
| 
       16 
     | 
    
         
            -
                          .not.empty;
         
     | 
| 
       17 
     | 
    
         
            -
                      },
         
     | 
| 
       18 
     | 
    
         
            -
                    );
         
     | 
| 
       19 
     | 
    
         
            -
                  },
         
     | 
| 
       20 
     | 
    
         
            -
                );
         
     | 
| 
       21 
     | 
    
         
            -
                describe(
         
     | 
| 
       22 
     | 
    
         
            -
                  "members",
         
     | 
| 
       23 
     | 
    
         
            -
                  function () {
         
     | 
| 
       24 
     | 
    
         
            -
                    it(
         
     | 
| 
       25 
     | 
    
         
            -
                      "are unique",
         
     | 
| 
       26 
     | 
    
         
            -
                      function () {
         
     | 
| 
       27 
     | 
    
         
            -
                        scopes
         
     | 
| 
       28 
     | 
    
         
            -
                          .length
         
     | 
| 
       29 
     | 
    
         
            -
                          .should
         
     | 
| 
       30 
     | 
    
         
            -
                          .equal(
         
     | 
| 
       31 
     | 
    
         
            -
                            new Set(scopes)
         
     | 
| 
       32 
     | 
    
         
            -
                              .size,
         
     | 
| 
       33 
     | 
    
         
            -
                          );
         
     | 
| 
       34 
     | 
    
         
            -
                      },
         
     | 
| 
       35 
     | 
    
         
            -
                    );
         
     | 
| 
       36 
     | 
    
         
            -
                  },
         
     | 
| 
       37 
     | 
    
         
            -
                );
         
     | 
| 
       38 
     | 
    
         
            -
                describe(
         
     | 
| 
       39 
     | 
    
         
            -
                  "order",
         
     | 
| 
       40 
     | 
    
         
            -
                  function () {
         
     | 
| 
       41 
     | 
    
         
            -
                    it(
         
     | 
| 
       42 
     | 
    
         
            -
                      "`jsoncc` > `jsonc` > `json`",
         
     | 
| 
       43 
     | 
    
         
            -
                      function () {
         
     | 
| 
       44 
     | 
    
         
            -
                        scopes
         
     | 
| 
       45 
     | 
    
         
            -
                          .should
         
     | 
| 
       46 
     | 
    
         
            -
                          .include
         
     | 
| 
       47 
     | 
    
         
            -
                          .members(
         
     | 
| 
       48 
     | 
    
         
            -
                            [
         
     | 
| 
       49 
     | 
    
         
            -
                              "jsoncc",
         
     | 
| 
       50 
     | 
    
         
            -
                              "jsonc",
         
     | 
| 
       51 
     | 
    
         
            -
                              "json",
         
     | 
| 
       52 
     | 
    
         
            -
                            ],
         
     | 
| 
       53 
     | 
    
         
            -
                          );
         
     | 
| 
       54 
     | 
    
         
            -
                        scopes
         
     | 
| 
       55 
     | 
    
         
            -
                          .indexOf("jsoncc")
         
     | 
| 
       56 
     | 
    
         
            -
                          .should.be
         
     | 
| 
       57 
     | 
    
         
            -
                          .greaterThan(
         
     | 
| 
       58 
     | 
    
         
            -
                            scopes
         
     | 
| 
       59 
     | 
    
         
            -
                              .indexOf("jsonc"),
         
     | 
| 
       60 
     | 
    
         
            -
                          );
         
     | 
| 
       61 
     | 
    
         
            -
                        scopes
         
     | 
| 
       62 
     | 
    
         
            -
                          .indexOf("jsonc")
         
     | 
| 
       63 
     | 
    
         
            -
                          .should.be
         
     | 
| 
       64 
     | 
    
         
            -
                          .greaterThan(
         
     | 
| 
       65 
     | 
    
         
            -
                            scopes
         
     | 
| 
       66 
     | 
    
         
            -
                              .indexOf("json"),
         
     | 
| 
       67 
     | 
    
         
            -
                          );
         
     | 
| 
       68 
     | 
    
         
            -
                      },
         
     | 
| 
       69 
     | 
    
         
            -
                    );
         
     | 
| 
       70 
     | 
    
         
            -
                    it(
         
     | 
| 
       71 
     | 
    
         
            -
                      "`mocha` > `ts`",
         
     | 
| 
       72 
     | 
    
         
            -
                      function () {
         
     | 
| 
       73 
     | 
    
         
            -
                        scopes
         
     | 
| 
       74 
     | 
    
         
            -
                          .should
         
     | 
| 
       75 
     | 
    
         
            -
                          .include
         
     | 
| 
       76 
     | 
    
         
            -
                          .members(
         
     | 
| 
       77 
     | 
    
         
            -
                            [
         
     | 
| 
       78 
     | 
    
         
            -
                              "mocha",
         
     | 
| 
       79 
     | 
    
         
            -
                              "ts",
         
     | 
| 
       80 
     | 
    
         
            -
                            ],
         
     | 
| 
       81 
     | 
    
         
            -
                          );
         
     | 
| 
       82 
     | 
    
         
            -
                        scopes
         
     | 
| 
       83 
     | 
    
         
            -
                          .indexOf("mocha")
         
     | 
| 
       84 
     | 
    
         
            -
                          .should.be
         
     | 
| 
       85 
     | 
    
         
            -
                          .greaterThan(
         
     | 
| 
       86 
     | 
    
         
            -
                            scopes
         
     | 
| 
       87 
     | 
    
         
            -
                              .indexOf("ts"),
         
     | 
| 
       88 
     | 
    
         
            -
                          );
         
     | 
| 
       89 
     | 
    
         
            -
                      },
         
     | 
| 
       90 
     | 
    
         
            -
                    );
         
     | 
| 
       91 
     | 
    
         
            -
                    it(
         
     | 
| 
       92 
     | 
    
         
            -
                      "`svelte` > `ts`",
         
     | 
| 
       93 
     | 
    
         
            -
                      function () {
         
     | 
| 
       94 
     | 
    
         
            -
                        scopes
         
     | 
| 
       95 
     | 
    
         
            -
                          .should
         
     | 
| 
       96 
     | 
    
         
            -
                          .include
         
     | 
| 
       97 
     | 
    
         
            -
                          .members(
         
     | 
| 
       98 
     | 
    
         
            -
                            [
         
     | 
| 
       99 
     | 
    
         
            -
                              "svelte",
         
     | 
| 
       100 
     | 
    
         
            -
                              "ts",
         
     | 
| 
       101 
     | 
    
         
            -
                            ],
         
     | 
| 
       102 
     | 
    
         
            -
                          );
         
     | 
| 
       103 
     | 
    
         
            -
                        scopes
         
     | 
| 
       104 
     | 
    
         
            -
                          .indexOf("svelte")
         
     | 
| 
       105 
     | 
    
         
            -
                          .should.be
         
     | 
| 
       106 
     | 
    
         
            -
                          .greaterThan(
         
     | 
| 
       107 
     | 
    
         
            -
                            scopes
         
     | 
| 
       108 
     | 
    
         
            -
                              .indexOf("ts"),
         
     | 
| 
       109 
     | 
    
         
            -
                          );
         
     | 
| 
       110 
     | 
    
         
            -
                      },
         
     | 
| 
       111 
     | 
    
         
            -
                    );
         
     | 
| 
       112 
     | 
    
         
            -
                    it(
         
     | 
| 
       113 
     | 
    
         
            -
                      "`ts` > `js`",
         
     | 
| 
       114 
     | 
    
         
            -
                      function () {
         
     | 
| 
       115 
     | 
    
         
            -
                        scopes
         
     | 
| 
       116 
     | 
    
         
            -
                          .should
         
     | 
| 
       117 
     | 
    
         
            -
                          .include
         
     | 
| 
       118 
     | 
    
         
            -
                          .members(
         
     | 
| 
       119 
     | 
    
         
            -
                            [
         
     | 
| 
       120 
     | 
    
         
            -
                              "ts",
         
     | 
| 
       121 
     | 
    
         
            -
                              "js",
         
     | 
| 
       122 
     | 
    
         
            -
                            ],
         
     | 
| 
       123 
     | 
    
         
            -
                          );
         
     | 
| 
       124 
     | 
    
         
            -
                        scopes
         
     | 
| 
       125 
     | 
    
         
            -
                          .indexOf("ts")
         
     | 
| 
       126 
     | 
    
         
            -
                          .should.be
         
     | 
| 
       127 
     | 
    
         
            -
                          .greaterThan(
         
     | 
| 
       128 
     | 
    
         
            -
                            scopes
         
     | 
| 
       129 
     | 
    
         
            -
                              .indexOf("js"),
         
     | 
| 
       130 
     | 
    
         
            -
                          );
         
     | 
| 
       131 
     | 
    
         
            -
                      },
         
     | 
| 
       132 
     | 
    
         
            -
                    );
         
     | 
| 
       133 
     | 
    
         
            -
                  },
         
     | 
| 
       134 
     | 
    
         
            -
                );
         
     | 
| 
       135 
     | 
    
         
            -
              },
         
     | 
| 
       136 
     | 
    
         
            -
            );
         
     | 
| 
      
 1 
     | 
    
         
            +
            import "chai/register-should.js";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { scopes } from ".";
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            describe(
         
     | 
| 
      
 5 
     | 
    
         
            +
              "Scopes",
         
     | 
| 
      
 6 
     | 
    
         
            +
              function () {
         
     | 
| 
      
 7 
     | 
    
         
            +
                describe(
         
     | 
| 
      
 8 
     | 
    
         
            +
                  "shape",
         
     | 
| 
      
 9 
     | 
    
         
            +
                  function () {
         
     | 
| 
      
 10 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 11 
     | 
    
         
            +
                      "is a non-empty array",
         
     | 
| 
      
 12 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 13 
     | 
    
         
            +
                        scopes
         
     | 
| 
      
 14 
     | 
    
         
            +
                          .should.be
         
     | 
| 
      
 15 
     | 
    
         
            +
                          .an("array")
         
     | 
| 
      
 16 
     | 
    
         
            +
                          .not.empty;
         
     | 
| 
      
 17 
     | 
    
         
            +
                      },
         
     | 
| 
      
 18 
     | 
    
         
            +
                    );
         
     | 
| 
      
 19 
     | 
    
         
            +
                  },
         
     | 
| 
      
 20 
     | 
    
         
            +
                );
         
     | 
| 
      
 21 
     | 
    
         
            +
                describe(
         
     | 
| 
      
 22 
     | 
    
         
            +
                  "members",
         
     | 
| 
      
 23 
     | 
    
         
            +
                  function () {
         
     | 
| 
      
 24 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 25 
     | 
    
         
            +
                      "are unique",
         
     | 
| 
      
 26 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 27 
     | 
    
         
            +
                        scopes
         
     | 
| 
      
 28 
     | 
    
         
            +
                          .length
         
     | 
| 
      
 29 
     | 
    
         
            +
                          .should
         
     | 
| 
      
 30 
     | 
    
         
            +
                          .equal(
         
     | 
| 
      
 31 
     | 
    
         
            +
                            new Set(scopes)
         
     | 
| 
      
 32 
     | 
    
         
            +
                              .size,
         
     | 
| 
      
 33 
     | 
    
         
            +
                          );
         
     | 
| 
      
 34 
     | 
    
         
            +
                      },
         
     | 
| 
      
 35 
     | 
    
         
            +
                    );
         
     | 
| 
      
 36 
     | 
    
         
            +
                  },
         
     | 
| 
      
 37 
     | 
    
         
            +
                );
         
     | 
| 
      
 38 
     | 
    
         
            +
                describe(
         
     | 
| 
      
 39 
     | 
    
         
            +
                  "order",
         
     | 
| 
      
 40 
     | 
    
         
            +
                  function () {
         
     | 
| 
      
 41 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 42 
     | 
    
         
            +
                      "`jsoncc` > `jsonc` > `json`",
         
     | 
| 
      
 43 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 44 
     | 
    
         
            +
                        scopes
         
     | 
| 
      
 45 
     | 
    
         
            +
                          .should
         
     | 
| 
      
 46 
     | 
    
         
            +
                          .include
         
     | 
| 
      
 47 
     | 
    
         
            +
                          .members(
         
     | 
| 
      
 48 
     | 
    
         
            +
                            [
         
     | 
| 
      
 49 
     | 
    
         
            +
                              "jsoncc",
         
     | 
| 
      
 50 
     | 
    
         
            +
                              "jsonc",
         
     | 
| 
      
 51 
     | 
    
         
            +
                              "json",
         
     | 
| 
      
 52 
     | 
    
         
            +
                            ],
         
     | 
| 
      
 53 
     | 
    
         
            +
                          );
         
     | 
| 
      
 54 
     | 
    
         
            +
                        scopes
         
     | 
| 
      
 55 
     | 
    
         
            +
                          .indexOf("jsoncc")
         
     | 
| 
      
 56 
     | 
    
         
            +
                          .should.be
         
     | 
| 
      
 57 
     | 
    
         
            +
                          .greaterThan(
         
     | 
| 
      
 58 
     | 
    
         
            +
                            scopes
         
     | 
| 
      
 59 
     | 
    
         
            +
                              .indexOf("jsonc"),
         
     | 
| 
      
 60 
     | 
    
         
            +
                          );
         
     | 
| 
      
 61 
     | 
    
         
            +
                        scopes
         
     | 
| 
      
 62 
     | 
    
         
            +
                          .indexOf("jsonc")
         
     | 
| 
      
 63 
     | 
    
         
            +
                          .should.be
         
     | 
| 
      
 64 
     | 
    
         
            +
                          .greaterThan(
         
     | 
| 
      
 65 
     | 
    
         
            +
                            scopes
         
     | 
| 
      
 66 
     | 
    
         
            +
                              .indexOf("json"),
         
     | 
| 
      
 67 
     | 
    
         
            +
                          );
         
     | 
| 
      
 68 
     | 
    
         
            +
                      },
         
     | 
| 
      
 69 
     | 
    
         
            +
                    );
         
     | 
| 
      
 70 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 71 
     | 
    
         
            +
                      "`mocha` > `ts`",
         
     | 
| 
      
 72 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 73 
     | 
    
         
            +
                        scopes
         
     | 
| 
      
 74 
     | 
    
         
            +
                          .should
         
     | 
| 
      
 75 
     | 
    
         
            +
                          .include
         
     | 
| 
      
 76 
     | 
    
         
            +
                          .members(
         
     | 
| 
      
 77 
     | 
    
         
            +
                            [
         
     | 
| 
      
 78 
     | 
    
         
            +
                              "mocha",
         
     | 
| 
      
 79 
     | 
    
         
            +
                              "ts",
         
     | 
| 
      
 80 
     | 
    
         
            +
                            ],
         
     | 
| 
      
 81 
     | 
    
         
            +
                          );
         
     | 
| 
      
 82 
     | 
    
         
            +
                        scopes
         
     | 
| 
      
 83 
     | 
    
         
            +
                          .indexOf("mocha")
         
     | 
| 
      
 84 
     | 
    
         
            +
                          .should.be
         
     | 
| 
      
 85 
     | 
    
         
            +
                          .greaterThan(
         
     | 
| 
      
 86 
     | 
    
         
            +
                            scopes
         
     | 
| 
      
 87 
     | 
    
         
            +
                              .indexOf("ts"),
         
     | 
| 
      
 88 
     | 
    
         
            +
                          );
         
     | 
| 
      
 89 
     | 
    
         
            +
                      },
         
     | 
| 
      
 90 
     | 
    
         
            +
                    );
         
     | 
| 
      
 91 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 92 
     | 
    
         
            +
                      "`svelte` > `ts`",
         
     | 
| 
      
 93 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 94 
     | 
    
         
            +
                        scopes
         
     | 
| 
      
 95 
     | 
    
         
            +
                          .should
         
     | 
| 
      
 96 
     | 
    
         
            +
                          .include
         
     | 
| 
      
 97 
     | 
    
         
            +
                          .members(
         
     | 
| 
      
 98 
     | 
    
         
            +
                            [
         
     | 
| 
      
 99 
     | 
    
         
            +
                              "svelte",
         
     | 
| 
      
 100 
     | 
    
         
            +
                              "ts",
         
     | 
| 
      
 101 
     | 
    
         
            +
                            ],
         
     | 
| 
      
 102 
     | 
    
         
            +
                          );
         
     | 
| 
      
 103 
     | 
    
         
            +
                        scopes
         
     | 
| 
      
 104 
     | 
    
         
            +
                          .indexOf("svelte")
         
     | 
| 
      
 105 
     | 
    
         
            +
                          .should.be
         
     | 
| 
      
 106 
     | 
    
         
            +
                          .greaterThan(
         
     | 
| 
      
 107 
     | 
    
         
            +
                            scopes
         
     | 
| 
      
 108 
     | 
    
         
            +
                              .indexOf("ts"),
         
     | 
| 
      
 109 
     | 
    
         
            +
                          );
         
     | 
| 
      
 110 
     | 
    
         
            +
                      },
         
     | 
| 
      
 111 
     | 
    
         
            +
                    );
         
     | 
| 
      
 112 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 113 
     | 
    
         
            +
                      "`ts` > `js`",
         
     | 
| 
      
 114 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 115 
     | 
    
         
            +
                        scopes
         
     | 
| 
      
 116 
     | 
    
         
            +
                          .should
         
     | 
| 
      
 117 
     | 
    
         
            +
                          .include
         
     | 
| 
      
 118 
     | 
    
         
            +
                          .members(
         
     | 
| 
      
 119 
     | 
    
         
            +
                            [
         
     | 
| 
      
 120 
     | 
    
         
            +
                              "ts",
         
     | 
| 
      
 121 
     | 
    
         
            +
                              "js",
         
     | 
| 
      
 122 
     | 
    
         
            +
                            ],
         
     | 
| 
      
 123 
     | 
    
         
            +
                          );
         
     | 
| 
      
 124 
     | 
    
         
            +
                        scopes
         
     | 
| 
      
 125 
     | 
    
         
            +
                          .indexOf("ts")
         
     | 
| 
      
 126 
     | 
    
         
            +
                          .should.be
         
     | 
| 
      
 127 
     | 
    
         
            +
                          .greaterThan(
         
     | 
| 
      
 128 
     | 
    
         
            +
                            scopes
         
     | 
| 
      
 129 
     | 
    
         
            +
                              .indexOf("js"),
         
     | 
| 
      
 130 
     | 
    
         
            +
                          );
         
     | 
| 
      
 131 
     | 
    
         
            +
                      },
         
     | 
| 
      
 132 
     | 
    
         
            +
                    );
         
     | 
| 
      
 133 
     | 
    
         
            +
                  },
         
     | 
| 
      
 134 
     | 
    
         
            +
                );
         
     | 
| 
      
 135 
     | 
    
         
            +
              },
         
     | 
| 
      
 136 
     | 
    
         
            +
            );
         
     | 
    
        package/src/scope/index.ts
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export { tree } from "./tree";
         
     | 
| 
       2 
     | 
    
         
            -
            export const scopes = [
         
     | 
| 
       3 
     | 
    
         
            -
              "js",
         
     | 
| 
       4 
     | 
    
         
            -
              "ts",
         
     | 
| 
       5 
     | 
    
         
            -
              "mocha",
         
     | 
| 
       6 
     | 
    
         
            -
              "svelte",
         
     | 
| 
       7 
     | 
    
         
            -
              "html",
         
     | 
| 
       8 
     | 
    
         
            -
              "css",
         
     | 
| 
       9 
     | 
    
         
            -
              "json",
         
     | 
| 
       10 
     | 
    
         
            -
              "jsonc",
         
     | 
| 
       11 
     | 
    
         
            -
              "jsoncc",
         
     | 
| 
       12 
     | 
    
         
            -
              "yml",
         
     | 
| 
       13 
     | 
    
         
            -
            ] as const,
         
     | 
| 
       14 
     | 
    
         
            -
            optional = ["svelte"] as const;
         
     | 
| 
      
 1 
     | 
    
         
            +
            export { tree } from "./tree";
         
     | 
| 
      
 2 
     | 
    
         
            +
            export const scopes = [
         
     | 
| 
      
 3 
     | 
    
         
            +
              "js",
         
     | 
| 
      
 4 
     | 
    
         
            +
              "ts",
         
     | 
| 
      
 5 
     | 
    
         
            +
              "mocha",
         
     | 
| 
      
 6 
     | 
    
         
            +
              "svelte",
         
     | 
| 
      
 7 
     | 
    
         
            +
              "html",
         
     | 
| 
      
 8 
     | 
    
         
            +
              "css",
         
     | 
| 
      
 9 
     | 
    
         
            +
              "json",
         
     | 
| 
      
 10 
     | 
    
         
            +
              "jsonc",
         
     | 
| 
      
 11 
     | 
    
         
            +
              "jsoncc",
         
     | 
| 
      
 12 
     | 
    
         
            +
              "yml",
         
     | 
| 
      
 13 
     | 
    
         
            +
            ] as const,
         
     | 
| 
      
 14 
     | 
    
         
            +
            optional = ["svelte"] as const;
         
     | 
    
        package/src/scope/tree.spec.ts
    CHANGED
    
    | 
         @@ -1,124 +1,124 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import "chai/register-should.js";
         
     | 
| 
       2 
     | 
    
         
            -
            import { tree } from "./tree";
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            const nodes = tree.map(([scope]) => scope);
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
            describe(
         
     | 
| 
       7 
     | 
    
         
            -
              "Tree",
         
     | 
| 
       8 
     | 
    
         
            -
              function () {
         
     | 
| 
       9 
     | 
    
         
            -
                describe(
         
     | 
| 
       10 
     | 
    
         
            -
                  "shape",
         
     | 
| 
       11 
     | 
    
         
            -
                  function () {
         
     | 
| 
       12 
     | 
    
         
            -
                    it(
         
     | 
| 
       13 
     | 
    
         
            -
                      "is an array",
         
     | 
| 
       14 
     | 
    
         
            -
                      function () {
         
     | 
| 
       15 
     | 
    
         
            -
                        tree
         
     | 
| 
       16 
     | 
    
         
            -
                          .should.be
         
     | 
| 
       17 
     | 
    
         
            -
                          .an("array");
         
     | 
| 
       18 
     | 
    
         
            -
                      },
         
     | 
| 
       19 
     | 
    
         
            -
                    );
         
     | 
| 
       20 
     | 
    
         
            -
                  },
         
     | 
| 
       21 
     | 
    
         
            -
                );
         
     | 
| 
       22 
     | 
    
         
            -
                describe(
         
     | 
| 
       23 
     | 
    
         
            -
                  "members",
         
     | 
| 
       24 
     | 
    
         
            -
                  function () {
         
     | 
| 
       25 
     | 
    
         
            -
                    it(
         
     | 
| 
       26 
     | 
    
         
            -
                      "are unique",
         
     | 
| 
       27 
     | 
    
         
            -
                      function () {
         
     | 
| 
       28 
     | 
    
         
            -
                        tree
         
     | 
| 
       29 
     | 
    
         
            -
                          .length
         
     | 
| 
       30 
     | 
    
         
            -
                          .should
         
     | 
| 
       31 
     | 
    
         
            -
                          .equal(
         
     | 
| 
       32 
     | 
    
         
            -
                            new Set(nodes)
         
     | 
| 
       33 
     | 
    
         
            -
                              .size,
         
     | 
| 
       34 
     | 
    
         
            -
                          );
         
     | 
| 
       35 
     | 
    
         
            -
                      },
         
     | 
| 
       36 
     | 
    
         
            -
                    );
         
     | 
| 
       37 
     | 
    
         
            -
                    it(
         
     | 
| 
       38 
     | 
    
         
            -
                      "omit `js`",
         
     | 
| 
       39 
     | 
    
         
            -
                      function () {
         
     | 
| 
       40 
     | 
    
         
            -
                        nodes
         
     | 
| 
       41 
     | 
    
         
            -
                          .should
         
     | 
| 
       42 
     | 
    
         
            -
                          .not.include
         
     | 
| 
       43 
     | 
    
         
            -
                          .members(["js"]);
         
     | 
| 
       44 
     | 
    
         
            -
                      },
         
     | 
| 
       45 
     | 
    
         
            -
                    );
         
     | 
| 
       46 
     | 
    
         
            -
                  },
         
     | 
| 
       47 
     | 
    
         
            -
                );
         
     | 
| 
       48 
     | 
    
         
            -
                describe(
         
     | 
| 
       49 
     | 
    
         
            -
                  "order",
         
     | 
| 
       50 
     | 
    
         
            -
                  function () {
         
     | 
| 
       51 
     | 
    
         
            -
                    it(
         
     | 
| 
       52 
     | 
    
         
            -
                      "`jsoncc` < [`jsonc`]?",
         
     | 
| 
       53 
     | 
    
         
            -
                      function () {
         
     | 
| 
       54 
     | 
    
         
            -
                        nodes
         
     | 
| 
       55 
     | 
    
         
            -
                          .should
         
     | 
| 
       56 
     | 
    
         
            -
                          .include
         
     | 
| 
       57 
     | 
    
         
            -
                          .members(["jsoncc"]);
         
     | 
| 
       58 
     | 
    
         
            -
                        nodes
         
     | 
| 
       59 
     | 
    
         
            -
                          .indexOf("jsoncc")
         
     | 
| 
       60 
     | 
    
         
            -
                          .should.be
         
     | 
| 
       61 
     | 
    
         
            -
                          .lessThan(
         
     | 
| 
       62 
     | 
    
         
            -
                            nodes.indexOf("jsonc") * tree.length,
         
     | 
| 
       63 
     | 
    
         
            -
                          );
         
     | 
| 
       64 
     | 
    
         
            -
                      },
         
     | 
| 
       65 
     | 
    
         
            -
                    );
         
     | 
| 
       66 
     | 
    
         
            -
                    it(
         
     | 
| 
       67 
     | 
    
         
            -
                      "`mocha` < `ts`",
         
     | 
| 
       68 
     | 
    
         
            -
                      function () {
         
     | 
| 
       69 
     | 
    
         
            -
                        nodes
         
     | 
| 
       70 
     | 
    
         
            -
                          .should
         
     | 
| 
       71 
     | 
    
         
            -
                          .include
         
     | 
| 
       72 
     | 
    
         
            -
                          .members(
         
     | 
| 
       73 
     | 
    
         
            -
                            [
         
     | 
| 
       74 
     | 
    
         
            -
                              "mocha",
         
     | 
| 
       75 
     | 
    
         
            -
                              "ts",
         
     | 
| 
       76 
     | 
    
         
            -
                            ],
         
     | 
| 
       77 
     | 
    
         
            -
                          );
         
     | 
| 
       78 
     | 
    
         
            -
                        nodes
         
     | 
| 
       79 
     | 
    
         
            -
                          .indexOf("mocha")
         
     | 
| 
       80 
     | 
    
         
            -
                          .should.be
         
     | 
| 
       81 
     | 
    
         
            -
                          .lessThan(
         
     | 
| 
       82 
     | 
    
         
            -
                            nodes
         
     | 
| 
       83 
     | 
    
         
            -
                              .indexOf("ts"),
         
     | 
| 
       84 
     | 
    
         
            -
                          );
         
     | 
| 
       85 
     | 
    
         
            -
                      },
         
     | 
| 
       86 
     | 
    
         
            -
                    );
         
     | 
| 
       87 
     | 
    
         
            -
                    it(
         
     | 
| 
       88 
     | 
    
         
            -
                      "`svelte` < `ts`",
         
     | 
| 
       89 
     | 
    
         
            -
                      function () {
         
     | 
| 
       90 
     | 
    
         
            -
                        nodes
         
     | 
| 
       91 
     | 
    
         
            -
                          .should
         
     | 
| 
       92 
     | 
    
         
            -
                          .include
         
     | 
| 
       93 
     | 
    
         
            -
                          .members(
         
     | 
| 
       94 
     | 
    
         
            -
                            [
         
     | 
| 
       95 
     | 
    
         
            -
                              "svelte",
         
     | 
| 
       96 
     | 
    
         
            -
                              "ts",
         
     | 
| 
       97 
     | 
    
         
            -
                            ],
         
     | 
| 
       98 
     | 
    
         
            -
                          );
         
     | 
| 
       99 
     | 
    
         
            -
                        nodes
         
     | 
| 
       100 
     | 
    
         
            -
                          .indexOf("svelte")
         
     | 
| 
       101 
     | 
    
         
            -
                          .should.be
         
     | 
| 
       102 
     | 
    
         
            -
                          .lessThan(
         
     | 
| 
       103 
     | 
    
         
            -
                            nodes
         
     | 
| 
       104 
     | 
    
         
            -
                              .indexOf("ts"),
         
     | 
| 
       105 
     | 
    
         
            -
                          );
         
     | 
| 
       106 
     | 
    
         
            -
                      },
         
     | 
| 
       107 
     | 
    
         
            -
                    );
         
     | 
| 
       108 
     | 
    
         
            -
                    it(
         
     | 
| 
       109 
     | 
    
         
            -
                      "`ts` is last",
         
     | 
| 
       110 
     | 
    
         
            -
                      function () {
         
     | 
| 
       111 
     | 
    
         
            -
                        nodes
         
     | 
| 
       112 
     | 
    
         
            -
                          .should
         
     | 
| 
       113 
     | 
    
         
            -
                          .include
         
     | 
| 
       114 
     | 
    
         
            -
                          .members(["ts"]);
         
     | 
| 
       115 
     | 
    
         
            -
                        nodes
         
     | 
| 
       116 
     | 
    
         
            -
                          .indexOf("ts")
         
     | 
| 
       117 
     | 
    
         
            -
                          .should
         
     | 
| 
       118 
     | 
    
         
            -
                          .equal(tree.length - 1);
         
     | 
| 
       119 
     | 
    
         
            -
                      },
         
     | 
| 
       120 
     | 
    
         
            -
                    );
         
     | 
| 
       121 
     | 
    
         
            -
                  },
         
     | 
| 
       122 
     | 
    
         
            -
                );
         
     | 
| 
       123 
     | 
    
         
            -
              },
         
     | 
| 
       124 
     | 
    
         
            -
            );
         
     | 
| 
      
 1 
     | 
    
         
            +
            import "chai/register-should.js";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { tree } from "./tree";
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            const nodes = tree.map(([scope]) => scope);
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            describe(
         
     | 
| 
      
 7 
     | 
    
         
            +
              "Tree",
         
     | 
| 
      
 8 
     | 
    
         
            +
              function () {
         
     | 
| 
      
 9 
     | 
    
         
            +
                describe(
         
     | 
| 
      
 10 
     | 
    
         
            +
                  "shape",
         
     | 
| 
      
 11 
     | 
    
         
            +
                  function () {
         
     | 
| 
      
 12 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 13 
     | 
    
         
            +
                      "is an array",
         
     | 
| 
      
 14 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 15 
     | 
    
         
            +
                        tree
         
     | 
| 
      
 16 
     | 
    
         
            +
                          .should.be
         
     | 
| 
      
 17 
     | 
    
         
            +
                          .an("array");
         
     | 
| 
      
 18 
     | 
    
         
            +
                      },
         
     | 
| 
      
 19 
     | 
    
         
            +
                    );
         
     | 
| 
      
 20 
     | 
    
         
            +
                  },
         
     | 
| 
      
 21 
     | 
    
         
            +
                );
         
     | 
| 
      
 22 
     | 
    
         
            +
                describe(
         
     | 
| 
      
 23 
     | 
    
         
            +
                  "members",
         
     | 
| 
      
 24 
     | 
    
         
            +
                  function () {
         
     | 
| 
      
 25 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 26 
     | 
    
         
            +
                      "are unique",
         
     | 
| 
      
 27 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 28 
     | 
    
         
            +
                        tree
         
     | 
| 
      
 29 
     | 
    
         
            +
                          .length
         
     | 
| 
      
 30 
     | 
    
         
            +
                          .should
         
     | 
| 
      
 31 
     | 
    
         
            +
                          .equal(
         
     | 
| 
      
 32 
     | 
    
         
            +
                            new Set(nodes)
         
     | 
| 
      
 33 
     | 
    
         
            +
                              .size,
         
     | 
| 
      
 34 
     | 
    
         
            +
                          );
         
     | 
| 
      
 35 
     | 
    
         
            +
                      },
         
     | 
| 
      
 36 
     | 
    
         
            +
                    );
         
     | 
| 
      
 37 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 38 
     | 
    
         
            +
                      "omit `js`",
         
     | 
| 
      
 39 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 40 
     | 
    
         
            +
                        nodes
         
     | 
| 
      
 41 
     | 
    
         
            +
                          .should
         
     | 
| 
      
 42 
     | 
    
         
            +
                          .not.include
         
     | 
| 
      
 43 
     | 
    
         
            +
                          .members(["js"]);
         
     | 
| 
      
 44 
     | 
    
         
            +
                      },
         
     | 
| 
      
 45 
     | 
    
         
            +
                    );
         
     | 
| 
      
 46 
     | 
    
         
            +
                  },
         
     | 
| 
      
 47 
     | 
    
         
            +
                );
         
     | 
| 
      
 48 
     | 
    
         
            +
                describe(
         
     | 
| 
      
 49 
     | 
    
         
            +
                  "order",
         
     | 
| 
      
 50 
     | 
    
         
            +
                  function () {
         
     | 
| 
      
 51 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 52 
     | 
    
         
            +
                      "`jsoncc` < [`jsonc`]?",
         
     | 
| 
      
 53 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 54 
     | 
    
         
            +
                        nodes
         
     | 
| 
      
 55 
     | 
    
         
            +
                          .should
         
     | 
| 
      
 56 
     | 
    
         
            +
                          .include
         
     | 
| 
      
 57 
     | 
    
         
            +
                          .members(["jsoncc"]);
         
     | 
| 
      
 58 
     | 
    
         
            +
                        nodes
         
     | 
| 
      
 59 
     | 
    
         
            +
                          .indexOf("jsoncc")
         
     | 
| 
      
 60 
     | 
    
         
            +
                          .should.be
         
     | 
| 
      
 61 
     | 
    
         
            +
                          .lessThan(
         
     | 
| 
      
 62 
     | 
    
         
            +
                            nodes.indexOf("jsonc") * tree.length,
         
     | 
| 
      
 63 
     | 
    
         
            +
                          );
         
     | 
| 
      
 64 
     | 
    
         
            +
                      },
         
     | 
| 
      
 65 
     | 
    
         
            +
                    );
         
     | 
| 
      
 66 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 67 
     | 
    
         
            +
                      "`mocha` < `ts`",
         
     | 
| 
      
 68 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 69 
     | 
    
         
            +
                        nodes
         
     | 
| 
      
 70 
     | 
    
         
            +
                          .should
         
     | 
| 
      
 71 
     | 
    
         
            +
                          .include
         
     | 
| 
      
 72 
     | 
    
         
            +
                          .members(
         
     | 
| 
      
 73 
     | 
    
         
            +
                            [
         
     | 
| 
      
 74 
     | 
    
         
            +
                              "mocha",
         
     | 
| 
      
 75 
     | 
    
         
            +
                              "ts",
         
     | 
| 
      
 76 
     | 
    
         
            +
                            ],
         
     | 
| 
      
 77 
     | 
    
         
            +
                          );
         
     | 
| 
      
 78 
     | 
    
         
            +
                        nodes
         
     | 
| 
      
 79 
     | 
    
         
            +
                          .indexOf("mocha")
         
     | 
| 
      
 80 
     | 
    
         
            +
                          .should.be
         
     | 
| 
      
 81 
     | 
    
         
            +
                          .lessThan(
         
     | 
| 
      
 82 
     | 
    
         
            +
                            nodes
         
     | 
| 
      
 83 
     | 
    
         
            +
                              .indexOf("ts"),
         
     | 
| 
      
 84 
     | 
    
         
            +
                          );
         
     | 
| 
      
 85 
     | 
    
         
            +
                      },
         
     | 
| 
      
 86 
     | 
    
         
            +
                    );
         
     | 
| 
      
 87 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 88 
     | 
    
         
            +
                      "`svelte` < `ts`",
         
     | 
| 
      
 89 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 90 
     | 
    
         
            +
                        nodes
         
     | 
| 
      
 91 
     | 
    
         
            +
                          .should
         
     | 
| 
      
 92 
     | 
    
         
            +
                          .include
         
     | 
| 
      
 93 
     | 
    
         
            +
                          .members(
         
     | 
| 
      
 94 
     | 
    
         
            +
                            [
         
     | 
| 
      
 95 
     | 
    
         
            +
                              "svelte",
         
     | 
| 
      
 96 
     | 
    
         
            +
                              "ts",
         
     | 
| 
      
 97 
     | 
    
         
            +
                            ],
         
     | 
| 
      
 98 
     | 
    
         
            +
                          );
         
     | 
| 
      
 99 
     | 
    
         
            +
                        nodes
         
     | 
| 
      
 100 
     | 
    
         
            +
                          .indexOf("svelte")
         
     | 
| 
      
 101 
     | 
    
         
            +
                          .should.be
         
     | 
| 
      
 102 
     | 
    
         
            +
                          .lessThan(
         
     | 
| 
      
 103 
     | 
    
         
            +
                            nodes
         
     | 
| 
      
 104 
     | 
    
         
            +
                              .indexOf("ts"),
         
     | 
| 
      
 105 
     | 
    
         
            +
                          );
         
     | 
| 
      
 106 
     | 
    
         
            +
                      },
         
     | 
| 
      
 107 
     | 
    
         
            +
                    );
         
     | 
| 
      
 108 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 109 
     | 
    
         
            +
                      "`ts` is last",
         
     | 
| 
      
 110 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 111 
     | 
    
         
            +
                        nodes
         
     | 
| 
      
 112 
     | 
    
         
            +
                          .should
         
     | 
| 
      
 113 
     | 
    
         
            +
                          .include
         
     | 
| 
      
 114 
     | 
    
         
            +
                          .members(["ts"]);
         
     | 
| 
      
 115 
     | 
    
         
            +
                        nodes
         
     | 
| 
      
 116 
     | 
    
         
            +
                          .indexOf("ts")
         
     | 
| 
      
 117 
     | 
    
         
            +
                          .should
         
     | 
| 
      
 118 
     | 
    
         
            +
                          .equal(tree.length - 1);
         
     | 
| 
      
 119 
     | 
    
         
            +
                      },
         
     | 
| 
      
 120 
     | 
    
         
            +
                    );
         
     | 
| 
      
 121 
     | 
    
         
            +
                  },
         
     | 
| 
      
 122 
     | 
    
         
            +
                );
         
     | 
| 
      
 123 
     | 
    
         
            +
              },
         
     | 
| 
      
 124 
     | 
    
         
            +
            );
         
     | 
    
        package/src/scope/tree.ts
    CHANGED
    
    | 
         @@ -1,22 +1,22 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export const tree = [
         
     | 
| 
       2 
     | 
    
         
            -
              [
         
     | 
| 
       3 
     | 
    
         
            -
                "jsoncc",
         
     | 
| 
       4 
     | 
    
         
            -
                ["jsonc"],
         
     | 
| 
       5 
     | 
    
         
            -
              ] as const,
         
     | 
| 
       6 
     | 
    
         
            -
              [
         
     | 
| 
       7 
     | 
    
         
            -
                "jsonc",
         
     | 
| 
       8 
     | 
    
         
            -
                ["json"],
         
     | 
| 
       9 
     | 
    
         
            -
              ] as const,
         
     | 
| 
       10 
     | 
    
         
            -
              [
         
     | 
| 
       11 
     | 
    
         
            -
                "mocha",
         
     | 
| 
       12 
     | 
    
         
            -
                ["ts"],
         
     | 
| 
       13 
     | 
    
         
            -
              ] as const,
         
     | 
| 
       14 
     | 
    
         
            -
              [
         
     | 
| 
       15 
     | 
    
         
            -
                "svelte",
         
     | 
| 
       16 
     | 
    
         
            -
                ["ts"],
         
     | 
| 
       17 
     | 
    
         
            -
              ] as const,
         
     | 
| 
       18 
     | 
    
         
            -
              [
         
     | 
| 
       19 
     | 
    
         
            -
                "ts",
         
     | 
| 
       20 
     | 
    
         
            -
                ["js"],
         
     | 
| 
       21 
     | 
    
         
            -
              ] as const,
         
     | 
| 
       22 
     | 
    
         
            -
            ];
         
     | 
| 
      
 1 
     | 
    
         
            +
            export const tree = [
         
     | 
| 
      
 2 
     | 
    
         
            +
              [
         
     | 
| 
      
 3 
     | 
    
         
            +
                "jsoncc",
         
     | 
| 
      
 4 
     | 
    
         
            +
                ["jsonc"],
         
     | 
| 
      
 5 
     | 
    
         
            +
              ] as const,
         
     | 
| 
      
 6 
     | 
    
         
            +
              [
         
     | 
| 
      
 7 
     | 
    
         
            +
                "jsonc",
         
     | 
| 
      
 8 
     | 
    
         
            +
                ["json"],
         
     | 
| 
      
 9 
     | 
    
         
            +
              ] as const,
         
     | 
| 
      
 10 
     | 
    
         
            +
              [
         
     | 
| 
      
 11 
     | 
    
         
            +
                "mocha",
         
     | 
| 
      
 12 
     | 
    
         
            +
                ["ts"],
         
     | 
| 
      
 13 
     | 
    
         
            +
              ] as const,
         
     | 
| 
      
 14 
     | 
    
         
            +
              [
         
     | 
| 
      
 15 
     | 
    
         
            +
                "svelte",
         
     | 
| 
      
 16 
     | 
    
         
            +
                ["ts"],
         
     | 
| 
      
 17 
     | 
    
         
            +
              ] as const,
         
     | 
| 
      
 18 
     | 
    
         
            +
              [
         
     | 
| 
      
 19 
     | 
    
         
            +
                "ts",
         
     | 
| 
      
 20 
     | 
    
         
            +
                ["js"],
         
     | 
| 
      
 21 
     | 
    
         
            +
              ] as const,
         
     | 
| 
      
 22 
     | 
    
         
            +
            ];
         
     | 
    
        package/src/settings/css.ts
    CHANGED
    
    | 
         @@ -1,8 +1,8 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            // DOC: https://github.com/eslint/css?tab=readme-ov-file#languages
         
     | 
| 
       2 
     | 
    
         
            -
            export default {
         
     | 
| 
       3 
     | 
    
         
            -
              languageOptions: {
         
     | 
| 
       4 
     | 
    
         
            -
                tolerant: false /* @default: true | INFO: https://github.com/eslint/css?tab=readme-ov-file#tolerant-mode */,
         
     | 
| 
       5 
     | 
    
         
            -
                // customSyntax: {} /* INFO: Tailwind: https://github.com/eslint/css?tab=readme-ov-file#configuring-tailwind-syntax | INFO: https://github.com/eslint/css?tab=readme-ov-file#configuring-custom-syntax */,
         
     | 
| 
       6 
     | 
    
         
            -
              },
         
     | 
| 
       7 
     | 
    
         
            -
              language: "css/css",
         
     | 
| 
       8 
     | 
    
         
            -
            };
         
     | 
| 
      
 1 
     | 
    
         
            +
            // DOC: https://github.com/eslint/css?tab=readme-ov-file#languages
         
     | 
| 
      
 2 
     | 
    
         
            +
            export default {
         
     | 
| 
      
 3 
     | 
    
         
            +
              languageOptions: {
         
     | 
| 
      
 4 
     | 
    
         
            +
                tolerant: false /* @default: true | INFO: https://github.com/eslint/css?tab=readme-ov-file#tolerant-mode */,
         
     | 
| 
      
 5 
     | 
    
         
            +
                // customSyntax: {} /* INFO: Tailwind: https://github.com/eslint/css?tab=readme-ov-file#configuring-tailwind-syntax | INFO: https://github.com/eslint/css?tab=readme-ov-file#configuring-custom-syntax */,
         
     | 
| 
      
 6 
     | 
    
         
            +
              },
         
     | 
| 
      
 7 
     | 
    
         
            +
              language: "css/css",
         
     | 
| 
      
 8 
     | 
    
         
            +
            };
         
     | 
    
        package/src/settings/html.ts
    CHANGED
    
    | 
         @@ -1,10 +1,10 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export default {
         
     | 
| 
       2 
     | 
    
         
            -
              languageOptions: {
         
     | 
| 
       3 
     | 
    
         
            -
                parser: "html" as const,
         
     | 
| 
       4 
     | 
    
         
            -
              },
         
     | 
| 
       5 
     | 
    
         
            -
              parserOptions: {
         
     | 
| 
       6 
     | 
    
         
            -
                // templateEngineSyntax: {} /* INFO: https://html-eslint.org/docs/integrating-template-engine */,
         
     | 
| 
       7 
     | 
    
         
            -
                frontmatter: true /* @default: false | INFO: https://html-eslint.org/docs/integrating-template-engine#skip-frontmatter */,
         
     | 
| 
       8 
     | 
    
         
            -
              },
         
     | 
| 
       9 
     | 
    
         
            -
              language: "html/html",
         
     | 
| 
       10 
     | 
    
         
            -
            };
         
     | 
| 
      
 1 
     | 
    
         
            +
            export default {
         
     | 
| 
      
 2 
     | 
    
         
            +
              languageOptions: {
         
     | 
| 
      
 3 
     | 
    
         
            +
                parser: "html" as const,
         
     | 
| 
      
 4 
     | 
    
         
            +
              },
         
     | 
| 
      
 5 
     | 
    
         
            +
              parserOptions: {
         
     | 
| 
      
 6 
     | 
    
         
            +
                // templateEngineSyntax: {} /* INFO: https://html-eslint.org/docs/integrating-template-engine */,
         
     | 
| 
      
 7 
     | 
    
         
            +
                frontmatter: true /* @default: false | INFO: https://html-eslint.org/docs/integrating-template-engine#skip-frontmatter */,
         
     | 
| 
      
 8 
     | 
    
         
            +
              },
         
     | 
| 
      
 9 
     | 
    
         
            +
              language: "html/html",
         
     | 
| 
      
 10 
     | 
    
         
            +
            };
         
     | 
    
        package/src/settings/index.ts
    CHANGED
    
    | 
         @@ -1,15 +1,15 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import ts from "./ts";
         
     | 
| 
       2 
     | 
    
         
            -
            import svelte from "./svelte";
         
     | 
| 
       3 
     | 
    
         
            -
            import html from "./html";
         
     | 
| 
       4 
     | 
    
         
            -
            import css from "./css";
         
     | 
| 
       5 
     | 
    
         
            -
            import json from "./json";
         
     | 
| 
       6 
     | 
    
         
            -
            import yml from "./yml";
         
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
            export default {
         
     | 
| 
       9 
     | 
    
         
            -
              ts,
         
     | 
| 
       10 
     | 
    
         
            -
              svelte,
         
     | 
| 
       11 
     | 
    
         
            -
              html,
         
     | 
| 
       12 
     | 
    
         
            -
              css,
         
     | 
| 
       13 
     | 
    
         
            -
              json,
         
     | 
| 
       14 
     | 
    
         
            -
              yml,
         
     | 
| 
       15 
     | 
    
         
            -
            };
         
     | 
| 
      
 1 
     | 
    
         
            +
            import ts from "./ts";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import svelte from "./svelte";
         
     | 
| 
      
 3 
     | 
    
         
            +
            import html from "./html";
         
     | 
| 
      
 4 
     | 
    
         
            +
            import css from "./css";
         
     | 
| 
      
 5 
     | 
    
         
            +
            import json from "./json";
         
     | 
| 
      
 6 
     | 
    
         
            +
            import yml from "./yml";
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            export default {
         
     | 
| 
      
 9 
     | 
    
         
            +
              ts,
         
     | 
| 
      
 10 
     | 
    
         
            +
              svelte,
         
     | 
| 
      
 11 
     | 
    
         
            +
              html,
         
     | 
| 
      
 12 
     | 
    
         
            +
              css,
         
     | 
| 
      
 13 
     | 
    
         
            +
              json,
         
     | 
| 
      
 14 
     | 
    
         
            +
              yml,
         
     | 
| 
      
 15 
     | 
    
         
            +
            };
         
     | 
    
        package/src/settings/json.ts
    CHANGED
    
    | 
         @@ -1,6 +1,6 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            export default {
         
     | 
| 
       2 
     | 
    
         
            -
              languageOptions: {
         
     | 
| 
       3 
     | 
    
         
            -
                allowTrailingCommas: true /* INFO: https://github.com/eslint/json?tab=readme-ov-file#allowing-trailing-commas-in-jsonc */,
         
     | 
| 
       4 
     | 
    
         
            -
              },
         
     | 
| 
       5 
     | 
    
         
            -
              language: "json/jsonc" /* INFO: `languageOptions.allowTrailingCommas` is only available on language `json/jsonc` */,
         
     | 
| 
       6 
     | 
    
         
            -
            };
         
     | 
| 
      
 1 
     | 
    
         
            +
            export default {
         
     | 
| 
      
 2 
     | 
    
         
            +
              languageOptions: {
         
     | 
| 
      
 3 
     | 
    
         
            +
                allowTrailingCommas: true /* INFO: https://github.com/eslint/json?tab=readme-ov-file#allowing-trailing-commas-in-jsonc */,
         
     | 
| 
      
 4 
     | 
    
         
            +
              },
         
     | 
| 
      
 5 
     | 
    
         
            +
              language: "json/jsonc" /* INFO: `languageOptions.allowTrailingCommas` is only available on language `json/jsonc` */,
         
     | 
| 
      
 6 
     | 
    
         
            +
            };
         
     |