@@ -67,7 +67,7 @@ module.exports = { extends: ['@commitlint/config-conventional'] }
67
67
```
68
68
69
69
- Copy the ` .editorconfig ` and ` .gitattributes ` files relativity to the root of the project.
70
- - Add the following properties to the ` package.json ` . Please replace the ` scriptsArgs ` globbing expressions to match the
70
+ - Add the following properties to the ` package.json ` . Please replace the ` config ` globbing expressions to match the
71
71
files where the source JavaScript/Markdown/HTML/JSON/YAML files are located. ` npm run format ` should also be run
72
72
during ` npm test ` and ` npm run format:ci ` during CI
73
73
([ example] ( https://github.com/netlify/cli/blob/master/.github/workflows/main.yml ) ).
@@ -78,13 +78,13 @@ module.exports = { extends: ['@commitlint/config-conventional'] }
78
78
"format" : " run-s format:check-fix:*" ,
79
79
"format:ci" : " run-s format:check:*" ,
80
80
"format:check-fix:lint" : " run-e format:check:lint format:fix:lint" ,
81
- "format:check:lint" : " cross-env-shell eslint $npm_package_scriptsArgs_eslint " ,
82
- "format:fix:lint" : " cross-env-shell eslint --fix $npm_package_scriptsArgs_eslint " ,
81
+ "format:check:lint" : " cross-env-shell eslint $npm_package_config_eslint " ,
82
+ "format:fix:lint" : " cross-env-shell eslint --fix $npm_package_config_eslint " ,
83
83
"format:check-fix:prettier" : " run-e format:check:prettier format:fix:prettier" ,
84
- "format:check:prettier" : " cross-env-shell prettier --check $npm_package_scriptsArgs_prettier " ,
85
- "format:fix:prettier" : " cross-env-shell prettier --write $npm_package_scriptsArgs_prettier "
84
+ "format:check:prettier" : " cross-env-shell prettier --check $npm_package_config_prettier " ,
85
+ "format:fix:prettier" : " cross-env-shell prettier --write $npm_package_config_prettier "
86
86
},
87
- "scriptsArgs " : {
87
+ "config " : {
88
88
"eslint" : " --ignore-path .gitignore --cache --format=codeframe --max-warnings=0 \" {src,scripts,tests,.github}/**/*.{js,md,html}\" \" *.{js,md,html}\" \" .*.{js,md,html}\" " ,
89
89
"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\" "
90
90
},
0 commit comments