Socket
Book a DemoInstallSign in
Socket

@element-public/eslint-config

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@element-public/eslint-config

This package provides Element's .eslintrc as an extensible shared config.

latest
npmnpm
Version
2.0.4-alpha.2
Version published
Maintainers
3
Created
Source

element-logo

eslint-config-element

This package provides Element's .eslintrc as an extensible shared config.

Getting Started

npm i --save-dev @element/eslint-config

Extended ESLint Config

Extend into a local project configuration file, and override as desired. Use the correct config extension if it is a basic JavaScript, Vue, or React application:

React Extension

// .eslintrc.js
const eslintConfigReact = require('@element/eslint-config/react/');

module.exports = {
    ...eslintReactConfig,
    rules: {
      // add additional rules here
    }
};

Vue Extension

// .eslintrc.js
const eslintConfigVue = require('@element/eslint-config/vue/');

module.exports = {
    ...eslintVueConfig,
    rules: {
      // add additional rules here
    }
};

Basic JavaScript Extension

// .eslintrc.js
const eslintConfig = require('@element/eslint-config/');

module.exports = {
    ...eslintConfig,
    rules: {
      // add additional rules here
    }
};

Keywords

eslint

FAQs

Package last updated on 07 Jul 2025

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