diff --git a/.eslintrc.js b/.eslintrc.js index 516d22d..b8481b0 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -9,10 +9,11 @@ const svelteConfig = require('./configs/svelte.js'); * @type {import('eslint').Linter.Config} */ module.exports = { + root: true, extends: './configs/node.js', ignorePatterns: [ '/example/wrong.*' ], overrides: [ { - files: [ './example/correct.svelte' ], + files: [ './example/*.svelte' ], overrides: svelteConfig.overrides, parserOptions: svelteConfig.parserOptions, env: svelteConfig.env, diff --git a/configs/generic.js b/configs/generic.js index 8900888..063cc8a 100644 --- a/configs/generic.js +++ b/configs/generic.js @@ -53,6 +53,7 @@ const generic = { 'error', 'always', ], + 'array-element-newline': 'off', 'arrow-body-style': [ 'error', 'as-needed',