0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-24 07:38:41 -05:00
penpot-plugins/libs/plugin-types/eslint.config.js

43 lines
791 B
JavaScript
Raw Normal View History

2024-05-07 10:28:40 +02:00
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',
],
},
],
},
},
];