From fd47a3f2b441ef4c3e768c014c37eb0c057ec889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EB=A3=A8=EB=B0=80LuMir?= Date: Tue, 14 Jan 2025 18:02:01 +0900 Subject: [PATCH] wip: create `recommended.js` --- .../src/configs/recommended.js | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 packages/eslint-config-bananass-react/src/configs/recommended.js diff --git a/packages/eslint-config-bananass-react/src/configs/recommended.js b/packages/eslint-config-bananass-react/src/configs/recommended.js new file mode 100644 index 0000000..a33467a --- /dev/null +++ b/packages/eslint-config-bananass-react/src/configs/recommended.js @@ -0,0 +1,36 @@ +/** + * @fileoverview Configuration applied when a user configuration extends from `recommended`. + * + * - Values not explicitly defined on the object will use their default values. + * - Use the config inspector (`--inspect-config` in the CLI) to test which config objects apply to a specific file. + */ + +// -------------------------------------------------------------------------------- +// Require +// -------------------------------------------------------------------------------- + +const bananass = require('eslint-config-bananass'); + +// -------------------------------------------------------------------------------- +// Exports +// -------------------------------------------------------------------------------- + +module.exports = { + name: 'bananass-react/recommended', + files: ['**/*.js', '**/*.cjs', '**/*.mjs', '**/*.jsx'], + languageOptions: { + ...bananass.configs.recommended.languageOptions, + + parserOptions: { + ecmaFeatures: { + jsx: true, + }, + }, + }, + plugins: { + ...bananass.configs.recommended.plugins, + }, + rules: { + ...bananass.configs.recommended.rules, + }, +};