Giter Site home page Giter Site logo

nuxt and airbnb code style about eslint HOT 9 CLOSED

utrumo avatar utrumo commented on May 18, 2024 1
nuxt and airbnb code style

from eslint.

Comments (9)

utrumo avatar utrumo commented on May 18, 2024 5

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.

utrumo avatar utrumo commented on May 18, 2024 3

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.

manniL avatar manniL commented on May 18, 2024

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.

manniL avatar manniL commented on May 18, 2024

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.

manniL avatar manniL commented on May 18, 2024

Definitely thanks for bringing it up! ☺️

from eslint.

tettoffensive avatar tettoffensive commented on May 18, 2024

@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.

cwenzelg avatar cwenzelg commented on May 18, 2024

I have the same issue and would like to have an easy way to use my one style.

from eslint.

ahsandev2019 avatar ahsandev2019 commented on May 18, 2024

still no airbnb version ?

from eslint.

markabruce avatar markabruce commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.