27 lines
1.1 KiB
JavaScript
27 lines
1.1 KiB
JavaScript
"use strict";
|
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
};
|
|
const path_1 = __importDefault(require("path"));
|
|
const base = require.resolve('./base');
|
|
const baseExtend = path_1.default.extname(`${base}`) === '.ts' ? 'plugin:svelte/base' : base;
|
|
module.exports = {
|
|
extends: [baseExtend],
|
|
rules: {
|
|
'svelte/comment-directive': 'error',
|
|
'svelte/no-at-debug-tags': 'warn',
|
|
'svelte/no-at-html-tags': 'error',
|
|
'svelte/no-dupe-else-if-blocks': 'error',
|
|
'svelte/no-dupe-style-properties': 'error',
|
|
'svelte/no-dynamic-slot-name': 'error',
|
|
'svelte/no-inner-declarations': 'error',
|
|
'svelte/no-not-function-handler': 'error',
|
|
'svelte/no-object-in-text-mustaches': 'error',
|
|
'svelte/no-shorthand-style-property-overrides': 'error',
|
|
'svelte/no-unknown-style-directive-property': 'error',
|
|
'svelte/no-unused-svelte-ignore': 'error',
|
|
'svelte/system': 'error',
|
|
'svelte/valid-compile': 'error'
|
|
}
|
|
};
|