UNPKG

@soleil-se/eslint-config

Version:

ESLint configuration for Sitevision apps and projects.

31 lines (29 loc) 735 B
import globals from 'globals'; import importPlugin from 'eslint-plugin-import'; import jsRules from '../rules/js/index.js'; export default function base() { return [{ name: 'soleil/base', languageOptions: { ecmaVersion: 'latest', sourceType: 'module', globals: { process: 'readonly', Packages: 'readonly', envision: 'readonly', ...globals.browser, }, }, ignores: ['dist', 'node_modules', 'prettier.config.js'], plugins: { import: importPlugin }, rules: jsRules, settings: { svelte: { // Ignore max-len in template and style, still works for script tags. ignoreWarnings: [ 'max-len', ], }, }, }]; }