mirror of
https://github.com/marp-team/marp.git
synced 2024-09-11 10:35:38 +03:00
469b666f91
* Re-creation of marp.app * Set correct host in Netlify's deploy preview * Prevent purging Tailwind classes used in utils * Update glob path for purging CSS * Don't build a docs page working in progress
41 lines
1.0 KiB
JavaScript
41 lines
1.0 KiB
JavaScript
const path = require('path')
|
|
const { workspaces } = require('./package.json')
|
|
|
|
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
},
|
|
extends: ['eslint:recommended', 'plugin:import/recommended', 'prettier'],
|
|
rules: {
|
|
'import/order': ['error', { alphabetize: { order: 'asc' } }],
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['**/*.ts', '**/*.tsx'],
|
|
parser: '@typescript-eslint/parser',
|
|
plugins: ['@typescript-eslint'],
|
|
extends: [
|
|
'plugin:@typescript-eslint/recommended',
|
|
'plugin:import/typescript',
|
|
'prettier/@typescript-eslint',
|
|
],
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
},
|
|
settings: {
|
|
'import/resolver': {
|
|
typescript: {
|
|
project: ['', ...workspaces].map((dir) =>
|
|
path.join(dir, 'tsconfig.json')
|
|
),
|
|
},
|
|
},
|
|
},
|
|
},
|
|
],
|
|
}
|