Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@novicell/eslint-config-nuxt

Package Overview
Dependencies
Maintainers
8
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@novicell/eslint-config-nuxt

A Eslint config for Nuxt projects with TypeScript

  • 0.2.5
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
21
decreased by-56.25%
Maintainers
8
Weekly downloads
 
Created
Source

Novicell ESLint config for Nuxt.js with TypeScript

npm

This is an ESLint config for Nuxt 2 and 3 projects with TypeScript.

How to install

  1. npm i eslint @novicell/eslint-config-nuxt
    
  2. Create a .eslintrc.json in the root of the project

  3. Add the following 👇

    {
      "extends": "@novicell/eslint-config-nuxt",
      "rules": {
        // Your project specific rules or overrides
      }
    }
    
  4. Add lint scripts to package.json

    "scripts": {
      "eslint": "eslint --ext .js,.vue,.ts --ignore-path .gitignore .",
      "eslint:fix": "eslint --ext .js,.vue,.ts --ignore-path .gitignore . --fix",
    }
    
  5. Make VS Code autofix issues on save (optional)

    • Create a .vscode folder in root and add settings.json to it. Remember to disable Prettier!
    • Add the following
     {
       "css.validate": false,
       "less.validate": false,
       "scss.validate": false,
       "editor.codeActionsOnSave": {
         "source.fixAll.eslint": true,
       },
       "prettier.enable": false
     }
    
    
  6. Configure webpack to autofix eslint issues during build (optional)

    extend (config, { isDev, isClient }) {
      if (isDev && isClient) {
        config.module.rules.push({
          enforce: 'pre',
          test: /\.(js|vue|ts)$/,
          loader: 'eslint-loader',
          exclude: /(node_modules)/,
          options: {
            fix: true
          }
        });
      }
    }
    

Contribution

Looking to contribute something? Here's how you can help. Please take a moment to review our contribution guidelines in order to make the contribution process easy and effective for everyone involved.

License

The Novicell CSS Utils is licensed under the MIT license. (http://opensource.org/licenses/MIT)

Keywords

FAQs

Package last updated on 24 Jun 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc