Comments (9)
Create airbnb specified version - is not my idea.
My idea - to create separate nuxt-eslint-config without preferred code style, only nuxt and vue specifics rules set.
Then In own project i can select my preferred base code standard and extend it by nuxt/vue preset.
from eslint.
It seems to me that the decision can be like this: just move eslint-config-standard and eslint-plugin-standard dependencies from
https://github.com/nuxt/eslint-config/blob/master/package.json
to
https://github.com/nuxt/nuxt.js/blob/dev/package.json
Without any additional new packages. But I do not know how correct make changes in such huge projects like nuxt.
updated:
I just now thought that nuxt-eslint-config can already be used in several nuxt-related projects and changes need to be made to each of them...
I do not know how it is possible to solve it, perhaps really need create a separate package.
It is a quite important problem for me and It was important to share it with you! :)
from eslint.
Hey @dementor5
It'd be the easiest to copy the rules over which you like/need from the nuxt-eslint config. We will stick to standard style and will likely not release an airbnb version. This doesn't mean it's bad or "unwanted" but that we focus on one style in all the nuxt projects.
Feel free to adapt as you like π
from eslint.
That makes sense, but would still mean that we have to support multiple versions as we use standard-style
in all nuxt-related projects and want to provide a decent default linting (also with regards to an uniform code style)
from eslint.
Definitely thanks for bringing it up!
from eslint.
@utrumo What did you end up doing for this?
I was using airbnb-base
for a project based on vue-cli that I'm now converting to nuxt. But @nuxtjs/eslint-config
isn't playing nicely with it - even if I switch my extends in .eslintrc.js
it still is switching the style to nuxt's preferred. I don't really want to change coding styles in a middle of a project.
from eslint.
I have the same issue and would like to have an easy way to use my one style.
from eslint.
still no airbnb version ?
from eslint.
I know this is pretty old, but I've managed to get AirBnb ESLint working with some simple steps and have posted it on Medium:
If you have issues accessing the Medium article, here is a public repo of the project.
If I'm not allowed to post this, please accept my apology and remove the comment, though it was at the top of the google search when attempting to figure this out and I think others may find it helpful too.
from eslint.
Related Issues (20)
- Configuration tutorial cannot be used HOT 1
- CheckerOptions.fix HOT 3
- use relative path for `import` in generated ESLint Config
- EsLint module Layers support HOT 4
- Opening the ESLint Config Inspector fails with ERR_MODULE_NOT_FOUND HOT 2
- Error [ERR_REQUIRE_ESM] when using flat config in ESLint w/ CJS HOT 7
- json-schema-to-typescript-lite and Nuxt require different node engine
- When multiple Nuxt dev-servers are running the Devtools plugin connects to the same instance
- Folder `dist` is not ignored HOT 4
- Error when overriding `nuxt/javascript` config
- Stylistic rules do not apply HOT 5
- [NUXT] Cannot write file `eslint.config.mjs` because it would overwrite input file. HOT 1
- False positives for `vue/multi-word-component-names` rule
- `npx nuxi module add eslint` adds as main dependency and doesn't create config file HOT 8
- docs: document `autoInit` HOT 2
- docs: `i-ph-lightbulb-duotone` is not displayed
- Cannot find module '[...]/.nuxt/eslint.config.mjs' HOT 3
- Include `eslint-plugin-regexp` in `tooling` preset HOT 2
- ConfigError: Key "plugins": Cannot redefine plugin "import" in Nuxt ESLint configuration HOT 1
- Constant Error: Cannot find module 'typescript' 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.