1 Star 2 Fork 2

一言开源社区(镜像) / hitokoto-api

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 993 Bytes
一键复制 编辑 原始数据 按行查看 历史
a632079 提交于 2022-11-24 00:35 . fix(test): test-suit not work
module.exports = {
root: true,
extends: ['standard', 'plugin:prettier/recommended'],
plugins: ['prettier'],
parserOptions: {
ecmaVersion: '2021',
sourceType: 'script',
},
parser: '@babel/eslint-parser',
env: {
commonjs: true,
es6: true,
node: true,
},
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
overrides: [
{
files: ['**/*.test.js', 'test/__jest__/*.js'],
env: {
jest: true, // now **/*.test.js files' env has both es6 *and* jest
},
// Can't extend in overrides: https://github.com/eslint/eslint/issues/8813
// "extends": ["plugin:jest/recommended"]
plugins: ['jest'],
rules: {
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
},
},
],
rules: {
'prettier/prettier': ['error'],
},
}
1
https://gitee.com/hitokoto-osc/hitokoto-api.git
git@gitee.com:hitokoto-osc/hitokoto-api.git
hitokoto-osc
hitokoto-api
hitokoto-api
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891