-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7973c6
commit fd47a3f
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
packages/eslint-config-bananass-react/src/configs/recommended.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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, | ||
}, | ||
}; |