eslint-config-bananass
Version:
ESLint Config for Bananass Framework.🍌
75 lines (67 loc) • 1.73 kB
JavaScript
/**
* @fileoverview Configuration applied when a user configuration extends from `jsx.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.
*/
// --------------------------------------------------------------------------------
// Import
// --------------------------------------------------------------------------------
import { js, jsx } from '../files.js';
import { globals, parserOptions } from '../language-options.js';
import { node, react } from '../settings.js';
import {
importPlugin,
nodePlugin,
stylisticJsPlugin,
jsxA11yPlugin,
reactPlugin,
reactHooksPlugin,
nextPlugin,
} from '../plugins.js';
import {
eslintRules,
importRules,
nodeRules,
stylisticJsRules,
jsxA11yRules,
reactRules,
reactHooksRules,
nextRules,
} from '../rules/index.js';
// --------------------------------------------------------------------------------
// Export
// --------------------------------------------------------------------------------
/** @type {import("eslint").Linter.Config} */
export default {
name: 'bananass/jsx-next',
files: [...js, ...jsx],
languageOptions: {
globals,
parserOptions,
},
plugins: {
...importPlugin,
...nodePlugin,
...stylisticJsPlugin,
...jsxA11yPlugin,
...reactPlugin,
...reactHooksPlugin,
...nextPlugin,
},
rules: {
...eslintRules,
...importRules,
...nodeRules,
...stylisticJsRules,
...jsxA11yRules,
...reactRules,
...reactHooksRules,
...nextRules,
'react/react-in-jsx-scope': 'off',
},
settings: {
node,
react,
},
};