Add linting command

This commit is contained in:
Ben Thomson 2022-11-07 12:45:37 +08:00
parent b5d753da82
commit c17fe627fa
3 changed files with 6 additions and 16 deletions

View File

@ -1,14 +0,0 @@
# Ignore build files
**/node_modules/**
build/*.js
**/build/*.js
**/mix.webpack.js
# Ignore all JS except for Mix-based assets
assets/js
!assets/js/snowboard
assets/ui
assets/vendor
# Ignore test fixtures
tests/js

View File

@ -41,8 +41,11 @@
"assets/js/lang",
"assets/js/mailbrandsettings",
"assets/js/updates",
"assets/ui",
"assets/ui/js",
"assets/ui/vendor",
"assets/ui/*.js",
"assets/vendor",
"tests/fixtures",
"tests/js",
"**/build/*.js"
]

View File

@ -24,7 +24,8 @@
},
"homepage": "https://wintercms.com/",
"scripts": {
"test": "jest --config tests/js/jest.config.js tests/js/cases"
"test": "jest --config tests/js/jest.config.js tests/js/cases",
"lint": "eslint --ext .js,.vue --ignore-path .gitignore ."
},
"dependencies": {
"@popperjs/core": "^2.11.4",