Skip to content

Commit

Permalink
Remove jquery (#93)
Browse files Browse the repository at this point in the history
* update dependencies

* format documents

* optimise dev configs

* remove jQuery

* lint code

* fix replace bugs

* now scripts can run(polyfill needed?)

* use replaceChild instead of replaceWith
  • Loading branch information
xiazeyu authored and D0n9X1n committed Aug 20, 2019
1 parent 338c4b9 commit 811b53a
Show file tree
Hide file tree
Showing 12 changed files with 336 additions and 503 deletions.
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ max_line_length = null

[*.md]
trim_trailing_whitespace = false

199 changes: 0 additions & 199 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,204 +4,5 @@ module.exports = {
'commonjs': true,
'es6': true
},
// 'extends': 'eslint:all',
'extends': 'eslint:recommended',
'parserOptions': {
'sourceType': 'script'
},
'rules': {
'indent': [
'error',
2
],
'linebreak-style': [
'error',
'unix',
],
'quotes': [
'error',
'single',
],
'semi': [
'error',
'always',
],
'no-console': 'off',
'no-extra-parens': [
'error',
],
'valid-jsdoc': [
'warn',
],
'array-callback-return': [
'error',
],
'block-scoped-var': [
'warn',
],
'consistent-return': [
'error',
{
'treatUndefinedAsUnspecified': true,
}
],
'curly': [
'warn',
'all',
],
'default-case': [
'error',
],
'dot-location': [
'error',
'property',
],
'dot-notation': [
'warn',
],
'eqeqeq': [
'error',
],
'no-else-return': [
'error',
],
'no-empty-function': [
'error',
],
'no-magic-numbers': [
'warn',
],
'no-multi-spaces': [
'warn',
],
'no-return-assign': [
'error',
],
'no-sequences': [
'warn',
],
'no-useless-concat': [
'error',
],
'no-useless-return': [
'warn',
],
'strict': [
'error',
],
'no-catch-shadow': [
'error',
],
'no-shadow': [
'error',
],
'no-use-before-define': [
'error',
],
'global-require': [
'error',
],
'array-bracket-newline': [
'warn',
],
'array-bracket-spacing': [
'error',
],
'block-spacing': [
'error',
],
'brace-style': [
'error',
],
'camelcase': [
'error',
],
'comma-dangle': [
'error',
'always',
],
'capitalized-comments': [
'warn',
],
'comma-spacing': [
'warn',
],
'comma-style': [
'warn',
],
'eol-last': [
'warn',
],
'func-names': [
'error',
],
'new-parens': [
'error',
],
'no-lonely-if': [
'error',
],
'no-mixed-operators': [
'error',
],
'no-trailing-spaces': [
'error',
],
'no-unneeded-ternary': [
'error',
],
'one-var': [
'error',
'never',
],
'space-before-function-paren': [
'error'
],
'space-before-blocks': [
'error',
],
'space-in-parens': [
'error',
],
'arrow-body-style': [
'error',
],
'arrow-parens': [
'error',
],
'arrow-spacing': [
'error',
],
'no-var': [
'error',
],
'prefer-const': [
'error',
],
'prefer-template': [
'error',
],
'space-infix-ops': [
'error',
],
'space-unary-ops': [
'error',
],
'spaced-comment': [
'error',
],
'quote-props': [
'error',
],
'require-jsdoc': [
'error',
],
'func-style': [
'warn',
'declaration',
],
'padded-blocks': [
'warn',
],
},
};
30 changes: 14 additions & 16 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
## How to Contribute to This Project
# How to Contribute to This Project

#### **Did You Find a Bug?**
## **Did You Find a Bug?**

* **Ensure the bug was not already reported** by searching on GitHub under [Issues].
* If you're unable to find an open issue addressing the problem, [open a new one]. Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not occurring.
- **Ensure the bug was not already reported** by searching on GitHub under [Issues].
- If you're unable to find an open issue addressing the problem, [open a new one]. Be sure to include a **title and clear description**, as much relevant information as possible, and a **code sample** or an **executable test case** demonstrating the expected behavior that is not occurring.

#### **Did You Write a Patch That Fixes a Bug?**
## **Did You Write a Patch That Fixes a Bug?**

* Open a new GitHub pull request with the patch.
1. Fork this project
1. Create your feature branch: `git checkout -b my-new-feature`
1. Commit your changes: `git commit -am 'Add some feature'`
1. Push to the branch: `git push origin my-new-feature`
1. Submit a pull request :tada:
* Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
- Open a new GitHub pull request with the patch.
1. Fork this project
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :tada:
- Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.

#### **Do You Intend to Add a New Feature or Change an Existing One?**
## **Do You Intend to Add a New Feature or Change an Existing One?**

* Suggest your change as a new [issue] using the label `enhancement` **BEFORE** you start writing code.
- Suggest your change as a new [issue] using the label `enhancement` **BEFORE** you start writing code.

Thanks for contributing! :heart:


11 changes: 6 additions & 5 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
## Expected Behavior
# Issue

## Expected Behavior

## Actual Behavior


## Steps to Reproduce the Problem

1.
1.
1.
1. _
2. _
3. _

## Specifications

(The version of the project, operating system, hardware etc.)
7 changes: 5 additions & 2 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
# PR

Issue Fixed #

## Proposed Changes

-
- -
- _
- _
- _

@MikeCoder
Loading

0 comments on commit 811b53a

Please sign in to comment.