yeslint/.eslintrc.js

24 lines
614 B
JavaScript
Raw Permalink Normal View History

2023-07-27 21:56:03 +02:00
'use strict';
const svelteConfig = require('./configs/svelte.js');
2023-08-07 17:50:06 +02:00
/**
* Don't import this! It is the configuration for the yeslint! code and is not
* meant to be used elsewhere. Please refer to the readme.
*
* @type {import('eslint').Linter.Config}
*/
2023-07-27 21:56:03 +02:00
module.exports = {
2023-08-07 18:12:46 +02:00
root: true,
2023-07-27 21:56:03 +02:00
extends: './configs/node.js',
ignorePatterns: [ '/example/wrong.*' ],
overrides: [ {
2023-08-07 18:12:46 +02:00
files: [ './example/*.svelte' ],
2023-07-27 21:56:03 +02:00
overrides: svelteConfig.overrides,
parserOptions: svelteConfig.parserOptions,
env: svelteConfig.env,
extends: svelteConfig.extends,
plugins: svelteConfig.plugins,
} ],
};