Browse Source

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

modood 8 years ago
parent
commit
7db4fb46ed
1 changed files with 15 additions and 0 deletions
  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
+  }
+}
+