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