From 070b8f8e22d02c6a0ea8b8d46b9f60f965865f49 Mon Sep 17 00:00:00 2001 From: danstarns Date: Fri, 16 Aug 2024 19:00:10 -0700 Subject: [PATCH] config: * --- .eslintrc.js | 21 +++++++++++---------- .prettierignore | 1 + .prettierrc | 2 +- 3 files changed, 13 insertions(+), 11 deletions(-) create mode 100644 .prettierignore diff --git a/.eslintrc.js b/.eslintrc.js index c194c9d04..595938f3a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -3,17 +3,17 @@ module.exports = { env: { browser: true, node: true, - 'jest/globals': true + 'jest/globals': true, }, globals: { $: true, - grapesjs: true + grapesjs: true, }, extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'], plugins: ['@typescript-eslint', 'jest'], parserOptions: { ecmaVersion: 2021, - sourceType: 'module' + sourceType: 'module', }, rules: { 'no-var': 'off', @@ -52,7 +52,7 @@ module.exports = { quotes: ['error', 'single'], 'linebreak-style': ['error', 'unix'], 'max-len': ['error', { code: 120 }], - 'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 1 }] + 'no-multiple-empty-lines': ['error', { max: 1, maxEOF: 1 }], }, overrides: [ { @@ -60,15 +60,16 @@ module.exports = { parser: '@typescript-eslint/parser', rules: { indent: ['error', 2], - quotes: ['error', 'single'] - } + quotes: ['error', 'single'], + }, }, { files: ['*.js'], rules: { indent: ['error', 2], - quotes: ['error', 'single'] - } - } - ] + quotes: ['error', 'single'], + }, + }, + ], + ignorePatterns: ['docs/api/*'], }; diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..b4a46d7d2 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +docs/api/*.md \ No newline at end of file diff --git a/.prettierrc b/.prettierrc index a6747a450..0f303c93a 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,7 +2,7 @@ "endOfLine": "lf", "insertPragma": false, "requirePragma": false, - "trailingComma": "none", + "trailingComma": "all", "tabWidth": 2, "useTabs": false, "singleQuote": true,