diff options
| author | Andrew Lee <andrew@alee14.me> | 2025-03-02 16:24:26 -0500 |
|---|---|---|
| committer | Andrew Lee <andrew@alee14.me> | 2025-03-02 16:24:26 -0500 |
| commit | 1c253d25cb1d35aa987d76e07806999c562712d6 (patch) | |
| tree | 02655b6a3bed5b3604b56deb4c2af199f2609a64 /bot/eslint.config.js | |
| parent | f98f7e6a34f02e8d6ea6673fbe68ab6db28a2e89 (diff) | |
| download | AleeBot-1c253d25cb1d35aa987d76e07806999c562712d6.tar.gz AleeBot-1c253d25cb1d35aa987d76e07806999c562712d6.tar.bz2 AleeBot-1c253d25cb1d35aa987d76e07806999c562712d6.zip | |
Bringing more features from 2.x; ESLint; API
Diffstat (limited to 'bot/eslint.config.js')
| -rw-r--r-- | bot/eslint.config.js | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/bot/eslint.config.js b/bot/eslint.config.js index e67ce26..6f258fe 100644 --- a/bot/eslint.config.js +++ b/bot/eslint.config.js @@ -1,15 +1,27 @@ -import globals from "globals"; -import pluginJs from "@eslint/js"; +import globals from 'globals'; +import pluginJs from '@eslint/js'; +import stylisticJs from '@stylistic/eslint-plugin-js'; /** @type {import('eslint').Linter.Config[]} */ export default [ { - languageOptions: { - ecmaVersion: "latest", - sourceType: "module", - globals: globals.node - } + languageOptions: { + ecmaVersion: 'latest', + sourceType: 'module', + globals: globals.node + }, + + plugins: { + '@stylistic/js': stylisticJs + }, + + rules: { + '@stylistic/js/quotes': ['error', 'single'], + '@stylistic/js/semi-style': ['error', 'last'], + '@stylistic/js/semi': ['error', 'always'], + '@stylistic/js/indent': ['error', 4] + } }, pluginJs.configs.recommended, ]; |
