punchcutter 2.0.7 → 2.0.9
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/.eslintrc.cjs +24 -0
- package/.prettierrc.cjs +13 -0
- package/package.json +4 -20
- package/.eslintrc.json +0 -128
- package/.prettierrc +0 -13
package/.eslintrc.cjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
browser: true,
|
|
5
|
+
jquery: true,
|
|
6
|
+
mocha: true,
|
|
7
|
+
node: true
|
|
8
|
+
},
|
|
9
|
+
plugins: ['prettier'],
|
|
10
|
+
extends: ['eslint:recommended', 'prettier'],
|
|
11
|
+
rules: {
|
|
12
|
+
'no-undef': 'error',
|
|
13
|
+
'no-unsafe-finally': 'error',
|
|
14
|
+
'no-unsafe-negation': 'error',
|
|
15
|
+
'no-unsafe-optional-chaining': 'error',
|
|
16
|
+
'no-var': 'error'
|
|
17
|
+
},
|
|
18
|
+
parser: 'espree',
|
|
19
|
+
parserOptions: {
|
|
20
|
+
ecmaVersion: 2015,
|
|
21
|
+
requireConfigFile: true,
|
|
22
|
+
sourceType: 'module'
|
|
23
|
+
}
|
|
24
|
+
};
|
package/.prettierrc.cjs
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "punchcutter",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.9",
|
|
4
4
|
"description": "Build fonts",
|
|
5
5
|
"main": "lib/punchcutter.js",
|
|
6
6
|
"repository": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"url": "git://github.com/netbek/punchcutter"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
|
-
"format-js": "prettier --parser
|
|
11
|
+
"format-js": "prettier --parser espree --write \"{lib,test}/*.js\"",
|
|
12
12
|
"test": "make test"
|
|
13
13
|
},
|
|
14
14
|
"author": {
|
|
@@ -21,35 +21,20 @@
|
|
|
21
21
|
"url": "https://github.com/netbek/punchcutter/issues"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@babel/core": "7.22.1",
|
|
25
|
-
"@babel/eslint-parser": "7.21.8",
|
|
26
24
|
"autoprefixer": "10.4.14",
|
|
27
|
-
"babel-loader": "8.3.0",
|
|
28
|
-
"babel-plugin-lodash": "3.3.4",
|
|
29
|
-
"babel-plugin-transform-class-properties": "6.24.1",
|
|
30
25
|
"bluebird": "3.7.2",
|
|
31
26
|
"chalk": "4.1.2",
|
|
32
27
|
"cheerio": "0.22.0",
|
|
33
28
|
"directory-colorfy": "https://github.com/netbek/directory-colorfy.git#netbek-jsdom-9",
|
|
34
29
|
"eslint": "8.41.0",
|
|
35
|
-
"eslint-config-airbnb": "19.0.4",
|
|
36
30
|
"eslint-config-prettier": "8.8.0",
|
|
37
|
-
"eslint-plugin-babel": "5.3.1",
|
|
38
|
-
"eslint-plugin-dollar-sign": "1.0.2",
|
|
39
|
-
"eslint-plugin-html": "6.2.0",
|
|
40
|
-
"eslint-plugin-import": "2.27.5",
|
|
41
|
-
"eslint-plugin-jsdoc": "39.9.1",
|
|
42
|
-
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
43
|
-
"eslint-plugin-markdown": "2.2.1",
|
|
44
31
|
"eslint-plugin-prettier": "4.2.1",
|
|
45
|
-
"
|
|
46
|
-
"eslint-plugin-react-hooks": "4.6.0",
|
|
32
|
+
"espree": "9.5.2",
|
|
47
33
|
"fs-extra": "10.1.0",
|
|
48
34
|
"globby": "9.2.0",
|
|
49
35
|
"grunt": "1.6.1",
|
|
50
36
|
"grunt-webfont": "git+https://github.com/netbek/grunt-webfont.git#netbek-logger-option",
|
|
51
37
|
"lodash": "4.17.21",
|
|
52
|
-
"lodash-webpack-plugin": "0.11.6",
|
|
53
38
|
"node-sass": "7.0.3",
|
|
54
39
|
"nunjucks": "3.2.4",
|
|
55
40
|
"postcss": "8.4.24",
|
|
@@ -58,8 +43,7 @@
|
|
|
58
43
|
"sharp": "0.32.1",
|
|
59
44
|
"spritesmith": "3.4.1",
|
|
60
45
|
"svgo": "2.8.0",
|
|
61
|
-
"svgstore": "3.0.1"
|
|
62
|
-
"webpack": "4.46.0"
|
|
46
|
+
"svgstore": "3.0.1"
|
|
63
47
|
},
|
|
64
48
|
"devDependencies": {
|
|
65
49
|
"chai": "4.3.7",
|
package/.eslintrc.json
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"env": {
|
|
4
|
-
"amd": true,
|
|
5
|
-
"browser": true,
|
|
6
|
-
"es6": true,
|
|
7
|
-
"jquery": true,
|
|
8
|
-
"mocha": true,
|
|
9
|
-
"node": true
|
|
10
|
-
},
|
|
11
|
-
"plugins": [
|
|
12
|
-
"dollar-sign",
|
|
13
|
-
"html",
|
|
14
|
-
"jsdoc",
|
|
15
|
-
"jsx-a11y",
|
|
16
|
-
"markdown",
|
|
17
|
-
"prettier",
|
|
18
|
-
"react"
|
|
19
|
-
],
|
|
20
|
-
"extends": [
|
|
21
|
-
"eslint:recommended",
|
|
22
|
-
"plugin:react/recommended",
|
|
23
|
-
"plugin:jsx-a11y/recommended",
|
|
24
|
-
"airbnb",
|
|
25
|
-
"prettier"
|
|
26
|
-
],
|
|
27
|
-
"rules": {
|
|
28
|
-
"class-methods-use-this": 0,
|
|
29
|
-
"comma-dangle": ["error", "never"],
|
|
30
|
-
"default-case": 0,
|
|
31
|
-
"dollar-sign/dollar-sign": [2, "ignoreProperties"],
|
|
32
|
-
"func-names": 0,
|
|
33
|
-
"import/extensions": 0,
|
|
34
|
-
"import/newline-after-import": 0,
|
|
35
|
-
"import/no-dynamic-require": 0,
|
|
36
|
-
"import/no-extraneous-dependencies": 0,
|
|
37
|
-
"import/no-unresolved": 0,
|
|
38
|
-
"import/prefer-default-export": 0,
|
|
39
|
-
"indent": [
|
|
40
|
-
"error",
|
|
41
|
-
2,
|
|
42
|
-
{
|
|
43
|
-
"SwitchCase": 1
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"jsdoc/check-param-names": 1,
|
|
47
|
-
"jsdoc/check-tag-names": 1,
|
|
48
|
-
"jsdoc/check-types": 1,
|
|
49
|
-
"jsdoc/newline-after-description": 1,
|
|
50
|
-
"jsdoc/require-description-complete-sentence": 0,
|
|
51
|
-
"jsdoc/require-hyphen-before-param-description": 1,
|
|
52
|
-
"jsdoc/require-param": 1,
|
|
53
|
-
"jsdoc/require-param-description": 0,
|
|
54
|
-
"jsdoc/require-param-type": 1,
|
|
55
|
-
"jsdoc/require-returns-description": 0,
|
|
56
|
-
"jsdoc/require-returns-type": 1,
|
|
57
|
-
"jsx-quotes": ["error", "prefer-double"],
|
|
58
|
-
"newline-per-chained-call": [
|
|
59
|
-
"error",
|
|
60
|
-
{
|
|
61
|
-
"ignoreChainWithDepth": 2
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
"no-bitwise": [
|
|
65
|
-
"error",
|
|
66
|
-
{
|
|
67
|
-
"allow": ["~"]
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
"no-plusplus": [
|
|
71
|
-
"error",
|
|
72
|
-
{
|
|
73
|
-
"allowForLoopAfterthoughts": true
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
"no-underscore-dangle": 0,
|
|
77
|
-
"no-var": 0,
|
|
78
|
-
"object-shorthand": ["error", "consistent"],
|
|
79
|
-
"one-var": ["error", "never"],
|
|
80
|
-
"prefer-arrow-callback": 0,
|
|
81
|
-
"prefer-template": 0,
|
|
82
|
-
"prettier/prettier": [
|
|
83
|
-
"error",
|
|
84
|
-
{
|
|
85
|
-
"singleQuote": true,
|
|
86
|
-
"bracketSpacing": false
|
|
87
|
-
}
|
|
88
|
-
],
|
|
89
|
-
"react/forbid-prop-types": [
|
|
90
|
-
"error",
|
|
91
|
-
{
|
|
92
|
-
"forbid": ["any", "array"]
|
|
93
|
-
}
|
|
94
|
-
],
|
|
95
|
-
"react/jsx-boolean-value": ["error", "never"],
|
|
96
|
-
"react/jsx-closing-bracket-location": ["error", "line-aligned"],
|
|
97
|
-
"react/jsx-curly-spacing": [
|
|
98
|
-
"error",
|
|
99
|
-
"never",
|
|
100
|
-
{
|
|
101
|
-
"allowMultiline": true
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
"react/jsx-pascal-case": [
|
|
105
|
-
"error",
|
|
106
|
-
{
|
|
107
|
-
"allowAllCaps": true,
|
|
108
|
-
"ignore": []
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
"react/jsx-tag-spacing": [
|
|
112
|
-
"error",
|
|
113
|
-
{
|
|
114
|
-
"closingSlash": "never",
|
|
115
|
-
"beforeSelfClosing": "allow",
|
|
116
|
-
"afterOpening": "never"
|
|
117
|
-
}
|
|
118
|
-
],
|
|
119
|
-
"react/no-array-index-key": "error",
|
|
120
|
-
"react/no-unused-prop-types": 0,
|
|
121
|
-
"react/prefer-stateless-function": 0,
|
|
122
|
-
"vars-on-top": 0
|
|
123
|
-
},
|
|
124
|
-
"parser": "babel-eslint",
|
|
125
|
-
"parserOptions": {
|
|
126
|
-
"sourceType": "module"
|
|
127
|
-
}
|
|
128
|
-
}
|
package/.prettierrc
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"printWidth": 80,
|
|
3
|
-
"tabWidth": 2,
|
|
4
|
-
"useTabs": false,
|
|
5
|
-
"semi": true,
|
|
6
|
-
"singleQuote": true,
|
|
7
|
-
"trailingComma": "none",
|
|
8
|
-
"bracketSpacing": false,
|
|
9
|
-
"bracketSameLine": false,
|
|
10
|
-
"arrowParens": "always",
|
|
11
|
-
"endOfLine": "lf",
|
|
12
|
-
"parser": "babel"
|
|
13
|
-
}
|