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,