# es/no-modules

disallow modules

  • ✅ The following configurations enable this rule: plugin:es/no-new-in-es2015, plugin:es/restrict-to-es3, and plugin:es/restrict-to-es5

This rule reports ES2015 modules as errors.

# Examples

⛔ Examples of incorrect code for this rule:

/*eslint es/no-modules: error */ import x1 from "x1" import {x2} from "x2" import * as x3 from "x3" export default function() {} export { x1 } from "x4" export { x2 }
Now loading...

# 📚 References