Standardized linting rules for Salesforce Lightning Web Components projects. Use this to enforce code quality and consistency in LWC development.
// Source: https://github.com/pozil/sfdc-ui-lookup-lwc | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
'use strict';
const { defineConfig } = require('eslint/config');
const eslintJs = require('@eslint/js');
const jestPlugin = require('eslint-plugin-jest');
const salesforceLwcConfig = require('@salesforce/eslint-config-lwc/recommended');
const globals = require('globals');
module.exports = defineConfig([
// LWC configuration
{
files: ['src*/main/default/lwc/**/*.js'],
extends: [salesforceLwcConfig]
},
// LWC configuration with override for LWC test files
{
files: ['src-*/main/default/lwc/**/*.test.js'],
extends: [salesforceLwc
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key