File tree 7 files changed +1199
-1245
lines changed 7 files changed +1199
-1245
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
+ import prettier from 'eslint-config-prettier' ;
5
+ import tsEsLint from '@typescript-eslint/eslint-plugin' ;
6
+ import tsParser from '@typescript-eslint/parser' ;
7
+
8
+ export default [
9
+ {
10
+ files : [ './assets/scripts/**/*.ts' ] ,
11
+ languageOptions : {
12
+ globals : {
13
+ ...globals . browser ,
14
+ ...globals . node
15
+ } ,
16
+ parser : tsParser ,
17
+ parserOptions : {
18
+ project : 'tsconfig.json' ,
19
+ sourceType : 'module'
20
+ }
21
+ } ,
22
+ plugins : {
23
+ compat,
24
+ prettier,
25
+ tsEsLint
26
+ } ,
27
+ ignores : [ 'webpack.config.js' ] ,
28
+ rules : {
29
+ 'no-console' : 'error'
30
+ } ,
31
+ settings : {
32
+ react : {
33
+ version : 'detect'
34
+ }
35
+ }
36
+ }
37
+ ] ;
Original file line number Diff line number Diff line change 34
34
"rm-html" : " rm index.html" ,
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
- "lint:ts" : " eslint 'assets/scripts/**/*.ts' " ,
37
+ "lint:ts" : " eslint" ,
38
38
"lint:scss" : " stylelint assets/styles/**/*.scss" ,
39
39
"lint" : " yarn lint:ts && yarn lint:scss"
40
40
},
86
86
"webpack-shell-plugin-next" : " 2.3.1" ,
87
87
"webpack-spritesmith" : " 1.1.0"
88
88
},
89
- "resolutions" : {
90
- "got" : " ^11.8.5" ,
91
- "http-cache-semantics" : " ^4.1.1" ,
92
- "semver-regex" : " ^4.0.0" ,
93
- "ua-parser-js" : " ^1.0.33"
94
- },
95
89
"bin" : {
96
90
"wmpats" : " ./bin/cli.js"
97
91
},
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' ) ;
@@ -17,7 +15,6 @@ const browserSyncConfig = server => ({
17
15
host : 'localhost' ,
18
16
port : 3000 ,
19
17
open : 'external' ,
20
- /* eslint-disable no-mixed-spaces-and-tabs */
21
18
files : [
22
19
server
23
20
? {
@@ -33,7 +30,6 @@ const browserSyncConfig = server => ({
33
30
'./assets/dist/app.css' ,
34
31
'./assets/dist/app.js'
35
32
] ,
36
- /* eslint-enable */
37
33
ghostMode : {
38
34
clicks : false ,
39
35
scroll : true ,
You can’t perform that action at this time.
0 commit comments