Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/quantic/.eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/quantic/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
Quantic does **not** use oxlint or oxfmt like the rest of the monorepo. When working
anywhere under `packages/quantic`, the following tools apply:

- **Linting**: ESLint (configured in `.eslintrc.json`, using `@salesforce/eslint-config-lwc`)
- **Linting**: ESLint 9 flat config (configured in `eslint.config.js`, using `@salesforce/eslint-config-lwc`)
- **Formatting**: Prettier (configured in `.prettierrc.js`, including `prettier-plugin-apex` for `.cls` and `.trigger` files)

**You must NEVER**:
Expand Down
98 changes: 98 additions & 0 deletions packages/quantic/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
const lwcRecommended = require('@salesforce/eslint-config-lwc/recommended');
const typescriptParser = require('@typescript-eslint/parser');
const prettier = require('eslint-config-prettier');

const mainDefault = 'force-app/main/default';
const playground = 'force-app/playgroundComponents/main/lwc';
const solutionExamples = 'force-app/solutionExamples/main/lwc';

const e2eTypeScriptOverride = (baseDir) => ({
files: [`${baseDir}/**/e2e/*.ts`],
languageOptions: {
parser: typescriptParser,
},
rules: {
'no-redeclare': ['error', {builtinGlobals: false}],
},
});

module.exports = [
{
ignores: [
'typings/**',
'force-app/test/jest-mocks/**',
`${mainDefault}/staticresources/**`,
`${solutionExamples}/staticresources/**`,
],
},
...lwcRecommended,
// Keep the ESLint 8 behavior where ESLint 9 changed defaults.
{
linterOptions: {
reportUnusedDisableDirectives: 'off',
},
rules: {
'no-unused-vars': [
'error',
{vars: 'all', args: 'after-used', caughtErrors: 'none'},
],
},
},
{
files: ['**/__tests__/**'],
languageOptions: {
globals: {
require: 'readonly',
},
},
},
{
files: [`${mainDefault}/**`],
languageOptions: {
globals: {
CoveoHeadless: 'readonly',
CoveoHeadlessCaseAssist: 'readonly',
CoveoHeadlessInsight: 'readonly',
CoveoHeadlessRecommendation: 'readonly',
Bueno: 'readonly',
DOMPurify: 'readonly',
marked: 'readonly',
},
},
rules: {
'no-unused-expressions': ['error', {allowTernary: true}],
},
},
{
files: [`${playground}/**`],
languageOptions: {
globals: {
CoveoHeadless: 'readonly',
CoveoHeadlessCaseAssist: 'readonly',
CoveoHeadlessInsight: 'readonly',
},
},
},
{
files: [`${solutionExamples}/**`],
languageOptions: {
globals: {
CoveoHeadless: 'readonly',
CoveoHeadlessCaseAssist: 'readonly',
coveoua: 'readonly',
},
},
},
{
...prettier,
files: [`${mainDefault}/**`, `${solutionExamples}/**`],
},
{
files: [`${mainDefault}/**/__tests__/**`],
rules: {
'@lwc/lwc/no-async-operation': 'off',
},
},
e2eTypeScriptOverride(mainDefault),
e2eTypeScriptOverride(solutionExamples),
];
32 changes: 0 additions & 32 deletions packages/quantic/force-app/main/default/.eslintrc.json

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export default class QuanticResultsPerPage extends LightningElement {
this.headless = getHeadlessBundle(this.engineId);
this.resultsPerPage = this.headless.buildResultsPerPage(engine, {
initialState: {
// eslint-disable-next-line no-constant-binary-expression
numberOfResults: Number(this.initialChoice) ?? this.choices[0],
},
});
Expand Down

This file was deleted.

This file was deleted.

10 changes: 5 additions & 5 deletions packages/quantic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,23 @@
"marked": "catalog:"
},
"devDependencies": {
"@babel/cli": "7.29.7",
"@babel/plugin-transform-async-to-generator": "7.29.7",
"@babel/cli": "8.0.6",
"@babel/plugin-transform-async-to-generator": "8.0.1",
"@coveo/platform-mock-api": "workspace:*",
"@coveo/relay-event-types": "catalog:",
"@octokit/graphql": "9.0.5",
"@octokit/graphql-schema": "15.26.1",
"@playwright/test": "catalog:",
"@salesforce/eslint-config-lwc": "3.7.2",
"@salesforce/eslint-config-lwc": "4.1.2",
"@salesforce/sfdx-lwc-jest": "6.0.3",
"@types/wait-on": "5.3.4",
"@typescript-eslint/parser": "8.71.1",
"dotenv": "catalog:",
"eslint": "8.57",
"eslint": "9.39",
"eslint-config-prettier": "10.1.8",
"exponential-backoff": "catalog:",
"jest": "catalog:",
"jest-junit": "16.0.0",
"jest-junit": "17.0.0",
"jsdoc": "4.0.5",
"jsdoc-tsimport-plugin": "1.0.5",
"prettier": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions packages/quantic/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"lint:check:eslint": {
"inputs": [
"package.json",
"force-app/main/default/.eslintrc.json",
"eslint.config.js",
"force-app/main/default/lwc/**",
"force-app/playgroundComponents/main/lwc/**"
],
Expand All @@ -98,7 +98,7 @@
"lint:fix:eslint": {
"inputs": [
"package.json",
"force-app/main/default/.eslintrc.json",
"eslint.config.js",
"force-app/main/default/lwc/**",
"force-app/playgroundComponents/main/lwc/**"
],
Expand Down
Loading
Loading