Skip to content

Commit

Permalink
v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bugsounet authored Feb 17, 2024
2 parents 12dbfb7 + 548db43 commit c6bfeb9
Show file tree
Hide file tree
Showing 13 changed files with 3,522 additions and 787 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
components/progressbar.js
components/long-press-event.js
64 changes: 64 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
module.exports = {
extends: ["eslint:recommended", "plugin:@stylistic/all-extends", "plugin:import/recommended"],
env: {
es2023: true,
node: true
},
parserOptions: {
sourceType: "module",
ecmaVersion: 2023,
ecmaFeatures: {
globalReturn: true
}
},
globals: {
config: true,
Log: true,
MM: true,
Module: true,
moment: true,
document: true
},
rules: {
eqeqeq: "error",
"import/order": "error",
"import/extensions": [
"error",
"ignorePackages",
{
json: "always" // ignore json require (display EXT version and rev date)
}
],
"import/newline-after-import": "error",
"no-param-reassign": "error",
"no-prototype-builtins": "off",
"no-throw-literal": "error",
"no-unused-vars": "off",
"no-useless-return": "error",
"object-shorthand": ["error", "methods"],
"prefer-template": "error",
"@stylistic/array-element-newline": ["error", "consistent"],
"@stylistic/arrow-parens": ["error", "always"],
"@stylistic/brace-style": "off",
"@stylistic/comma-dangle": ["error", "never"],
"@stylistic/dot-location": ["error", "property"],
"@stylistic/function-call-argument-newline": ["error", "consistent"],
"@stylistic/function-paren-newline": ["error", "consistent"],
"@stylistic/implicit-arrow-linebreak": ["error", "beside"],
"@stylistic/max-statements-per-line": ["error", { max: 2 }],
"@stylistic/multiline-ternary": ["error", "always-multiline"],
"@stylistic/newline-per-chained-call": ["error", { ignoreChainWithDepth: 4 }],
"@stylistic/no-extra-parens": "off",
"@stylistic/no-tabs": "off",
"@stylistic/object-curly-spacing": ["error", "always"],
"@stylistic/object-property-newline": ["error", { allowAllPropertiesOnSameLine: true }],
"@stylistic/operator-linebreak": ["error", "before"],
"@stylistic/padded-blocks": "off",
"@stylistic/quote-props": ["error", "as-needed"],
"@stylistic/quotes": ["error", "double"],
"@stylistic/indent": ["error", 2], // indent 2 spaces
"@stylistic/semi": ["error", "always"],
"@stylistic/space-before-function-paren": ["error", "always"],
"@stylistic/spaced-comment": "off"
}
};
18 changes: 18 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "ESLint Testing"

on: [pull_request]

jobs:
eslint:
name: Run eslint scanning
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install Dependencies
run: npm prune

- name: Run ESLint
run: npx eslint *.js installer/*.js components/*.js --config .eslintrc.js
continue-on-error: false
Loading

0 comments on commit c6bfeb9

Please sign in to comment.