Socket
Book a DemoInstallSign in
Socket

eslint-config-qualtrics

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-qualtrics

Qualtrics ESLint config

4.0.1
latest
npmnpm
Version published
Weekly downloads
7
133.33%
Maintainers
1
Weekly downloads
 
Created
Source

Qualtrics ESLint config

NPM version

eslint-config-qualtrics

These are settings for ESLint used by Qualtrics.

What it does

This setup lints your JavaScript code. Check the .eslintrc.js file to see what is included. Feel free to override the rules that make sense for you.

This config assumes that you are using prettier for style-formatting concerns and eslint for code-quality concerns.

Installing

In your project folder, run:

npm i -D eslint eslint-config-qualtrics
# or
yarn add -D eslint eslint-config-qualtrics

If you are using typescript then you must add

npm i -D @typescript-eslint/eslint-plugin @typescript-eslint/parser
# or
yarn add -D @typescript-eslint/eslint-plugin @typescript-eslint/parser

Usage

If you've installed eslint-config-qualtrics to your project, just set your eslintconfig (such as the .eslintrc.js) file to:

module.exports = {
  extends: ["qualtrics"],
};

React

If you are building a react project, then you should extend the qualtrics/react config

module.exports = {
  extends: ["qualtrics/react"],
};

Extending the config

Simply add a "rules" key to your config, then add your overrides and additions there.

For example, to change the react/prop-types rule to error, change it to the following

module.exports = {
  extends: ["qualtrics"],
  rules: {
    "react/prop-types": "error",
  },
};

Keywords

eslint

FAQs

Package last updated on 22 Nov 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.