mirror of
https://github.com/GoogleChrome/chrome-extensions-samples.git
synced 2026-04-12 06:09:05 +07:00
* Ignores archived samples * Uses eslint/recommended rules * Runs prettier and eslint (including --fix) pre-commit via husky * Adds new npm scripts: 'lint', 'lint:fix' and 'prettier' * Does not lint inline js code * Fix all prettier and eslint errors * Add custom prettier rules * Apply custom prettier rules * Update readme to explain how to setup the repo * addressed comments
40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"name": "chrome-extensions-samples",
|
|
"version": "1.0.0",
|
|
"private": true,
|
|
"description": "Official samples for Chrome Extensions and the Chrome Apps platform.",
|
|
"scripts": {
|
|
"prettier": "npx prettier **/*.{md,html} -w",
|
|
"lint": "eslint **/*.js",
|
|
"lint:fix": "npm run lint -- --fix",
|
|
"prepare": "husky install"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/GoogleChrome/chrome-extensions-samples.git"
|
|
},
|
|
"keywords": [],
|
|
"author": "The Chrome Team",
|
|
"license": "Apache 2.0",
|
|
"bugs": {
|
|
"url": "https://github.com/GoogleChrome/chrome-extensions-samples/issues"
|
|
},
|
|
"homepage": "https://github.com/GoogleChrome/chrome-extensions-samples#readme",
|
|
"devDependencies": {
|
|
"eslint": "^8.34.0",
|
|
"eslint-config-prettier": "8.6.0",
|
|
"eslint-plugin-prettier": "4.2.1",
|
|
"husky": "^8.0.0",
|
|
"lint-staged": "^13.1.2",
|
|
"prettier": "2.8.4"
|
|
},
|
|
"lint-staged":{
|
|
"**/*.js":[
|
|
"npx eslint --fix"
|
|
],
|
|
"**/*.{md,html}":[
|
|
"npx prettier --write"
|
|
]
|
|
}
|
|
}
|