acceptedenhancementhelp wanted
仓库指标
- Star
- (956 star)
- PR 合并指标
- (PR 指标待抓取)
描述
it's not a good practice to use non-public api. it would be nice to have a rule warns its usage.
// invalid
var foo = require('foo/bar.js');
// valid
var foo = require('foo');
/* eslint no-private-api: ["error", exceptions: ["foo/bar.js"]]
var foo = require('foo/bar.js');
- a better rule name?
- exceptions defaults to ["*/dist"]?