@alphatr/eslint-config-commonjs

EcmaScript Style Guide for CommonJS

Usage no npm install needed!

<script type="module">
  import alphatrEslintConfigCommonjs from 'https://cdn.skypack.dev/@alphatr/eslint-config-commonjs';
</script>

README

eslint-config-commonjs

ESLint 用于 Webpack,Browserify 等带有 CommonJS 模块的规则

Install

$ npm install --save-dev @alphatr/eslint-config-commonjs

使用

在项目根目录下新建 .eslintrc.js 文件,写入如下内容:

module.exports = {
    extends: '@alphatr/eslint-config-commonjs',
};

License

MIT