0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-06 14:50:21 -05:00
penpot-plugins/libs/plugins-runtime/eslint.config.js
2024-06-13 08:51:44 +02:00

47 lines
984 B
JavaScript

import baseConfig from '../../eslint.config.js';
import jsoncParser from 'jsonc-eslint-parser';
import globals from 'globals';
export default [
...baseConfig,
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {},
languageOptions: {
parserOptions: {
project: './tsconfig.*?.json',
tsconfigRootDir: import.meta.dirname,
},
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',
],
},
],
},
},
];