Apply workaround for eslint-plugin-import with exports field

This commit is contained in:
Yuki Hattori 2021-09-18 14:36:59 +09:00
parent d08dafa0c2
commit 98bfedfcb4
2 changed files with 4 additions and 1 deletions

View File

@ -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: [

View File

@ -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": {