mirror of
https://github.com/actions/configure-pages.git
synced 2025-12-08 08:06:09 +00:00
Add eslint configuration and scripts
This commit is contained in:
16
.eslintrc.json
Normal file
16
.eslintrc.json
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"env": {
|
||||||
|
"commonjs": true,
|
||||||
|
"es2021": true,
|
||||||
|
"node": true,
|
||||||
|
"jest": true
|
||||||
|
},
|
||||||
|
"plugins": ["github"],
|
||||||
|
"extends": ["eslint:recommended", "prettier", "plugin:github/internal"],
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaVersion": 12
|
||||||
|
},
|
||||||
|
"rules": {},
|
||||||
|
"ignorePatterns": ["/dist/**/*.js", "/src/fixtures/", "/src/blank-configurations/"]
|
||||||
|
}
|
||||||
|
|
||||||
@@ -7,7 +7,9 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"format": "prettier --write 'src/**/*.js'",
|
"format": "prettier --write 'src/**/*.js'",
|
||||||
"format:check": "prettier --check 'src/**/*.js'",
|
"format:check": "prettier --check 'src/**/*.js'",
|
||||||
"prepare": "npm run format && ncc build src/index.js -o dist --source-map --license licenses.txt",
|
"lint": "DEBUG=eslint:cli-engine eslint --fix .",
|
||||||
|
"lint:check": "DEBUG=eslint:cli-engine eslint .",
|
||||||
|
"prepare": "npm run format && npm run lint && ncc build src/index.js -o dist --source-map --license licenses.txt",
|
||||||
"test": "jest"
|
"test": "jest"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user