Explorar o código

使用 Eslint 检查符号 standard 规范的代码

modood %!s(int64=8) %!d(string=hai) anos
pai
achega
7db4fb46ed
Modificáronse 1 ficheiros con 15 adicións e 0 borrados
  1. 15 0
      .eslintrc.js

+ 15 - 0
.eslintrc.js

@@ -0,0 +1,15 @@
+module.exports = {
+  root: true,
+  extends: 'standard',
+  globals: {
+    'describe': true,
+    'context': true,
+    'before': true,
+    'beforeEach': true,
+    'after': true,
+    'afterEach': true,
+    'it': true,
+    'expect': true
+  }
+}
+