mirror of
https://github.com/marp-team/marp.git
synced 2024-11-30 09:46:32 +03:00
Apply workaround for eslint-plugin-import with exports field
This commit is contained in:
parent
d08dafa0c2
commit
98bfedfcb4
@ -9,6 +9,9 @@ module.exports = {
|
||||
},
|
||||
extends: ['eslint:recommended', 'plugin:import/recommended', 'prettier'],
|
||||
rules: {
|
||||
// eslint-plugin-import cannot parse exports field in package.json.
|
||||
// https://github.com/import-js/eslint-plugin-import/issues/1810
|
||||
'import/no-unresolved': ['error', { ignore: ['^swiper'] }],
|
||||
'import/order': ['error', { alphabetize: { order: 'asc' } }],
|
||||
},
|
||||
overrides: [
|
||||
|
@ -30,7 +30,7 @@
|
||||
"check:ts": "yarn lage check:ts",
|
||||
"format:write": "yarn -s format --write",
|
||||
"format": "prettier \"**/*.{css,js,jsx,json,md,mdx,scss,ts,tsx,yaml,yml}\"",
|
||||
"lint:js": "eslint --ext .js,.jsx,.ts,.tsx --report-unused-disable-directives --cache .",
|
||||
"lint:js": "eslint --report-unused-disable-directives --cache .",
|
||||
"website": "yarn workspace @marp-team/marp-website dev"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
Loading…
Reference in New Issue
Block a user