linted 32.9.1 → 32.9.2-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.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
 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/imports/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/im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C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAA0wC,CAAC;mCAAwC,CAAC;yBAA8B,CAAC;;;;;;;;;;;2BAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;AAJtgN,wBAGE"}
         
     | 
| 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/imports/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,IAAI,MAAM,4BAA4B,CAAC;AAC9C,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,cAAc,CAAC;;kBAKH,OAAO,CAAC,OAAO,SAAS,CAAC;0BACT,OAAO,CAAC,OAAO,iBAAiB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 
     | 
| 
      
 1 
     | 
    
         
            +
            {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/imports/plugins.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,MAAM,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO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C;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;qBAAolB,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAA0wC,CAAC;+BAAwC,CAAC;qBAA8B,CAAC;;;;;;;;;;;uBAA8V,CAAC;;;;;;;;;;;;;;;;;;;;;;;AAZ/4L,wBAWE"}
         
     | 
    
        package/eslint.config.js
    CHANGED
    
    | 
         @@ -1,3 +1,3 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import linted from "linted";
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
            export default linted();
         
     | 
| 
      
 1 
     | 
    
         
            +
            import linted from "linted";
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            export default linted();
         
     | 
    
        package/package.json
    CHANGED
    
    | 
         @@ -1,101 +1,101 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            {
         
     | 
| 
       2 
     | 
    
         
            -
              "$pkg": "2211.6.0",
         
     | 
| 
       3 
     | 
    
         
            -
              "$schema": "https://json.schemastore.org/package",
         
     | 
| 
       4 
     | 
    
         
            -
              "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
         
     | 
| 
       5 
     | 
    
         
            -
              "name": "linted",
         
     | 
| 
       6 
     | 
    
         
            -
              "version": "32.9. 
     | 
| 
       7 
     | 
    
         
            -
              "repository": "github:jimmy-zhening-luo/linted",
         
     | 
| 
       8 
     | 
    
         
            -
              "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
         
     | 
| 
       9 
     | 
    
         
            -
              "keywords": [
         
     | 
| 
       10 
     | 
    
         
            -
                "eslint",
         
     | 
| 
       11 
     | 
    
         
            -
                "eslint-config",
         
     | 
| 
       12 
     | 
    
         
            -
                "eslint-plugin",
         
     | 
| 
       13 
     | 
    
         
            -
                "linter",
         
     | 
| 
       14 
     | 
    
         
            -
                "formatter",
         
     | 
| 
       15 
     | 
    
         
            -
                "typescript",
         
     | 
| 
       16 
     | 
    
         
            -
                "javascript",
         
     | 
| 
       17 
     | 
    
         
            -
                "stylistic",
         
     | 
| 
       18 
     | 
    
         
            -
                "svelte",
         
     | 
| 
       19 
     | 
    
         
            -
                "sveltekit",
         
     | 
| 
       20 
     | 
    
         
            -
                "html",
         
     | 
| 
       21 
     | 
    
         
            -
                "css",
         
     | 
| 
       22 
     | 
    
         
            -
                "mocha",
         
     | 
| 
       23 
     | 
    
         
            -
                "tailwindcss",
         
     | 
| 
       24 
     | 
    
         
            -
                "json",
         
     | 
| 
       25 
     | 
    
         
            -
                "jsonc",
         
     | 
| 
       26 
     | 
    
         
            -
                "yaml"
         
     | 
| 
       27 
     | 
    
         
            -
              ],
         
     | 
| 
       28 
     | 
    
         
            -
              "license": "MIT",
         
     | 
| 
       29 
     | 
    
         
            -
              "private": false,
         
     | 
| 
       30 
     | 
    
         
            -
              "engineStrict": true,
         
     | 
| 
       31 
     | 
    
         
            -
              "engines": {
         
     | 
| 
       32 
     | 
    
         
            -
                "node": "^22",
         
     | 
| 
       33 
     | 
    
         
            -
                "npm": "^10 || ^11"
         
     | 
| 
       34 
     | 
    
         
            -
              },
         
     | 
| 
       35 
     | 
    
         
            -
              "type": "module",
         
     | 
| 
       36 
     | 
    
         
            -
              "peerDependencies": {
         
     | 
| 
       37 
     | 
    
         
            -
                "eslint": "~9.38.0",
         
     | 
| 
       38 
     | 
    
         
            -
                "eslint-plugin-svelte": "~3.12.4",
         
     | 
| 
       39 
     | 
    
         
            -
                "mocha": "^11.7.4",
         
     | 
| 
       40 
     | 
    
         
            -
                "typescript": "^5.9.3"
         
     | 
| 
       41 
     | 
    
         
            -
              },
         
     | 
| 
       42 
     | 
    
         
            -
              "peerDependenciesMeta": {
         
     | 
| 
       43 
     | 
    
         
            -
                "eslint-plugin-svelte": {
         
     | 
| 
       44 
     | 
    
         
            -
                  "optional": true
         
     | 
| 
       45 
     | 
    
         
            -
                },
         
     | 
| 
       46 
     | 
    
         
            -
                "mocha": {
         
     | 
| 
       47 
     | 
    
         
            -
                  "optional": true
         
     | 
| 
       48 
     | 
    
         
            -
                },
         
     | 
| 
       49 
     | 
    
         
            -
                "typescript": {
         
     | 
| 
       50 
     | 
    
         
            -
                  "optional": true
         
     | 
| 
       51 
     | 
    
         
            -
                }
         
     | 
| 
       52 
     | 
    
         
            -
              },
         
     | 
| 
       53 
     | 
    
         
            -
              "dependencies": {
         
     | 
| 
       54 
     | 
    
         
            -
                "@eslint/css": "0.13.0",
         
     | 
| 
       55 
     | 
    
         
            -
                "@eslint/json": "0.13.2",
         
     | 
| 
       56 
     | 
    
         
            -
                "@eslinted/core": "28.0.1",
         
     | 
| 
       57 
     | 
    
         
            -
                "@eslinted/defaults": "16.0.1",
         
     | 
| 
       58 
     | 
    
         
            -
                "@html-eslint/eslint-plugin": "0.47.0",
         
     | 
| 
       59 
     | 
    
         
            -
                "@stylistic/eslint-plugin": "5.4.0",
         
     | 
| 
       60 
     | 
    
         
            -
                "eslint-plugin-chai-expect": "3.1.0",
         
     | 
| 
       61 
     | 
    
         
            -
                "eslint-plugin-chai-friendly": "1.1.0",
         
     | 
| 
       62 
     | 
    
         
            -
                "eslint-plugin-jsonc": "2.21.0",
         
     | 
| 
       63 
     | 
    
         
            -
                "eslint-plugin-mocha": "11.2.0",
         
     | 
| 
       64 
     | 
    
         
            -
                "eslint-plugin-yml": "1.19.0",
         
     | 
| 
       65 
     | 
    
         
            -
                "stylistic": "0.2.4",
         
     | 
| 
       66 
     | 
    
         
            -
                "typescript-eslint": "8.46.1"
         
     | 
| 
       67 
     | 
    
         
            -
              },
         
     | 
| 
       68 
     | 
    
         
            -
              "devDependencies": {
         
     | 
| 
       69 
     | 
    
         
            -
                "@types/chai": "^5.2.2",
         
     | 
| 
       70 
     | 
    
         
            -
                "@types/mocha": "^10.0.10",
         
     | 
| 
       71 
     | 
    
         
            -
                "chai": "^6.2.0",
         
     | 
| 
       72 
     | 
    
         
            -
                "mocha": "^11.7.4",
         
     | 
| 
       73 
     | 
    
         
            -
                "ts-add-js-extension": "^1.6.6",
         
     | 
| 
       74 
     | 
    
         
            -
                "typescript": "^5.9.3"
         
     | 
| 
       75 
     | 
    
         
            -
              },
         
     | 
| 
       76 
     | 
    
         
            -
              "main": "dist/index.js",
         
     | 
| 
       77 
     | 
    
         
            -
              "types": "dist/index.d.ts",
         
     | 
| 
       78 
     | 
    
         
            -
              "scripts": {
         
     | 
| 
       79 
     | 
    
         
            -
                "clean": "cmd --% /c \"(if exist dist rmdir /s /q dist) & (if exist build rmdir /s /q build) & (if exist .eslintcache del /f /q .eslintcache)\" || rm -rf dist build .eslintcache",
         
     | 
| 
       80 
     | 
    
         
            -
                "prebuild": "npm run clean",
         
     | 
| 
       81 
     | 
    
         
            -
                "build": "cmd /c \"(if exist svelte.config.js (npm run build:svelte) else (npm run build:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run build:svelte; else npm run build:ts; fi'",
         
     | 
| 
       82 
     | 
    
         
            -
                "build:ts": "tsc && ts-add-js-extension --dir=dist --showprogress=false",
         
     | 
| 
       83 
     | 
    
         
            -
                "build:svelte": "svelte-kit sync && svelte-check && vite build",
         
     | 
| 
       84 
     | 
    
         
            -
                "postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
         
     | 
| 
       85 
     | 
    
         
            -
                "lint": "eslint --cache --fix",
         
     | 
| 
       86 
     | 
    
         
            -
                "pretest": "npm run build",
         
     | 
| 
       87 
     | 
    
         
            -
                "test": "npm run --if-present test:runner",
         
     | 
| 
       88 
     | 
    
         
            -
                "test:runner": "mocha",
         
     | 
| 
       89 
     | 
    
         
            -
                "prestart": "npm run --ignore-scripts build",
         
     | 
| 
       90 
     | 
    
         
            -
                "start": "cmd --% /c \"(if exist svelte.config.js (npm run start:svelte) else (npm run start:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run start:svelte; else npm run start:ts; fi'",
         
     | 
| 
       91 
     | 
    
         
            -
                "start:ts": "node .",
         
     | 
| 
       92 
     | 
    
         
            -
                "start:svelte": "vite preview --open",
         
     | 
| 
       93 
     | 
    
         
            -
                "prepublishOnly": "npm test",
         
     | 
| 
       94 
     | 
    
         
            -
                "predeploy": "npm test",
         
     | 
| 
       95 
     | 
    
         
            -
                "deploy": ""
         
     | 
| 
       96 
     | 
    
         
            -
              },
         
     | 
| 
       97 
     | 
    
         
            -
              "publishConfig": {
         
     | 
| 
       98 
     | 
    
         
            -
                "tag": "next"
         
     | 
| 
       99 
     | 
    
         
            -
              },
         
     | 
| 
       100 
     | 
    
         
            -
              "author": "Jimmy Zhening Luo <jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
         
     | 
| 
       101 
     | 
    
         
            -
            }
         
     | 
| 
      
 1 
     | 
    
         
            +
            {
         
     | 
| 
      
 2 
     | 
    
         
            +
              "$pkg": "2211.6.0",
         
     | 
| 
      
 3 
     | 
    
         
            +
              "$schema": "https://json.schemastore.org/package",
         
     | 
| 
      
 4 
     | 
    
         
            +
              "$help": "https://docs.npmjs.com/cli/configuring-npm/package-json",
         
     | 
| 
      
 5 
     | 
    
         
            +
              "name": "linted",
         
     | 
| 
      
 6 
     | 
    
         
            +
              "version": "32.9.2-rc.0",
         
     | 
| 
      
 7 
     | 
    
         
            +
              "repository": "github:jimmy-zhening-luo/linted",
         
     | 
| 
      
 8 
     | 
    
         
            +
              "description": "ESLint mono-plugin bundler with strict, opinionated defaults for (Stylistic) JavaScript, TypeScript, Svelte, HTML, Tailwind/CSS, JSON, JSONC, YAML, and Mocha.",
         
     | 
| 
      
 9 
     | 
    
         
            +
              "keywords": [
         
     | 
| 
      
 10 
     | 
    
         
            +
                "eslint",
         
     | 
| 
      
 11 
     | 
    
         
            +
                "eslint-config",
         
     | 
| 
      
 12 
     | 
    
         
            +
                "eslint-plugin",
         
     | 
| 
      
 13 
     | 
    
         
            +
                "linter",
         
     | 
| 
      
 14 
     | 
    
         
            +
                "formatter",
         
     | 
| 
      
 15 
     | 
    
         
            +
                "typescript",
         
     | 
| 
      
 16 
     | 
    
         
            +
                "javascript",
         
     | 
| 
      
 17 
     | 
    
         
            +
                "stylistic",
         
     | 
| 
      
 18 
     | 
    
         
            +
                "svelte",
         
     | 
| 
      
 19 
     | 
    
         
            +
                "sveltekit",
         
     | 
| 
      
 20 
     | 
    
         
            +
                "html",
         
     | 
| 
      
 21 
     | 
    
         
            +
                "css",
         
     | 
| 
      
 22 
     | 
    
         
            +
                "mocha",
         
     | 
| 
      
 23 
     | 
    
         
            +
                "tailwindcss",
         
     | 
| 
      
 24 
     | 
    
         
            +
                "json",
         
     | 
| 
      
 25 
     | 
    
         
            +
                "jsonc",
         
     | 
| 
      
 26 
     | 
    
         
            +
                "yaml"
         
     | 
| 
      
 27 
     | 
    
         
            +
              ],
         
     | 
| 
      
 28 
     | 
    
         
            +
              "license": "MIT",
         
     | 
| 
      
 29 
     | 
    
         
            +
              "private": false,
         
     | 
| 
      
 30 
     | 
    
         
            +
              "engineStrict": true,
         
     | 
| 
      
 31 
     | 
    
         
            +
              "engines": {
         
     | 
| 
      
 32 
     | 
    
         
            +
                "node": "^22",
         
     | 
| 
      
 33 
     | 
    
         
            +
                "npm": "^10 || ^11"
         
     | 
| 
      
 34 
     | 
    
         
            +
              },
         
     | 
| 
      
 35 
     | 
    
         
            +
              "type": "module",
         
     | 
| 
      
 36 
     | 
    
         
            +
              "peerDependencies": {
         
     | 
| 
      
 37 
     | 
    
         
            +
                "eslint": "~9.38.0",
         
     | 
| 
      
 38 
     | 
    
         
            +
                "eslint-plugin-svelte": "~3.12.4",
         
     | 
| 
      
 39 
     | 
    
         
            +
                "mocha": "^11.7.4",
         
     | 
| 
      
 40 
     | 
    
         
            +
                "typescript": "^5.9.3"
         
     | 
| 
      
 41 
     | 
    
         
            +
              },
         
     | 
| 
      
 42 
     | 
    
         
            +
              "peerDependenciesMeta": {
         
     | 
| 
      
 43 
     | 
    
         
            +
                "eslint-plugin-svelte": {
         
     | 
| 
      
 44 
     | 
    
         
            +
                  "optional": true
         
     | 
| 
      
 45 
     | 
    
         
            +
                },
         
     | 
| 
      
 46 
     | 
    
         
            +
                "mocha": {
         
     | 
| 
      
 47 
     | 
    
         
            +
                  "optional": true
         
     | 
| 
      
 48 
     | 
    
         
            +
                },
         
     | 
| 
      
 49 
     | 
    
         
            +
                "typescript": {
         
     | 
| 
      
 50 
     | 
    
         
            +
                  "optional": true
         
     | 
| 
      
 51 
     | 
    
         
            +
                }
         
     | 
| 
      
 52 
     | 
    
         
            +
              },
         
     | 
| 
      
 53 
     | 
    
         
            +
              "dependencies": {
         
     | 
| 
      
 54 
     | 
    
         
            +
                "@eslint/css": "0.13.0",
         
     | 
| 
      
 55 
     | 
    
         
            +
                "@eslint/json": "0.13.2",
         
     | 
| 
      
 56 
     | 
    
         
            +
                "@eslinted/core": "28.0.1",
         
     | 
| 
      
 57 
     | 
    
         
            +
                "@eslinted/defaults": "16.0.1",
         
     | 
| 
      
 58 
     | 
    
         
            +
                "@html-eslint/eslint-plugin": "0.47.0",
         
     | 
| 
      
 59 
     | 
    
         
            +
                "@stylistic/eslint-plugin": "5.4.0",
         
     | 
| 
      
 60 
     | 
    
         
            +
                "eslint-plugin-chai-expect": "3.1.0",
         
     | 
| 
      
 61 
     | 
    
         
            +
                "eslint-plugin-chai-friendly": "1.1.0",
         
     | 
| 
      
 62 
     | 
    
         
            +
                "eslint-plugin-jsonc": "2.21.0",
         
     | 
| 
      
 63 
     | 
    
         
            +
                "eslint-plugin-mocha": "11.2.0",
         
     | 
| 
      
 64 
     | 
    
         
            +
                "eslint-plugin-yml": "1.19.0",
         
     | 
| 
      
 65 
     | 
    
         
            +
                "stylistic": "0.2.4",
         
     | 
| 
      
 66 
     | 
    
         
            +
                "typescript-eslint": "8.46.1"
         
     | 
| 
      
 67 
     | 
    
         
            +
              },
         
     | 
| 
      
 68 
     | 
    
         
            +
              "devDependencies": {
         
     | 
| 
      
 69 
     | 
    
         
            +
                "@types/chai": "^5.2.2",
         
     | 
| 
      
 70 
     | 
    
         
            +
                "@types/mocha": "^10.0.10",
         
     | 
| 
      
 71 
     | 
    
         
            +
                "chai": "^6.2.0",
         
     | 
| 
      
 72 
     | 
    
         
            +
                "mocha": "^11.7.4",
         
     | 
| 
      
 73 
     | 
    
         
            +
                "ts-add-js-extension": "^1.6.6",
         
     | 
| 
      
 74 
     | 
    
         
            +
                "typescript": "^5.9.3"
         
     | 
| 
      
 75 
     | 
    
         
            +
              },
         
     | 
| 
      
 76 
     | 
    
         
            +
              "main": "dist/index.js",
         
     | 
| 
      
 77 
     | 
    
         
            +
              "types": "dist/index.d.ts",
         
     | 
| 
      
 78 
     | 
    
         
            +
              "scripts": {
         
     | 
| 
      
 79 
     | 
    
         
            +
                "clean": "cmd --% /c \"(if exist dist rmdir /s /q dist) & (if exist build rmdir /s /q build) & (if exist .eslintcache del /f /q .eslintcache)\" || rm -rf dist build .eslintcache",
         
     | 
| 
      
 80 
     | 
    
         
            +
                "prebuild": "npm run clean",
         
     | 
| 
      
 81 
     | 
    
         
            +
                "build": "cmd /c \"(if exist svelte.config.js (npm run build:svelte) else (npm run build:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run build:svelte; else npm run build:ts; fi'",
         
     | 
| 
      
 82 
     | 
    
         
            +
                "build:ts": "tsc && ts-add-js-extension --dir=dist --showprogress=false",
         
     | 
| 
      
 83 
     | 
    
         
            +
                "build:svelte": "svelte-kit sync && svelte-check && vite build",
         
     | 
| 
      
 84 
     | 
    
         
            +
                "postbuild": "npm run lint || echo \"Lint failed. Continuing...\"",
         
     | 
| 
      
 85 
     | 
    
         
            +
                "lint": "eslint --cache --fix",
         
     | 
| 
      
 86 
     | 
    
         
            +
                "pretest": "npm run build",
         
     | 
| 
      
 87 
     | 
    
         
            +
                "test": "npm run --if-present test:runner",
         
     | 
| 
      
 88 
     | 
    
         
            +
                "test:runner": "mocha",
         
     | 
| 
      
 89 
     | 
    
         
            +
                "prestart": "npm run --ignore-scripts build",
         
     | 
| 
      
 90 
     | 
    
         
            +
                "start": "cmd --% /c \"(if exist svelte.config.js (npm run start:svelte) else (npm run start:ts))\" || bash -c 'if [ -f svelte.config.js ]; then npm run start:svelte; else npm run start:ts; fi'",
         
     | 
| 
      
 91 
     | 
    
         
            +
                "start:ts": "node .",
         
     | 
| 
      
 92 
     | 
    
         
            +
                "start:svelte": "vite preview --open",
         
     | 
| 
      
 93 
     | 
    
         
            +
                "prepublishOnly": "npm test",
         
     | 
| 
      
 94 
     | 
    
         
            +
                "predeploy": "npm test",
         
     | 
| 
      
 95 
     | 
    
         
            +
                "deploy": ""
         
     | 
| 
      
 96 
     | 
    
         
            +
              },
         
     | 
| 
      
 97 
     | 
    
         
            +
              "publishConfig": {
         
     | 
| 
      
 98 
     | 
    
         
            +
                "tag": "next"
         
     | 
| 
      
 99 
     | 
    
         
            +
              },
         
     | 
| 
      
 100 
     | 
    
         
            +
              "author": "Jimmy Zhening Luo <jimmy-zhening-luo@users.noreply.github.com> (https://jimm.my/)"
         
     | 
| 
      
 101 
     | 
    
         
            +
            }
         
     | 
    
        package/src/imports/index.ts
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import parsers from "./parsers";
         
     | 
| 
       2 
     | 
    
         
            -
            import plugins from "./plugins";
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            export default {
         
     | 
| 
       5 
     | 
    
         
            -
              parsers,
         
     | 
| 
       6 
     | 
    
         
            -
              plugins,
         
     | 
| 
       7 
     | 
    
         
            -
            };
         
     | 
| 
      
 1 
     | 
    
         
            +
            import parsers from "./parsers";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import plugins from "./plugins";
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            export default {
         
     | 
| 
      
 5 
     | 
    
         
            +
              parsers,
         
     | 
| 
      
 6 
     | 
    
         
            +
              plugins,
         
     | 
| 
      
 7 
     | 
    
         
            +
            };
         
     | 
    
        package/src/imports/parsers.ts
    CHANGED
    
    | 
         @@ -1,9 +1,9 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import { parser as ts } from "typescript-eslint";
         
     | 
| 
       2 
     | 
    
         
            -
            import html from "@html-eslint/parser";
         
     | 
| 
       3 
     | 
    
         
            -
            import yml from "yaml-eslint-parser";
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
            export default {
         
     | 
| 
       6 
     | 
    
         
            -
              ts: ts as NoInfer<typeof ts>,
         
     | 
| 
       7 
     | 
    
         
            -
              html,
         
     | 
| 
       8 
     | 
    
         
            -
              yml,
         
     | 
| 
       9 
     | 
    
         
            -
            };
         
     | 
| 
      
 1 
     | 
    
         
            +
            import { parser as ts } from "typescript-eslint";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import html from "@html-eslint/parser";
         
     | 
| 
      
 3 
     | 
    
         
            +
            import yml from "yaml-eslint-parser";
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            export default {
         
     | 
| 
      
 6 
     | 
    
         
            +
              ts: ts as NoInfer<typeof ts>,
         
     | 
| 
      
 7 
     | 
    
         
            +
              html,
         
     | 
| 
      
 8 
     | 
    
         
            +
              yml,
         
     | 
| 
      
 9 
     | 
    
         
            +
            };
         
     | 
    
        package/src/imports/plugins.ts
    CHANGED
    
    | 
         @@ -1,23 +1,23 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import stylistic from "@stylistic/eslint-plugin";
         
     | 
| 
       2 
     | 
    
         
            -
            import { plugin as typescript_eslint } from "typescript-eslint";
         
     | 
| 
       3 
     | 
    
         
            -
            import mocha from "eslint-plugin-mocha";
         
     | 
| 
       4 
     | 
    
         
            -
            import chai_friendly from "eslint-plugin-chai-friendly";
         
     | 
| 
       5 
     | 
    
         
            -
            import chai_expect from "eslint-plugin-chai-expect";
         
     | 
| 
       6 
     | 
    
         
            -
            import html from "@html-eslint/eslint-plugin";
         
     | 
| 
       7 
     | 
    
         
            -
            import css from "@eslint/css";
         
     | 
| 
       8 
     | 
    
         
            -
            import json from "@eslint/json";
         
     | 
| 
       9 
     | 
    
         
            -
            import jsonc from "eslint-plugin-jsonc";
         
     | 
| 
       10 
     | 
    
         
            -
            import yml from "eslint-plugin-yml";
         
     | 
| 
       11 
     | 
    
         
            -
             
     | 
| 
       12 
     | 
    
         
            -
            export default {
         
     | 
| 
       13 
     | 
    
         
            -
              "@stylistic": stylistic as NoInfer<typeof stylistic>,
         
     | 
| 
       14 
     | 
    
         
            -
              "@typescript-eslint": typescript_eslint as NoInfer<typeof typescript_eslint>,
         
     | 
| 
       15 
     | 
    
         
            -
              mocha,
         
     | 
| 
       16 
     | 
    
         
            -
              "chai-friendly": chai_friendly,
         
     | 
| 
       17 
     | 
    
         
            -
              "chai-expect": chai_expect,
         
     | 
| 
       18 
     | 
    
         
            -
              html,
         
     | 
| 
       19 
     | 
    
         
            -
              css,
         
     | 
| 
       20 
     | 
    
         
            -
              json,
         
     | 
| 
       21 
     | 
    
         
            -
              jsonc,
         
     | 
| 
       22 
     | 
    
         
            -
              yml,
         
     | 
| 
       23 
     | 
    
         
            -
            };
         
     | 
| 
      
 1 
     | 
    
         
            +
            import stylistic from "@stylistic/eslint-plugin";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import { plugin as typescript_eslint } from "typescript-eslint";
         
     | 
| 
      
 3 
     | 
    
         
            +
            import mocha from "eslint-plugin-mocha";
         
     | 
| 
      
 4 
     | 
    
         
            +
            import chai_friendly from "eslint-plugin-chai-friendly";
         
     | 
| 
      
 5 
     | 
    
         
            +
            import chai_expect from "eslint-plugin-chai-expect";
         
     | 
| 
      
 6 
     | 
    
         
            +
            import html from "@html-eslint/eslint-plugin";
         
     | 
| 
      
 7 
     | 
    
         
            +
            import css from "@eslint/css";
         
     | 
| 
      
 8 
     | 
    
         
            +
            import json from "@eslint/json";
         
     | 
| 
      
 9 
     | 
    
         
            +
            import jsonc from "eslint-plugin-jsonc";
         
     | 
| 
      
 10 
     | 
    
         
            +
            import yml from "eslint-plugin-yml";
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            export default {
         
     | 
| 
      
 13 
     | 
    
         
            +
              "@stylistic": stylistic as NoInfer<typeof stylistic>,
         
     | 
| 
      
 14 
     | 
    
         
            +
              "@typescript-eslint": typescript_eslint as NoInfer<typeof typescript_eslint>,
         
     | 
| 
      
 15 
     | 
    
         
            +
              mocha,
         
     | 
| 
      
 16 
     | 
    
         
            +
              "chai-friendly": chai_friendly,
         
     | 
| 
      
 17 
     | 
    
         
            +
              "chai-expect": chai_expect,
         
     | 
| 
      
 18 
     | 
    
         
            +
              html,
         
     | 
| 
      
 19 
     | 
    
         
            +
              css,
         
     | 
| 
      
 20 
     | 
    
         
            +
              json,
         
     | 
| 
      
 21 
     | 
    
         
            +
              jsonc,
         
     | 
| 
      
 22 
     | 
    
         
            +
              yml,
         
     | 
| 
      
 23 
     | 
    
         
            +
            };
         
     | 
    
        package/src/index.spec.ts
    CHANGED
    
    | 
         @@ -1,37 +1,37 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import "chai/register-should.js";
         
     | 
| 
       2 
     | 
    
         
            -
            import linted from ".";
         
     | 
| 
       3 
     | 
    
         
            -
             
     | 
| 
       4 
     | 
    
         
            -
            const configs = linted();
         
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
            describe(
         
     | 
| 
       7 
     | 
    
         
            -
              "linted",
         
     | 
| 
       8 
     | 
    
         
            -
              function () {
         
     | 
| 
       9 
     | 
    
         
            -
                describe(
         
     | 
| 
       10 
     | 
    
         
            -
                  "shape",
         
     | 
| 
       11 
     | 
    
         
            -
                  function () {
         
     | 
| 
       12 
     | 
    
         
            -
                    it(
         
     | 
| 
       13 
     | 
    
         
            -
                      "is a function",
         
     | 
| 
       14 
     | 
    
         
            -
                      function () {
         
     | 
| 
       15 
     | 
    
         
            -
                        linted
         
     | 
| 
       16 
     | 
    
         
            -
                          .should.be
         
     | 
| 
       17 
     | 
    
         
            -
                          .a("function");
         
     | 
| 
       18 
     | 
    
         
            -
                      },
         
     | 
| 
       19 
     | 
    
         
            -
                    );
         
     | 
| 
       20 
     | 
    
         
            -
                  },
         
     | 
| 
       21 
     | 
    
         
            -
                );
         
     | 
| 
       22 
     | 
    
         
            -
                describe(
         
     | 
| 
       23 
     | 
    
         
            -
                  "output",
         
     | 
| 
       24 
     | 
    
         
            -
                  function () {
         
     | 
| 
       25 
     | 
    
         
            -
                    it(
         
     | 
| 
       26 
     | 
    
         
            -
                      "is a non-empty array",
         
     | 
| 
       27 
     | 
    
         
            -
                      function () {
         
     | 
| 
       28 
     | 
    
         
            -
                        configs
         
     | 
| 
       29 
     | 
    
         
            -
                          .should.be
         
     | 
| 
       30 
     | 
    
         
            -
                          .an("array")
         
     | 
| 
       31 
     | 
    
         
            -
                          .not.empty;
         
     | 
| 
       32 
     | 
    
         
            -
                      },
         
     | 
| 
       33 
     | 
    
         
            -
                    );
         
     | 
| 
       34 
     | 
    
         
            -
                  },
         
     | 
| 
       35 
     | 
    
         
            -
                );
         
     | 
| 
       36 
     | 
    
         
            -
              },
         
     | 
| 
       37 
     | 
    
         
            -
            );
         
     | 
| 
      
 1 
     | 
    
         
            +
            import "chai/register-should.js";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import linted from ".";
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            const configs = linted();
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
            describe(
         
     | 
| 
      
 7 
     | 
    
         
            +
              "linted",
         
     | 
| 
      
 8 
     | 
    
         
            +
              function () {
         
     | 
| 
      
 9 
     | 
    
         
            +
                describe(
         
     | 
| 
      
 10 
     | 
    
         
            +
                  "shape",
         
     | 
| 
      
 11 
     | 
    
         
            +
                  function () {
         
     | 
| 
      
 12 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 13 
     | 
    
         
            +
                      "is a function",
         
     | 
| 
      
 14 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 15 
     | 
    
         
            +
                        linted
         
     | 
| 
      
 16 
     | 
    
         
            +
                          .should.be
         
     | 
| 
      
 17 
     | 
    
         
            +
                          .a("function");
         
     | 
| 
      
 18 
     | 
    
         
            +
                      },
         
     | 
| 
      
 19 
     | 
    
         
            +
                    );
         
     | 
| 
      
 20 
     | 
    
         
            +
                  },
         
     | 
| 
      
 21 
     | 
    
         
            +
                );
         
     | 
| 
      
 22 
     | 
    
         
            +
                describe(
         
     | 
| 
      
 23 
     | 
    
         
            +
                  "output",
         
     | 
| 
      
 24 
     | 
    
         
            +
                  function () {
         
     | 
| 
      
 25 
     | 
    
         
            +
                    it(
         
     | 
| 
      
 26 
     | 
    
         
            +
                      "is a non-empty array",
         
     | 
| 
      
 27 
     | 
    
         
            +
                      function () {
         
     | 
| 
      
 28 
     | 
    
         
            +
                        configs
         
     | 
| 
      
 29 
     | 
    
         
            +
                          .should.be
         
     | 
| 
      
 30 
     | 
    
         
            +
                          .an("array")
         
     | 
| 
      
 31 
     | 
    
         
            +
                          .not.empty;
         
     | 
| 
      
 32 
     | 
    
         
            +
                      },
         
     | 
| 
      
 33 
     | 
    
         
            +
                    );
         
     | 
| 
      
 34 
     | 
    
         
            +
                  },
         
     | 
| 
      
 35 
     | 
    
         
            +
                );
         
     | 
| 
      
 36 
     | 
    
         
            +
              },
         
     | 
