18 Star 59 Fork 19

MichaelSun / watermark-js-plus

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.cjs 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
MichaelSun 提交于 2022-12-03 12:16 . feat: add initial version
module.exports = {
parser: '@typescript-eslint/parser', // 解析器,默认使用Espree
env: { // 指定脚本的运行环境。每种环境都有一组特定的预定义全局变量。
browser: true, // 运行在浏览器
es2021: true, // 支持es2021
es6: true,
},
extends: [ // 使用的外部代码格式化配置文件
'semistandard',
'plugin:import/recommended'
],
plugins: [
'import'
],
parserOptions: {
ecmaVersion: 12, // ecmaVersion 用来指定支持的 ECMAScript 版本 。默认为 5,即仅支持es5
sourceType: 'module',
},
globals: { // 脚本在执行期间访问的额外的全局变量
describe: true,
it: true,
after: true,
before: true,
afterEach: true,
beforeEach: true,
__BUILD__: true,
__DEV__: true,
__SIT__: true,
__UAT__: true,
__PROD__: true
},
rules: {
// 启用的规则及其各自的错误级别。0(off) 1(warning) 2(error)
'no-console': 0,
semi: [1, 'never'],
quotes: [1, 'single'],
'no-unused-vars': 0,
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx']
}
}
},
};
TypeScript
1
https://gitee.com/cs_huayi_zhensherlock/watermark-js-plus.git
git@gitee.com:cs_huayi_zhensherlock/watermark-js-plus.git
cs_huayi_zhensherlock
watermark-js-plus
watermark-js-plus
main

搜索帮助