File tree 7 files changed +1183
-1591
lines changed 7 files changed +1183
-1591
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const {
12
12
13
13
const mkdir = dir => {
14
14
try {
15
- mkdirSync ( dir , 0755 ) ;
15
+ mkdirSync ( dir , 0o755 ) ;
16
16
} catch ( e ) {
17
17
if ( e . code !== 'EEXIST' ) {
18
18
throw e ;
Original file line number Diff line number Diff line change
1
+ import globals from 'globals' ;
2
+
3
+ import compat from 'eslint-plugin-compat' ;
4
+
5
+ export default [
6
+ {
7
+ files : [ './assets/scripts/**/*.js' ] ,
8
+ languageOptions : {
9
+ globals : {
10
+ ...globals . browser ,
11
+ ...globals . node
12
+ } ,
13
+ parserOptions : {
14
+ ecmaVersion : 2023 ,
15
+ sourceType : 'module'
16
+ }
17
+ } ,
18
+ plugins : {
19
+ compat
20
+ } ,
21
+ rules : {
22
+ 'no-console' : 'error'
23
+ } ,
24
+ settings : {
25
+ react : {
26
+ version : 'detect'
27
+ }
28
+ }
29
+ }
30
+ ] ;
Original file line number Diff line number Diff line change 35
35
"pwa" : " create-pwa --icon=\" ./assets/images/favicon/icon.png\" --launch=\" ./assets/images/favicon/launch.png\" " ,
36
36
"prod" : " yarn build && yarn html && yarn critical && yarn rm-html" ,
37
37
"lint" : " yarn lint:js && yarn lint:scss" ,
38
- "lint:js" : " eslint './assets/scripts/**/*.js' " ,
38
+ "lint:js" : " eslint" ,
39
39
"lint:scss" : " stylelint assets/styles/**/*.scss"
40
40
},
41
41
"dependencies" : {
82
82
"webpack-shell-plugin-next" : " 2.3.1" ,
83
83
"webpack-spritesmith" : " 1.1.0"
84
84
},
85
- "resolutions" : {
86
- "got" : " ^11.8.5" ,
87
- "http-cache-semantics" : " ^4.1.1" ,
88
- "semver-regex" : " ^4.0.0" ,
89
- "ua-parser-js" : " ^1.0.33"
90
- },
91
85
"bin" : {
92
86
"wmpa" : " ./bin/cli.js"
93
87
},
Original file line number Diff line number Diff line change 1
- // @ts -nocheck
2
-
3
1
const { extendDefaultPlugins } = require ( 'svgo' ) ;
4
2
5
3
module . exports = {
Original file line number Diff line number Diff line change 1
- // @ts -nocheck
2
-
3
1
const { exec } = require ( 'child_process' ) ;
4
2
const { parse } = require ( 'url' ) ;
5
3
const { resolve } = require ( 'path' ) ;
@@ -28,7 +26,6 @@ const browserSyncConfig = server => ({
28
26
host : 'localhost' ,
29
27
port : 3000 ,
30
28
open : 'external' ,
31
- /* eslint-disable no-mixed-spaces-and-tabs */
32
29
files : [
33
30
server
34
31
? {
@@ -44,7 +41,6 @@ const browserSyncConfig = server => ({
44
41
'./assets/dist/app.css' ,
45
42
'./assets/dist/app.js'
46
43
] ,
47
- /* eslint-enable */
48
44
ghostMode : {
49
45
clicks : false ,
50
46
scroll : true ,
You can’t perform that action at this time.
0 commit comments