skip to Main Content

Javascript – Eslint 9 add a rule to existing configuration

I have a ES9 config that looks like this (eslint.config.js): import globals from 'globals'; import pluginJs from '@eslint/js'; import tseslint from 'typescript-eslint'; import stylistic from '@stylistic/eslint-plugin'; export default [ { files: ['src/js/**/*.{js,mjs,cjs,ts}'], }, stylistic.configs.customize({ indent: 2, quotes: 'single', semi: true,…

VIEW QUESTION

Visual Studio Code – Does ESLint extension use .eslintrc.json in the project?

I have added ESLint to my TypeScript project by installing: npm install eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser --save-dev and adding this script: "lint": "eslint src/**/*.ts" and this config file .eslintrc.json: { "parser": "@typescript-eslint/parser", "parserOptions": { "project": "./tsconfig.json" }, "plugins": ["@typescript-eslint"], "extends": ["eslint:recommended",…

VIEW QUESTION
Back To Top
Search