Comments (7)
Thank you for this issue.
Hm, probably we can replace the assertions by assert
module of Node.js core in order to solve this issue.
- It's better if the assertions exist in order to develop this plugin.
- At least,
console.assert
exists on all popular browsers (including old IE) and Node.js. Also, VSCode which is based on Electron seems no problem. However,console
object is not standard. It might be better that we don't assume it to work...
from eslint-plugin-vue.
Great! Liked your approach.
Perhaps it's an Atom package issue as well. I agree with you that it should have the console.assert
method. I'll open an issue there also.
from eslint-plugin-vue.
As a quick fix you can open node_modules/eslint-plugin-vue/lib/utils/index.js
and remove all the console.assert
. I tried and this fixed the issue.
from eslint-plugin-vue.
@Bartheleway Yes, that works. I'm using this to be able to use the linter on Atom
from eslint-plugin-vue.
So, I've done some more testing, and the only console
method I was able to use was console.log
.
Not sure why other methods are not available, but it's not an eslint-plugin-vue
issue for sure, perhaps an improvement not trusting on console.assert
being available.
from eslint-plugin-vue.
Fix released as v3.1.3
🚀 It's funny though - in order to make eslint work on .vue
files in atom you need to set Lint HTML files
in linter-eslint
atom's package and install eslint-plugin-html
, but you don't need to include it in .esllintrc.*
anywhere.
from eslint-plugin-vue.
@michalsnik Thanks!!
I was able to make it work only with Lint HTML files
enabled, installed eslint on project and not globally.
Then my .eslintrc.json
looks like the default config:
{
"extends": [
"eslint:recommended",
"plugin:vue/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true
}
}
}
Also installed only eslint
and eslint-plugin-vue
as devDependencies.
from eslint-plugin-vue.
Related Issues (20)
- enforce usage of 'const' or trigger error when reassigning reactive value
- Eslint disable does not take effect HOT 2
- rule `v-on-handler-style` didn't allow async event listener HOT 1
- Empty class breaks eslint for vue/no-restricted-class
- New Rule: disallow using deprecated `next` argument in `NavigationGuard`
- Conflict: doesn't work if using separate overrides .vue and .ts HOT 2
- Rule Proposal: Maximum number of props
- vue/no-v-text-v-html-on-component: it should not warn if a component implements default slot HOT 9
- require-default-prop for optional props HOT 1
- `vue/multi-word-component-names` also applies to pages directory HOT 2
- disallow importing macros: defineProps etc
- `vue/custom-event-name-casing`: should check and report `update:kebab-case`/`update:camelCase` event names too HOT 1
- HTML indent to extend from ESLint Stylistic HOT 1
- unmet peer eslint@"^6.2.0 || ^7.0.0 || ^8.0.0": found 9.0.0 HOT 3
- how to configure for .vue with <script setup lang="ts" HOT 4
- `getCommentsBefore` empty in Vue SFC with two `script` tags HOT 1
- Support for ESLint 9 HOT 4
- Full example for flat config with object
- Under default configuration, HelloWorld.vue in the vite ts template will be detected as an error HOT 3
- Rule proposal: no-computed-after-await HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-plugin-vue.