Skip to content

Commit cabd3ea

Browse files
committed
fix: remove import/extensions rule
Fixes #23 Seems there's no way to only enforce the rule to exact one extension.
1 parent 0b517a3 commit cabd3ea

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { defineComponent } from 'vue'
2+
import { version } from '../../package.json'
23

34
export default defineComponent({
45
setup () {
5-
return () => <div>Foo</div>
6+
return () => <div>Foo {version}</div>
67
}
78
})

packages/eslint-config-standard/.eslintrc.cjs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,5 @@ module.exports = {
1515
'.js',
1616
'.jsx'
1717
]
18-
},
19-
rules: {
20-
// Cannot omit `.vue` extensions.
21-
// This should be enforced all across the Vue.js ecosystem.
22-
'import/extensions': [
23-
'error', {
24-
vue: 'always'
25-
}
26-
]
2718
}
2819
}

0 commit comments

Comments
 (0)