diff options
author | bobzel <zzzman@gmail.com> | 2024-08-21 10:58:00 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-08-21 10:58:00 -0400 |
commit | b3327f8e1a4245110822b8aa8c331f32f93bb8f5 (patch) | |
tree | 2e7fbef3a26d600f53c1beca7a5d049adf8d01d4 /eslint.config.mjs | |
parent | 77aa0be0ee4a5375544dbea65a4636d8487cd0fc (diff) | |
parent | 166d40bd856b85bd4bbde9f9ffe2c1ec0fb648d5 (diff) |
Merge branch 'master' into keanu-comments
Diffstat (limited to 'eslint.config.mjs')
-rw-r--r-- | eslint.config.mjs | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/eslint.config.mjs b/eslint.config.mjs index b35601abd..04655ce13 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -3,4 +3,47 @@ import pluginReactConfig from 'eslint-plugin-react/configs/recommended.js'; import globals from 'globals'; import tseslint from 'typescript-eslint'; -export default [{ languageOptions: { globals: { ...globals.browser, ...globals.node } } }, pluginJs.configs.recommended, ...tseslint.configs.recommended, pluginReactConfig]; +export default [ + { + languageOptions: { globals: { ...globals.browser, ...globals.node } }, + }, + pluginJs.configs.recommended, + ...tseslint.configs.recommended, + { + rules: { + 'node/no-missing-import': 0, + 'no-console': 'off', + 'func-names': 'off', + 'no-process-exit': 'off', + 'object-shorthand': 'off', + 'class-methods-use-this': 'off', + 'single-quote': 'off', + 'max-classes-per-file': 0, + + 'react/jsx-filename-extension': [ + 2, + { + extensions: ['.js', '.jsx', '.ts', '.tsx'], + }, + ], + + 'import/prefer-default-export': 'off', + 'no-unused-expressions': 'off', + 'prefer-template': 'off', + 'no-inner-declarations': 'off', + 'no-plusplus': 'off', + 'no-multi-assign': 'off', + 'no-underscore-dangle': 'off', + 'no-nested-ternary': 'off', + 'lines-between-class-members': 'off', + 'no-shadow': 'off', + '@typescript-eslint/no-shadow': 'warn', + 'no-unused-vars': 'off', + '@typescript-eslint/no-unused-vars': 'error', + '@typescript-eslint/no-namespace': 'off', + 'react/destructuring-assignment': 0, + 'no-restricted-globals': ['error', 'event'], + }, + }, + pluginReactConfig, +]; |