mirror of
https://github.com/marp-team/marp.git
synced 2024-09-11 10:35:38 +03:00
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',
|
|
],
|
|
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')
|
|
),
|
|
},
|
|
},
|
|
},
|
|
},
|
|
],
|
|
}
|