diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-05-27 19:50:35 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-05-27 19:50:35 -0300 |
commit | d2bcdb7d5aa668579879d635072963bf9092fb2b (patch) | |
tree | 8a16cf50193cee986a20bcddaa87106f94d2acfa | |
parent | 5eebd7531c8d5bfe36066bd8e29c0803b3373ef3 (diff) |
eslint: config cleanup
-rw-r--r-- | eslint.config.js | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/eslint.config.js b/eslint.config.js index 77c02f36..9d969f57 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,18 +1,11 @@ -import path from 'node:path'; +import * as path from 'node:path'; import {fileURLToPath} from 'node:url'; import {defineConfig} from 'eslint/config'; -import {FlatCompat} from '@eslint/eslintrc'; import js from '@eslint/js'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); -const compat = new FlatCompat({ - baseDirectory: __dirname, - recommendedConfig: js.configs.recommended, - allConfig: js.configs.all, -}); - const CLIENT_JAVASCRIPT_PATHS = [ 'src/static/js/**/*.js', ]; @@ -40,7 +33,8 @@ export default defineConfig([ { files: ['src/**/*.js'], - extends: compat.extends('eslint:recommended'), + extends: ['js/recommended'], + plugins: {js}, rules: { indent: ['off'], |