| 
      
 37 
     | 
    
         
            +
            );
         
     | 
    
        package/src/index.ts
    CHANGED
    
    | 
         @@ -1,25 +1,25 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            import Core from "@eslinted/core";
         
     | 
| 
       2 
     | 
    
         
            -
            import {
         
     | 
| 
       3 
     | 
    
         
            -
              scopes,
         
     | 
| 
       4 
     | 
    
         
            -
              optional,
         
     | 
| 
       5 
     | 
    
         
            -
              tree,
         
     | 
| 
       6 
     | 
    
         
            -
            } from "./scope";
         
     | 
| 
       7 
     | 
    
         
            -
            import imports from "./imports";
         
     | 
| 
       8 
     | 
    
         
            -
            import settings from "./settings";
         
     | 
| 
       9 
     | 
    
         
            -
            import defaults from "@eslinted/defaults";
         
     | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
            export default function (
         
     | 
| 
       12 
     | 
    
         
            -
              extensions: Parameters<typeof Core>[5]["extensions"] = {},
         
     | 
| 
       13 
     | 
    
         
            -
            ) {
         
     | 
| 
       14 
     | 
    
         
            -
              return Core(
         
     | 
| 
       15 
     | 
    
         
            -
                scopes,
         
     | 
| 
       16 
     | 
    
         
            -
                optional,
         
     | 
| 
       17 
     | 
    
         
            -
                tree,
         
     | 
| 
       18 
     | 
    
         
            -
                imports,
         
     | 
| 
       19 
     | 
    
         
            -
                settings,
         
     | 
| 
       20 
     | 
    
         
            -
                {
         
     | 
| 
       21 
     | 
    
         
            -
                  defaults,
         
     | 
| 
       22 
     | 
    
         
            -
                  extensions,
         
     | 
| 
       23 
     | 
    
         
            -
                },
         
     | 
| 
       24 
     | 
    
         
            -
              );
         
     | 
| 
       25 
     | 
    
         
            -
            }
         
     | 
