rails/actionview/package.json
Hartley McGuire 03366a6d5d
Fix rails-ujs tests not being linted
Before rails-ujs was [updated][1] from coffeescript to es6, the lint
task ran eslint on both the coffee files and the ujs test files. When it
was updated to lint the new es6 files, the test files were erroneously
left out.

This commit fixes the task to lint the rails-ujs test files and fixes
the lint errors that have been introduced since.

[1]: 7d116c93cf6cf2470600860c4c17417df7768c34
2023-03-17 00:56:59 -04:00

49 lines
1.2 KiB
JSON

{
"name": "@rails/ujs",
"version": "7.1.0-alpha",
"description": "Ruby on Rails unobtrusive scripting adapter",
"main": "app/assets/javascripts/rails-ujs.js",
"module": "app/assets/javascripts/rails-ujs.esm.js",
"files": [
"app/assets/javascripts/*.js"
],
"directories": {
"test": "test"
},
"scripts": {
"build": "rollup --config rollup.config.js",
"pretest": "rollup --config rollup.config.test.js",
"test": "karma start",
"lint": "eslint app/javascript && eslint test/ujs/public/test"
},
"repository": {
"type": "git",
"url": "rails/rails"
},
"contributors": [
"Stephen St. Martin",
"Steve Schwartz",
"Dangyi Liu",
"All contributors"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/rails/rails/issues"
},
"homepage": "https://rubyonrails.org/",
"devDependencies": {
"@rollup/plugin-commonjs": "^19.0.1",
"@rollup/plugin-node-resolve": "^11.0.1",
"eslint": "^4.19.1",
"eslint-plugin-import": "^2.23.4",
"jquery": "^2.2.0",
"karma": "^3.1.1",
"karma-chrome-launcher": "^2.2.0",
"karma-qunit": "^2.1.0",
"karma-sauce-launcher": "^1.2.0",
"qunit": "^2.8.0",
"rollup": "^2.53.3",
"rollup-plugin-terser": "^7.0.2"
}
}