Coder Social home page Coder Social logo

andreww2012 / eslint-config Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 430 KB

Comprehensive ESLint config for generic TS/JS or Vue/Nuxt apps with some optional extras (prettier, editorconfig, stylelint, lefthook, nuxt config removing auto imports, some generic useful utilities & types, vscode setup, tailwindcss & more). __NOT__ a template/starter/etc. Please do not copy blindly!

License: MIT License

JavaScript 77.57% TypeScript 22.43%
eslint nuxt prettier stylelint tailwindcss vue

eslint-config's Introduction

ESLint

A comprehensive ESLint config primarily designed for either generic TS/JS applications or Vue {2,3}/Nuxt 3 applications on Frontend.

As a bonus, this "template" includes a Nuxt 3 config that completely disables auto-importing functionality as well as some useful generic types & utilities.

Everything is customizable, removable and overridable. Nothing is set in stone!

What's included

  • Package manager: pnpm with shamefully-hoist=true and save-exact=true set by default.
  • type: module & Node 18
  • ESLint rules:
    • Official "recommended" config
    • config-airbnb-base
    • config-prettier
      • Prettier is run separately.
    • @typescript-eslint/{eslint-plugin,parser}
    • plugin-disable-autofix
    • plugin-unicorn & plugin-sonarjs
    • plugin-vue & plugin-vuejs-accessibility
    • plugin-import & import-resolver-typescript
    • plugin-promise
    • plugin-n (nodejs specific rules)
    • plugin-optimize-regex
    • plugin-security
    • plugin-no-type-assertion
  • Prettier plugins:
    • organize-attributes as well as Vue official style guide compliant attributes order for Vue templates.
    • plugin-tailwindcss
  • tailwindcss
    • Includes tailwind config with some useful utilities & bug fixes
  • ts-reset
  • VSCode specific files
    • Settings to run Prettier on save for majority of the file types it's working with
    • Some tailwindcss specific settings
    • Extension recommendations
  • Stylelint configs:
    • config-recess-order (to sort properties)
    • config-standard-scss (general rules for CSS & SCSS)
    • config-prettier-scss (to work with Prettier)
    • config-recommended-vue (to support .vue files)
  • npm scripts to run linters & type checking
  • lefthook set up with pre-push hook to run linters

eslint-config's People

Contributors

andreww2012 avatar

Watchers

 avatar

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.