@honkit/honkit-plugin-fontsettings 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/eslint.config.mjs +3 -44
- package/package.json +3 -5
package/eslint.config.mjs
CHANGED
|
@@ -1,45 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
4
|
-
import js from '@eslint/js';
|
|
5
|
-
import { FlatCompat } from '@eslint/eslintrc';
|
|
6
|
-
import stylisticJs from '@stylistic/eslint-plugin-js';
|
|
1
|
+
// eslint.config.mjs
|
|
2
|
+
import { eslintConfig } from "@honkit/cleaning-tools";
|
|
7
3
|
|
|
8
|
-
|
|
9
|
-
const __dirname = path.dirname(__filename);
|
|
10
|
-
const compat = new FlatCompat({
|
|
11
|
-
baseDirectory: __dirname,
|
|
12
|
-
recommendedConfig: js.configs.recommended,
|
|
13
|
-
allConfig: js.configs.all
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
export default [...compat.extends('eslint:recommended'), {
|
|
17
|
-
plugins: {
|
|
18
|
-
'@stylistic/js': stylisticJs,
|
|
19
|
-
},
|
|
20
|
-
languageOptions: {
|
|
21
|
-
globals: {
|
|
22
|
-
...globals.node,
|
|
23
|
-
...globals.mocha,
|
|
24
|
-
...globals.browser,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
rules: {
|
|
29
|
-
'@stylistic/js/indent': [2, 4],
|
|
30
|
-
'@stylistic/js/quotes': [2, 'single'],
|
|
31
|
-
'linebreak-style': [2, 'unix'],
|
|
32
|
-
semi: [2, 'always'],
|
|
33
|
-
|
|
34
|
-
'no-unused-vars': [2, {
|
|
35
|
-
vars: 'all',
|
|
36
|
-
args: 'none',
|
|
37
|
-
}],
|
|
38
|
-
|
|
39
|
-
'spaced-comment': [2, 'always'],
|
|
40
|
-
'no-var': 'error',
|
|
41
|
-
'prefer-arrow-callback': 'error',
|
|
42
|
-
'prefer-const': 'error',
|
|
43
|
-
'prefer-template': 'error',
|
|
44
|
-
},
|
|
45
|
-
}];
|
|
4
|
+
export default [...eslintConfig];
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@honkit/honkit-plugin-fontsettings",
|
|
3
3
|
"description": "Fonts and colors themes settings the website for a better reading experience",
|
|
4
4
|
"main": "index.js",
|
|
5
|
-
"version": "6.0.
|
|
5
|
+
"version": "6.0.2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"homepage": "https://github.com/honkit/honkit",
|
|
8
8
|
"engines": {
|
|
@@ -19,10 +19,8 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@
|
|
23
|
-
"@eslint/js": "^9.12.0",
|
|
22
|
+
"@honkit/cleaning-tools": "6.0.2",
|
|
24
23
|
"eslint": "^9.12.0",
|
|
25
|
-
"globals": "^15.0.0",
|
|
26
24
|
"less": "^4.2.0"
|
|
27
25
|
},
|
|
28
26
|
"scripts": {
|
|
@@ -61,5 +59,5 @@
|
|
|
61
59
|
}
|
|
62
60
|
}
|
|
63
61
|
},
|
|
64
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "9dcd51c588177ee3a684788c633a67b82dea82a5"
|
|
65
63
|
}
|