| 
      
 1 
     | 
    
         
            +
            import Core from "@eslinted/core";
         
     | 
| 
      
 2 
     | 
    
         
            +
            import {
         
     | 
| 
      
 3 
     | 
    
         
            +
              scopes,
         
     | 
| 
      
 4 
     | 
    
         
            +
              optional,
         
     | 
| 
      
 5 
     | 
    
         
            +
              tree,
         
     | 
| 
      
 6 
     | 
    
         
            +
            } from "./scope";
         
     | 
| 
      
 7 
     | 
    
         
            +
            import imports from "./imports";
         
     | 
| 
      
 8 
     | 
    
         
            +
            import settings from "./settings";
         
     | 
| 
      
 9 
     | 
    
         
            +
            import defaults from "@eslinted/defaults";
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            export default function (
         
     | 
| 
      
 12 
     | 
    
         
            +
              extensions: Parameters<typeof Core>[5]["extensions"] = {},
         
     | 
| 
      
 13 
     | 
    
         
            +
            ) {
         
     | 
| 
      
 14 
     | 
    
         
            +
              return Core(
         
     | 
| 
      
 15 
     | 
    
         
            +
                scopes,
         
     | 
| 
      
 16 
     | 
    
         
            +
                optional,
         
     | 
| 
      
 17 
     | 
    
         
            +
                tree,
         
     | 
| 
      
 18 
     | 
    
         
            +
                imports,
         
     | 
| 
      
 19 
     | 
    
         
            +
                settings,
         
     | 
| 
      
 20 
     | 
    
         
            +
                {
         
     | 
| 
      
 21 
     | 
    
         
            +
                  defaults,
         
     | 
| 
      
 22 
     | 
    
         
            +
                  extensions,
         
     | 
| 
      
 23 
     | 
    
         
            +
                },
         
     | 
| 
      
 24 
     | 
    
         
            +
              );
         
     | 
| 
      
 25 
     | 
    
         
            +
            }
         
     |