summaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-03 15:30:38 -0500
committerGitHub <noreply@github.com>2021-01-03 15:30:38 -0500
commit63971776a5db6ad0d3a68361f64a74aa9e78aff5 (patch)
treee4100c1e6e418cf26165708992ef75be62c9628d /package.json
parentd50d7a4a3a5e307838348726de331cf5eb283bff (diff)
CSS lint (#1201)
* Use single quotes instead of double * Install stylelint * Set up config * Update package/tests * Fix lint issues * Update CSS rules
Diffstat (limited to 'package.json')
-rw-r--r--package.json5
1 files changed, 4 insertions, 1 deletions
diff --git a/package.json b/package.json
index 02320d0c..a658f8b4 100644
--- a/package.json
+++ b/package.json
@@ -7,8 +7,9 @@
},
"scripts": {
"build": "node ./dev/build.js",
- "test": "npm run test-lint && npm run test-code && npm run test-manifest && npm run test-build",
+ "test": "npm run test-lint && npm run test-lint-css && npm run test-code && npm run test-manifest && npm run test-build",
"test-lint": "eslint . && node ./dev/lint/global-declarations.js && node ./dev/lint/html-scripts.js",
+ "test-lint-css": "npx stylelint \"**/*.css\"",
"test-lint-web-ext": "npx web-ext lint",
"test-code": "node ./test/test-all.js ./test --skip ./test/test-manifest.js",
"test-manifest": "node ./test/test-manifest.js",
@@ -40,6 +41,8 @@
"fake-indexeddb": "^3.1.2",
"jsdom": "^16.4.0",
"parse5": "^6.0.1",
+ "stylelint": "^13.8.0",
+ "stylelint-config-recommended": "^3.0.0",
"web-ext": "^5.4.1"
}
}