@lesjoursfr/postcss-extract-css-variables 2.0.3 → 2.0.4
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 +47 -0
- package/package.json +12 -10
- package/{.prettierrc.js → prettier.config.mjs} +4 -2
- package/.eslintrc.js +0 -15
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import eslint from "@eslint/js";
|
|
2
|
+
import prettierConfig from "eslint-config-prettier";
|
|
3
|
+
import jest from "eslint-plugin-jest";
|
|
4
|
+
import globals from "globals";
|
|
5
|
+
|
|
6
|
+
export default [
|
|
7
|
+
eslint.configs.recommended,
|
|
8
|
+
{
|
|
9
|
+
languageOptions: {
|
|
10
|
+
ecmaVersion: 2022,
|
|
11
|
+
globals: {
|
|
12
|
+
...globals.es2022,
|
|
13
|
+
...globals.node,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
rules: {
|
|
17
|
+
"no-unused-vars": [
|
|
18
|
+
"error",
|
|
19
|
+
{
|
|
20
|
+
vars: "all",
|
|
21
|
+
args: "after-used",
|
|
22
|
+
argsIgnorePattern: "^_",
|
|
23
|
+
caughtErrors: "all",
|
|
24
|
+
caughtErrorsIgnorePattern: "^_",
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
files: ["index.test.js"],
|
|
31
|
+
...jest.configs["flat/recommended"],
|
|
32
|
+
rules: {
|
|
33
|
+
...jest.configs["flat/recommended"].rules,
|
|
34
|
+
"jest/expect-expect": "off",
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
prettierConfig,
|
|
38
|
+
{
|
|
39
|
+
ignores: [
|
|
40
|
+
"package.json",
|
|
41
|
+
"node_modules/*",
|
|
42
|
+
".yarn/*",
|
|
43
|
+
"test/*",
|
|
44
|
+
"coverage/*",
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lesjoursfr/postcss-extract-css-variables",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "PostCSS plugin to extract rules with CSS variables",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "lesjoursfr/postcss-extract-css-variables",
|
|
@@ -19,25 +19,27 @@
|
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
21
|
"freshlock": "rm -rf node_modules/ && rm .yarn/install-state.gz && rm yarn.lock && yarn",
|
|
22
|
-
"check-lint": "eslint
|
|
22
|
+
"check-lint": "eslint",
|
|
23
23
|
"check-format": "prettier --check .",
|
|
24
|
-
"lint": "eslint
|
|
24
|
+
"lint": "eslint --fix",
|
|
25
25
|
"format": "prettier --write .",
|
|
26
26
|
"test": "jest --coverage"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
|
-
"node": "
|
|
29
|
+
"node": "20.x || 22.x"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"postcss": "^8.4.
|
|
32
|
+
"postcss": "^8.4.40"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"eslint": "^8.
|
|
35
|
+
"@eslint/js": "^9.8.0",
|
|
36
|
+
"eslint": "^9.8.0",
|
|
36
37
|
"eslint-config-prettier": "^9.1.0",
|
|
37
|
-
"eslint-plugin-jest": "^
|
|
38
|
+
"eslint-plugin-jest": "^28.6.0",
|
|
39
|
+
"globals": "^15.9.0",
|
|
38
40
|
"jest": "^29.7.0",
|
|
39
|
-
"postcss": "^8.4.
|
|
40
|
-
"prettier": "^3.
|
|
41
|
+
"postcss": "^8.4.40",
|
|
42
|
+
"prettier": "^3.3.3"
|
|
41
43
|
},
|
|
42
44
|
"jest": {
|
|
43
45
|
"coverageThreshold": {
|
|
@@ -46,5 +48,5 @@
|
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
50
|
},
|
|
49
|
-
"packageManager": "yarn@4.1
|
|
51
|
+
"packageManager": "yarn@4.3.1"
|
|
50
52
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
const config = {
|
|
2
2
|
printWidth: 120,
|
|
3
3
|
trailingComma: "es5",
|
|
4
4
|
overrides: [
|
|
5
5
|
{
|
|
6
|
-
files: [".
|
|
6
|
+
files: ["eslint.config.mjs", "prettier.config.mjs", "*.json", "*.md"],
|
|
7
7
|
options: {
|
|
8
8
|
printWidth: 80,
|
|
9
9
|
},
|
|
@@ -16,3 +16,5 @@ module.exports = {
|
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
18
|
};
|
|
19
|
+
|
|
20
|
+
export default config;
|
package/.eslintrc.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-undef */
|
|
2
|
-
module.exports = {
|
|
3
|
-
parserOptions: {
|
|
4
|
-
ecmaVersion: 2017,
|
|
5
|
-
},
|
|
6
|
-
env: {
|
|
7
|
-
node: true,
|
|
8
|
-
es6: true,
|
|
9
|
-
},
|
|
10
|
-
extends: ["eslint:recommended", "plugin:jest/recommended"],
|
|
11
|
-
rules: {
|
|
12
|
-
"jest/expect-expect": "off",
|
|
13
|
-
semi: ["error", "always"],
|
|
14
|
-
},
|
|
15
|
-
};
|