diff --git a/package.json b/package.json index 389dff0..1013fbd 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "prettier": "^2.4.1", "prettier-plugin-jsdoc": "^0.3.24", "prettier-plugin-packagejson": "^2.2.13", + "prettier-plugin-toml": "^0.3.1", "sort-package-json": "github:aminya/sort-package-json" }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e6c7fd8..20b8241 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,11 +9,13 @@ importers: prettier: ^2.4.1 prettier-plugin-jsdoc: ^0.3.24 prettier-plugin-packagejson: ^2.2.13 + prettier-plugin-toml: ^0.3.1 sort-package-json: github:aminya/sort-package-json dependencies: prettier: 2.4.1 prettier-plugin-jsdoc: 0.3.24_prettier@2.4.1 prettier-plugin-packagejson: 2.2.13_prettier@2.4.1 + prettier-plugin-toml: 0.3.1 sort-package-json: github.com/aminya/sort-package-json/076051b58be7b198732d1ce2b9a415ccd0c63a97 devDependencies: eslint: 7.32.0 @@ -323,6 +325,19 @@ packages: '@nodelib/fs.scandir': 2.1.4 fastq: 1.11.0 + /@toml-tools/lexer/0.3.1: + resolution: {integrity: sha512-CCKHQb5OWpgFu47MQ2rcql4AnE9GaehNk/c1oJOyOBovED6XmdzQPXsvPSu+NJ9lToqJNoX+nLXQsB8WyQGdzQ==} + dependencies: + chevrotain: 4.1.1 + dev: false + + /@toml-tools/parser/0.3.1: + resolution: {integrity: sha512-vadwVx5TkgByt19dbp/rfIUKPkDdn5werANYvziiGK9wHlqPA0BWnvOloQw/dPDxF31+Ag0+zarXJpPDdRsPPg==} + dependencies: + '@toml-tools/lexer': 0.3.1 + chevrotain: 4.1.1 + dev: false + /@types/glob/7.1.4: resolution: {integrity: sha512-w+LsMxKyYQm347Otw+IfBXOv9UWVjpHpCDdbBMt8Kz/xbvCYNjP+0qPh91Km3iKfSRLBB0P7fAMf0KHrPu+MyA==} dependencies: @@ -755,6 +770,12 @@ packages: resolution: {integrity: sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==} dev: false + /chevrotain/4.1.1: + resolution: {integrity: sha512-NQky1HQyiAzxsxpq4Ppt47SYO2U3JLtmfs85QPf3kYSzGBjjp5AA8kqjH8hCjGFRpaQ781QOk1ragQIOkBgUTA==} + dependencies: + regexp-to-ast: 0.3.5 + dev: false + /cli/1.0.1: resolution: {integrity: sha1-IoF1NPJL+klQw01TLUjsvGIbjBQ=} engines: {node: '>=0.2.5'} @@ -2299,6 +2320,19 @@ packages: sort-package-json: 1.52.0 dev: false + /prettier-plugin-toml/0.3.1: + resolution: {integrity: sha512-j47DEO/dN/acU1nSL/B7q4A4Z2SYJhpWPCLPkcmfAXIQC6A5GD6Ao/bi9HRHZ8ueIDOauqjuAQbnvRxLXMjazA==} + dependencies: + '@toml-tools/parser': 0.3.1 + prettier: 1.19.1 + dev: false + + /prettier/1.19.1: + resolution: {integrity: sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==} + engines: {node: '>=4'} + hasBin: true + dev: false + /prettier/2.4.1: resolution: {integrity: sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==} engines: {node: '>=10.13.0'} @@ -2363,6 +2397,10 @@ packages: resolution: {integrity: sha512-a54FxoJDIr27pgf7IgeQGxmqUNYrcV338lf/6gH456HZ/PhX+5BcwHXG9ajESmwe6WRO0tAzRUrRmNONWgkrew==} dev: true + /regexp-to-ast/0.3.5: + resolution: {integrity: sha512-1CJygtdvsfNFwiyjaMLBWtg2tfEqx/jSZ8S6TV+GlNL8kiH8rb4cm5Pb7A/C2BpyM/fA8ZJEudlCwi/jvAY+Ow==} + dev: false + /regexp-tree/0.1.23: resolution: {integrity: sha512-+7HWfb4Bvu8Rs2eQTUIpX9I/PlQkYOuTNbRpKLJlQpSgwSkzFYh+pUj0gtvglnOZLKB6YgnIgRuJ2/IlpL48qw==} hasBin: true diff --git a/prettier.config.js b/prettier.config.js index 0831b6b..1bf622b 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -27,7 +27,7 @@ function prettier_plugin_packagejson() { } module.exports = { - plugins: ["prettier-plugin-jsdoc", prettier_plugin_packagejson()], + plugins: ["prettier-plugin-jsdoc", prettier_plugin_packagejson(), "prettier-plugin-toml"], tabWidth: 2, printWidth: 120, semi: false,