eslint-config-bananass
Version:
ESLint Config for Bananass Framework.🍌
77 lines (70 loc) • 1.8 kB
JavaScript
/**
* @fileoverview Configuration applied when a user configuration extends from `tsx.react`.
*
* - 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 { ts, tsx } = require('../files');
const { globals, parser, parserOptions } = require('../language-options');
const { node, react } = require('../settings');
const {
importPlugin,
nodePlugin,
stylisticJsPlugin,
jsxA11yPlugin,
reactPlugin,
reactCompilerPlugin,
reactHooksPlugin,
typescriptPlugin,
} = require('../plugins');
const {
eslintRules,
importRules,
nodeRules,
stylisticJsRules,
jsxA11yRules,
reactRules,
reactCompilerRules,
reactHooksRules,
typescriptRules,
} = require('../rules');
// --------------------------------------------------------------------------------
// Exports
// --------------------------------------------------------------------------------
module.exports = {
name: 'bananass/tsx-react',
files: [...ts, ...tsx],
languageOptions: {
globals,
parser,
parserOptions,
},
plugins: {
...importPlugin,
...nodePlugin,
...stylisticJsPlugin,
...jsxA11yPlugin,
...reactPlugin,
...reactCompilerPlugin,
...reactHooksPlugin,
...typescriptPlugin,
},
rules: {
...eslintRules,
...importRules,
...nodeRules,
...stylisticJsRules,
...jsxA11yRules,
...reactRules,
...reactCompilerRules,
...reactHooksRules,
...typescriptRules,
},
settings: {
node,
react,
},
};