securityos/node_modules/eslint-plugin-sort-keys-fix/lib/index.js

19 lines
715 B
JavaScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
/**
* @fileoverview Fork of eslint rule that sorts keys in objects (https://eslint.org/docs/rules/sort-keys) with autofix enabled
* @author Leonid Buneev
*/
'use strict'
const path = require('path')
// ------------------------------------------------------------------------------
// Requirements
// ------------------------------------------------------------------------------
const requireIndex = require('requireindex')
// ------------------------------------------------------------------------------
// Plugin Definition
// ------------------------------------------------------------------------------
// import all rules in lib/rules
module.exports.rules = requireIndex(path.join(__dirname, 'rules'))