diff --git a/chatgpt-infinity/eslint.config.mjs b/chatgpt-infinity/eslint.config.mjs index fbfbaad90..3960ff8bc 100644 --- a/chatgpt-infinity/eslint.config.mjs +++ b/chatgpt-infinity/eslint.config.mjs @@ -1,5 +1,6 @@ import js from '@eslint/js' import globals from 'globals' +import css from '@eslint/css' import importPlugin from 'eslint-plugin-import' import json from '@eslint/json' import markdown from '@eslint/markdown' @@ -41,6 +42,7 @@ export default [ } }, { files: ['**/chatgpt.js'], languageOptions: { globals: { chatgpt: 'off' }}}, + { files: ['**/*.css'], language: 'css/css', ...css.configs.recommended }, { files: ['**/*.json'], language: 'json/json', ...json.configs.recommended }, { files: ['**/*.md'], language: 'markdown/commonmark', plugins: { markdown }, diff --git a/chatgpt-infinity/package-lock.json b/chatgpt-infinity/package-lock.json index 6b1ae3e85..5a3ccfc9d 100644 --- a/chatgpt-infinity/package-lock.json +++ b/chatgpt-infinity/package-lock.json @@ -16,6 +16,7 @@ ], "license": "MIT", "devDependencies": { + "@eslint/css": "^0.2.0", "@eslint/json": "^0.9.0", "@eslint/markdown": "^6.2.1", "@stylistic/eslint-plugin-js": "^2.12.1", @@ -83,6 +84,20 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, + "node_modules/@eslint/css": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/@eslint/css/-/css-0.2.0.tgz", + "integrity": "sha512-m6BhqDKBatcPyY2DFNQ1gxf7VMiQysejylBcwHHZ63BMnthNqSAHJsmaPemtFA95DHlfVvu07FK7mu/p0QHheQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@eslint/plugin-kit": "^0.2.3", + "css-tree": "^3.0.1" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + } + }, "node_modules/@eslint/eslintrc": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-3.2.0.tgz", @@ -678,6 +693,20 @@ "node": ">= 8" } }, + "node_modules/css-tree": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/css-tree/-/css-tree-3.1.0.tgz", + "integrity": "sha512-0eW44TGN5SQXU1mWSkKwFstI/22X2bG1nYzZTYMAWjylYURhse752YgbE4Cx46AC+bAvI+/dYTPRk1LqSUnu6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "mdn-data": "2.12.2", + "source-map-js": "^1.0.1" + }, + "engines": { + "node": "^10 || ^12.20.0 || ^14.13.0 || >=15.0.0" + } + }, "node_modules/data-view-buffer": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/data-view-buffer/-/data-view-buffer-1.0.1.tgz", @@ -2440,6 +2469,13 @@ "url": "https://opencollective.com/unified" } }, + "node_modules/mdn-data": { + "version": "2.12.2", + "resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.12.2.tgz", + "integrity": "sha512-IEn+pegP1aManZuckezWCO+XZQDplx1366JoVhTpMpBB1sPey/SbveZQUosKiKiGYjg1wH4pMlNgXbCiYgihQA==", + "dev": true, + "license": "CC0-1.0" + }, "node_modules/micromark": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.0.tgz", @@ -3574,6 +3610,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/ssri": { "version": "12.0.0", "resolved": "https://registry.npmjs.org/ssri/-/ssri-12.0.0.tgz", diff --git a/chatgpt-infinity/package.json b/chatgpt-infinity/package.json index a57a79820..474a9b50c 100644 --- a/chatgpt-infinity/package.json +++ b/chatgpt-infinity/package.json @@ -34,6 +34,7 @@ "bump:firefox": "bash utils/bump/extension-manifests.sh --ff" }, "devDependencies": { + "@eslint/css": "^0.2.0", "@eslint/json": "^0.9.0", "@eslint/markdown": "^6.2.1", "@stylistic/eslint-plugin-js": "^2.12.1",