1
0
phillip055 7 жил өмнө
parent
commit
7e8b983fb5
1 өөрчлөгдсөн 19 нэмэгдсэн , 0 устгасан
  1. 19 0
      pages/common/eslint.md

+ 19 - 0
pages/common/eslint.md

@@ -0,0 +1,19 @@
+# eslint
+
+> Find problematic patterns or code that doesn’t adhere to certain style guidelines
+
+- Create eslint config:
+
+`eslint --init`
+
+- Fix lint:
+
+`eslint --fix`
+
+- Lint on files:
+
+`eslint {filename}.js`
+
+- Lint with config:
+
+`eslint -c {config file path} {filename}.js`