Skip to content

Commit

Permalink
fix: remove import/extensions rule
Browse files Browse the repository at this point in the history
Fixes #23

Seems there's no way to only enforce the rule to exact one extension.
  • Loading branch information
haoqunjiang committed Jul 27, 2022
1 parent 0b517a3 commit cabd3ea
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
3 changes: 2 additions & 1 deletion examples/create-vue-js/src/components/FooComp.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineComponent } from 'vue'
import { version } from '../../package.json'

export default defineComponent({
setup () {
return () => <div>Foo</div>
return () => <div>Foo {version}</div>
}
})
9 changes: 0 additions & 9 deletions packages/eslint-config-standard/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,5 @@ module.exports = {
'.js',
'.jsx'
]
},
rules: {
// Cannot omit `.vue` extensions.
// This should be enforced all across the Vue.js ecosystem.
'import/extensions': [
'error', {
vue: 'always'
}
]
}
}

0 comments on commit cabd3ea

Please sign in to comment.