UNPKG

eslint-config-bananass

Version:

ESLint Config for Bananass Framework.🍌

44 lines (39 loc) 1.3 kB
/** * @fileoverview Configuration applied when a user configuration extends from `js`. * * - 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 } from '../files.js'; import { globals } from '../language-options.js'; import { importPlugin, nodePlugin, stylisticJsPlugin } from '../plugins.js'; import { eslintRules, importRules, nodeRules, stylisticJsRules } from '../rules/index.js'; import { node } from '../settings.js'; // -------------------------------------------------------------------------------- // Export // -------------------------------------------------------------------------------- /** @type {import("eslint").Linter.Config} */ export default { name: 'bananass/js', files: js, languageOptions: { globals, }, plugins: { ...importPlugin, ...nodePlugin, ...stylisticJsPlugin, }, rules: { ...eslintRules, ...importRules, ...nodeRules, ...stylisticJsRules, }, settings: { node, }, };