mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-08 07:50:44 -05:00
51 lines
1.1 KiB
JavaScript
51 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',
|
||
|
],
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
];
|