mirror of
https://github.com/edward-shen/MMM-pages.git
synced 2025-06-07 03:33:36 -07:00
Compare commits
No commits in common. "563c47f1f6f9b2ae6c3a4f592062fa6ed44abe99" and "6a84961a36228bc3877fcde44ad8db691eb8a7f9" have entirely different histories.
563c47f1f6
...
6a84961a36
7 changed files with 93 additions and 1244 deletions
4
.github/ISSUE_TEMPLATE/Bug_report.md
vendored
4
.github/ISSUE_TEMPLATE/Bug_report.md
vendored
|
@ -26,7 +26,7 @@ have aptly described your issue in words, feel free to ignore/delete this sectio
|
||||||
**Please fill out the following information;**
|
**Please fill out the following information;**
|
||||||
|
|
||||||
- Node version: [This can be obtained by running `node -v` in your terminal]
|
- Node version: [This can be obtained by running `node -v` in your terminal]
|
||||||
- Have you updated to the latest MagicMirror core? (yes/no)
|
- Have you updated to the latest MagicMirror core? [yes/no]
|
||||||
- Please post the relevant part of your config file here:
|
- Please post the relevant part of your config file here:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
@ -35,7 +35,7 @@ have aptly described your issue in words, feel free to ignore/delete this sectio
|
||||||
|
|
||||||
- Please post any errors you see about MMM-pages in the console (Hit F12 > Console when the MagicMirror window is focused), or write **None** if there aren't any:
|
- Please post any errors you see about MMM-pages in the console (Hit F12 > Console when the MagicMirror window is focused), or write **None** if there aren't any:
|
||||||
|
|
||||||
```bash
|
```
|
||||||
(Paste the error here)
|
(Paste the error here)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
2
.github/workflows/automated-tests.yaml
vendored
2
.github/workflows/automated-tests.yaml
vendored
|
@ -23,4 +23,4 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
- name: Check linting
|
- name: Check linting
|
||||||
run: node --run lint
|
run: npm run lint
|
||||||
|
|
|
@ -4,14 +4,6 @@ All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
## [1.1.1](https://github.com/edward-shen/MMM-pages/compare/v1.1.0...v1.1.1) - 2025-03-26 - Maintenance Release
|
|
||||||
|
|
||||||
### Changed
|
|
||||||
|
|
||||||
- chore: review ESLint config and add markdown linting
|
|
||||||
- chore: update devDependencies
|
|
||||||
- chore: use `node --run` instead of `npm run` to run scripts
|
|
||||||
|
|
||||||
## [1.1.0](https://github.com/edward-shen/MMM-pages/compare/v1.0.1...v1.1.0) - 2025-03-25 - Feature Release
|
## [1.1.0](https://github.com/edward-shen/MMM-pages/compare/v1.0.1...v1.1.0) - 2025-03-25 - Feature Release
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
|
@ -285,8 +285,8 @@ See also FAQ below.
|
||||||
If you want to contribute to this project, pleases use the following commands to maintain code quality:
|
If you want to contribute to this project, pleases use the following commands to maintain code quality:
|
||||||
|
|
||||||
- `npm install` - Install development dependencies for linting.
|
- `npm install` - Install development dependencies for linting.
|
||||||
- `node --run lint` - Run linting checks.
|
- `npm run lint` - Run linting checks.
|
||||||
- `node --run lint:fix` - Fix linting issues. Please run this before committing.
|
- `npm run lint:fix` - Fix linting issues. Please run this before committing.
|
||||||
|
|
||||||
[mm]: https://github.com/MagicMirrorOrg/MagicMirror
|
[mm]: https://github.com/MagicMirrorOrg/MagicMirror
|
||||||
[page indicator]: https://github.com/edward-shen/MMM-page-indicator
|
[page indicator]: https://github.com/edward-shen/MMM-page-indicator
|
||||||
|
|
|
@ -1,14 +1,13 @@
|
||||||
import { defineConfig } from 'eslint/config';
|
import eslintPluginJs from '@eslint/js';
|
||||||
|
import eslintPluginStylistic from '@stylistic/eslint-plugin';
|
||||||
import globals from 'globals';
|
import globals from 'globals';
|
||||||
import js from '@eslint/js';
|
|
||||||
import markdown from '@eslint/markdown';
|
|
||||||
import stylistic from '@stylistic/eslint-plugin';
|
|
||||||
|
|
||||||
export default defineConfig([
|
const config = [
|
||||||
|
eslintPluginJs.configs.recommended,
|
||||||
|
eslintPluginStylistic.configs.recommended,
|
||||||
{
|
{
|
||||||
files: ['**/*.js'],
|
files: ['**/*.js', '**/*.mjs'],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
ecmaVersion: 'latest',
|
|
||||||
globals: {
|
globals: {
|
||||||
...globals.browser,
|
...globals.browser,
|
||||||
Log: 'readonly',
|
Log: 'readonly',
|
||||||
|
@ -17,30 +16,14 @@ export default defineConfig([
|
||||||
module: 'readonly',
|
module: 'readonly',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
plugins: { js, stylistic },
|
|
||||||
extends: ['js/recommended', 'stylistic/recommended'],
|
|
||||||
rules: {
|
rules: {
|
||||||
'@stylistic/brace-style': ['error', '1tbs', { allowSingleLine: true }],
|
'@stylistic/brace-style': ['error', '1tbs', { allowSingleLine: true }],
|
||||||
'@stylistic/comma-dangle': ['error', 'only-multiline'],
|
'@stylistic/comma-dangle': ['error', 'only-multiline'],
|
||||||
'@stylistic/max-statements-per-line': ['error', { max: 2 }],
|
'@stylistic/max-statements-per-line': ['error', { max: 2 }],
|
||||||
'@stylistic/semi': ['error', 'always'],
|
'@stylistic/semi': ['error', 'always'],
|
||||||
}
|
'object-shorthand': ['error', 'always']
|
||||||
},
|
|
||||||
{
|
|
||||||
files: ['**/*.mjs'],
|
|
||||||
languageOptions: {
|
|
||||||
ecmaVersion: 'latest',
|
|
||||||
globals: {
|
|
||||||
...globals.node,
|
|
||||||
},
|
|
||||||
sourceType: 'module'
|
|
||||||
},
|
},
|
||||||
plugins: { js, stylistic },
|
}
|
||||||
extends: ['js/recommended', 'stylistic/recommended'],
|
];
|
||||||
rules: {
|
|
||||||
'@stylistic/comma-dangle': ['error', 'only-multiline'],
|
export default config;
|
||||||
'@stylistic/semi': ['error', 'always'],
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ files: ['**/*.md'], plugins: { markdown }, language: 'markdown/gfm', extends: ['markdown/recommended'] },
|
|
||||||
]);
|
|
||||||
|
|
1269
package-lock.json
generated
1269
package-lock.json
generated
File diff suppressed because it is too large
Load diff
11
package.json
11
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mmm-pages",
|
"name": "mmm-pages",
|
||||||
"version": "1.1.1",
|
"version": "1.1.0",
|
||||||
"description": "Add pages to your MagicMirror².",
|
"description": "Add pages to your MagicMirror².",
|
||||||
"main": "MMM-pages.js",
|
"main": "MMM-pages.js",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -21,13 +21,12 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "eslint",
|
"lint": "eslint",
|
||||||
"lint:fix": "eslint --fix",
|
"lint:fix": "eslint --fix",
|
||||||
"test": "node --run lint"
|
"test": "npm run lint"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint/js": "^9.27.0",
|
"@eslint/js": "^9.23.0",
|
||||||
"@eslint/markdown": "^6.4.0",
|
|
||||||
"@stylistic/eslint-plugin": "^4.2.0",
|
"@stylistic/eslint-plugin": "^4.2.0",
|
||||||
"eslint": "^9.27.0",
|
"eslint": "^9.23.0",
|
||||||
"globals": "^16.1.0"
|
"globals": "^16.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue