0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-09 00:10:12 -05:00
penpot-plugins/libs/plugins-runtime/eslint.config.js
2024-05-08 14:37:21 +02:00

50 lines
1.1 KiB
JavaScript

import baseConfig from '../../eslint.config.js';
import typescriptEslintParser from '@typescript-eslint/parser';
import jsoncParser from 'jsonc-eslint-parser';
import globals from 'globals';
export default [
...baseConfig,
{
languageOptions: {
parser: typescriptEslintParser,
parserOptions: { project: './libs/plugins-runtime/tsconfig.*?.json' },
},
},
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {},
languageOptions: {
globals: {
...globals.browser,
PluginConfig: 'readonly',
},
},
},
{
files: ['**/*.ts', '**/*.tsx'],
rules: {},
},
{
files: ['**/*.js', '**/*.jsx'],
rules: {},
},
{
files: ['*.json'],
languageOptions: {
parser: jsoncParser,
},
rules: {
'@nx/dependency-checks': [
'error',
{
ignoredFiles: [
'libs/plugins-runtime/vite.config.ts',
'libs/plugins-runtime/eslint.config.js',
'libs/plugins-runtime/**/*.spec.ts',
],
},
],
},
},
];