From c93e7fec31b31df0ab2edebf3bfcf910d2ed6521 Mon Sep 17 00:00:00 2001 From: ZYSzys <17367077526@163.com> Date: Sun, 25 Nov 2018 15:20:52 +0800 Subject: [PATCH] :hearts: lint done --- .editorconfig | 9 +++++++++ .gitignore | 4 +++- .travis.yml | 14 ++++++++++---- README-zh.md | 6 +++--- README.md | 6 +++--- package.json | 26 ++++++++++++++++++++++++++ test.js | 5 +++++ 7 files changed, 59 insertions(+), 11 deletions(-) create mode 100644 .editorconfig create mode 100644 package.json create mode 100644 test.js diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c6c8b36 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.gitignore b/.gitignore index 10c8103..7cecf7d 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -*/.DS_Store \ No newline at end of file +*/.DS_Store +node_modules +package-lock.json diff --git a/.travis.yml b/.travis.yml index 02b45b3..aa4dd2e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,12 @@ -language: ruby -rvm: 2.4.1 -before_script: gem install awesome_bot -script: awesome_bot README.md --allow-redirect --allow-dupe +matrix: + include: + - language: ruby + rvm: 2.4.1 + before_script: gem install awesome_bot + script: awesome_bot README.md --allow-redirect --allow-dupe + + - language: node_js + node_js: 10 + notifications: email: false diff --git a/README-zh.md b/README-zh.md index 2d94719..4238980 100644 --- a/README-zh.md +++ b/README-zh.md @@ -4,7 +4,6 @@ [CAPTCHA](https://en.wikipedia.org/wiki/CAPTCHA) is a type of challenge–response test used in computing to determine whether or not the user is human. -**Pull requests are welcome** [English](README.md) | [中文](README-zh.md) @@ -13,10 +12,11 @@ - [Libraries](#libraries) - [Generation](#generation) - [Crack](#crack) - - [General](#general) - - [Chinese](#chinese) + - [General](#general) + - [Chinese](#chinese) - [Tools](#tools) - [Other](#other) +- [Maintainers](#maintainers) ## Libraries diff --git a/README.md b/README.md index 6816c96..350f523 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,6 @@ [CAPTCHA](https://en.wikipedia.org/wiki/CAPTCHA) is a type of challenge–response test used in computing to determine whether or not the user is human. -**Pull requests are welcome** [English](README.md) | [中文](README-zh.md) @@ -13,10 +12,11 @@ - [Libraries](#libraries) - [Generation](#generation) - [Crack](#crack) - - [General](#general) - - [Chinese](#chinese) + - [General](#general) + - [Chinese](#chinese) - [Tools](#tools) - [Other](#other) +- [Maintainers](#maintainers) ## Libraries diff --git a/package.json b/package.json new file mode 100644 index 0000000..ef1caa7 --- /dev/null +++ b/package.json @@ -0,0 +1,26 @@ +{ + "name": "awesome-captcha", + "version": "0.0.1", + "description": "Curated list of awesome captcha libraries and captcha crack tools.", + "main": "index.js", + "scripts": { + "test": "node test.js" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/ZYSzys/awesome-captcha.git" + }, + "keywords": [ + "awesome", + "captcha" + ], + "author": "ZYSzys <17367077526@163.com> (http://zyszys.top/)", + "license": "MIT", + "bugs": { + "url": "https://github.com/ZYSzys/awesome-captcha/issues" + }, + "homepage": "https://github.com/ZYSzys/awesome-captcha#readme", + "devDependencies": { + "awesome-lint": "0.8.0" + } +} diff --git a/test.js b/test.js new file mode 100644 index 0000000..1f9b9d9 --- /dev/null +++ b/test.js @@ -0,0 +1,5 @@ +'use strict'; + +const awesomeLint = require('awesome-lint'); + +awesomeLint.report({ filename: 'README.md'});