Closed StewEucen closed 4 months ago
// index.js (main of package.json) const initials = require('./rules/initials') const standard = require('./rules/standard') /** * @type {ESLintDefaultRules} */ module.exports = { initials, standard, } /** * @typedef {{ * [x: string]: Array<*> // FIXME: fulfill `*` actually * }} ESLintDefaultRules */
// ❌ module.exports = { standard: { initials, stylistic, }, } // ✅ module.exports = { initials, stylistic, standard, }
initials
@stylistic
module.exports = { initials, stylistic, standard, }
// index.js (main of package.json) export core from './rules/core' export plugins from './rules/plugins' // ./rules/plugins.js export stylistic from './stylistic' export jest from './jest' export jsdoc from './jsdoc' // ./rules/plugins/stylistic.js export js from './js' export plus from './plus' // types.js /** * @typedef {{ * [x: string]: Array<*> // FIXME: fulfill `*` actually * }} ESLintDefaultRules */
non-stylistic
essentials
Overview
Note
initials
is unnecessary, because@stylistic
includesinitials
Decision Spec
Should all rules be handled in this repository or not?