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

42 lines
791 B
JavaScript

import baseConfig from '../../eslint.config.js';
import jsoncParser from 'jsonc-eslint-parser';
export default [
...baseConfig,
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {},
languageOptions: {
globals: {
fetch: 'readonly',
}
}
},
{
files: ['**/*.ts', '**/*.tsx'],
rules: {},
},
{
files: ['**/*.js', '**/*.jsx'],
rules: {},
},
{
files: ['*.json'],
languageOptions: {
parser: jsoncParser,
},
rules: {
'@nx/dependency-checks': [
'error',
{
ignoredFiles: [
'libs/plugin-types/vite.config.ts',
'libs/plugin-types/eslint.config.js',
'libs/plugin-types/**/*.spec.ts',
],
},
],
},
},
];