@reskript/config-lint
TypeScript icon, indicating that this package has built-in type declarations

6.2.1 • Public • Published

@reskript/config-lint

提供eslint相关配置。

引用配置

如果你需要自行使用eslint,或者通过编辑器的eslint插件进行代码检查,你需要引用@reskript/config-lint内置的配置。

在项目的目录下,放置一个.eslintrc.js文件,包含以下内容:

module.exports = {
    extends: require.resolve('@reskript/config-lint/config/eslint'),
    // 其它配置
};

因为需要通过require.resolve正确地找到配置的路径,所以配置文件必须使用.js后缀。

Readme

Keywords

none

Package Sidebar

Install

npm i @reskript/config-lint

Weekly Downloads

58

Version

6.2.1

License

MIT

Unpacked Size

24.7 kB

Total Files

15

Last publish

Collaborators

  • ecomfe-core
  • otakustay