5 Star 62 Fork 13

阿森 / js.tree

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 833 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhengxs 提交于 2021-05-19 09:42 . style: 添加尾逗号
module.exports = {
root: true,
env: {
node: true,
browser: true,
es6: true,
},
plugins: ['prettier'],
extends: ['eslint:recommended', 'prettier'],
parserOptions: {
ecmaVersion: 2019,
sourceType: 'module',
},
overrides: [
{
files: ['**/*.ts'],
plugins: ['@typescript-eslint/eslint-plugin', 'eslint-plugin-tsdoc'],
extends: ['plugin:@typescript-eslint/recommended'],
rules: {
'tsdoc/syntax': 'warn',
'@typescript-eslint/explicit-module-boundary-types': 'warn',
'@typescript-eslint/ban-ts-comment': 'warn',
},
parser: '@typescript-eslint/parser',
},
{
files: ['cypress/**/*.spec.js', 'cypress/**/*.spec.ts'],
env: {
'cypress/globals': true,
},
plugins: ['cypress', '@cypress/dev'],
},
],
}
TypeScript
1
https://gitee.com/zhengxs2018/js.tree.git
git@gitee.com:zhengxs2018/js.tree.git
zhengxs2018
js.tree
js.tree
main

搜索帮助