@@ -33,7 +33,7 @@ module.exports = {
33
33
" @netlify/eslint-config-node/.prettierrc.json"
34
34
```
35
35
36
- - Copy the ` .editorconfig ` , ` .gitattributes ` and ` ./scripts/run_on_error.js ` files relativity to the root of the project.
36
+ - Copy the ` .editorconfig ` and ` .gitattributes ` files relativity to the root of the project.
37
37
- Add the following properties to the ` package.json ` . Please replace the ` scriptsArgs ` globbing expressions to match the
38
38
files where the source JavaScript/Markdown/HTML/JSON/YAML files are located. ` npm run format ` should also be run
39
39
during ` npm test ` and ` npm run format:ci ` during CI
@@ -44,16 +44,16 @@ module.exports = {
44
44
"scripts" : {
45
45
"format" : " run-s format:check-fix:*" ,
46
46
"format:ci" : " run-s format:check:*" ,
47
- "format:check-fix:lint" : " ./scripts/run_on_error.js format:check:lint format:fix:lint" ,
47
+ "format:check-fix:lint" : " run-e format:check:lint format:fix:lint" ,
48
48
"format:check:lint" : " cross-env-shell eslint $npm_package_scriptsArgs_eslint" ,
49
49
"format:fix:lint" : " cross-env-shell eslint --fix $npm_package_scriptsArgs_eslint" ,
50
- "format:check-fix:prettier" : " ./scripts/run_on_error.js format:check:prettier format:fix:prettier" ,
50
+ "format:check-fix:prettier" : " run-e format:check:prettier format:fix:prettier" ,
51
51
"format:check:prettier" : " cross-env-shell prettier --check $npm_package_scriptsArgs_prettier" ,
52
52
"format:fix:prettier" : " cross-env-shell prettier --write $npm_package_scriptsArgs_prettier"
53
53
},
54
54
"scriptsArgs" : {
55
- "eslint" : " --ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \" {src,scripts,site, tests,.github}/**/*.{js,md,html}\" \" *.{js,md,html}\" \" .*.{js,md,html}\" " ,
56
- "prettier" : " --ignore-path .gitignore --loglevel=warn \" {src,scripts,site, tests,.github}/**/*.{js,md,yml,json,html}\" \" *.{js,yml,json,html}\" \" .*.{js,yml,json,html}\" \" !package-lock.json\" "
55
+ "eslint" : " --ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \" {src,scripts,tests,.github}/**/*.{js,md,html}\" \" *.{js,md,html}\" \" .*.{js,md,html}\" " ,
56
+ "prettier" : " --ignore-path .gitignore --loglevel=warn \" {src,scripts,tests,.github}/**/*.{js,md,yml,json,html}\" \" *.{js,yml,json,html}\" \" .*.{js,yml,json,html}\" \" !package-lock.json\" "
57
57
},
58
58
"husky" : {
59
59
"hooks" : {
0 commit comments