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, + }, +};